|
如题,使用stm32cubeide通过h7-tool给stm32l4r9下载程序失败。使用mdk下载是正常的。
STM32CubeIDE默认不支持DAP的,但是通过ST-Link(OpenOCD间接支持),选择连接到远程GDB服务器端口,参考如下:https://www.cnblogs.com/pathfinder-world/p/13943911.html
但实际使用出现如下错误信息:
Info : auto-selecting first available session transport "swd". To override use 'transport select <transport>'.
Info : DEPRECATED target event trace-config
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : CMSIS-DAP: SWD Supported
Info : CMSIS-DAP: FW Version = 2.0.0
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : clock speed 500 kHz
Info : SWD DPIDR 0x2ba01477
Info : stm32l4x.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : starting gdb server for stm32l4x.cpu on 3333
Info : Listening on port 3333 for gdb connections
Info : accepting 'gdb' connection on tcp/3333
target halted due to debug-request, current mode: Thread
xPSR: 0x41000000 pc: 0x20000000 msp: 0x20001000
Info : device idcode = 0x100f6470 (STM32L4R/L4Sxx - Rev W : 0x100f - Flash single-bank)
Info : RDP level 0 (0xAA)
Info : flash size = 2048kbytes
Info : flash mode : dual-bank
Info : device idcode = 0x100f6470 (STM32L4R/L4Sxx - Rev W : 0x100f - OTP-bank)
Info : RDP level 0 (0xAA)
Info : OTP size is 1024 bytes, base address is 0x1fff7000
Info : rejected 'gdb' connection, no more connections allowed
Info : dropped 'gdb' connection (error -400)
网上有类似的错误http://vedder.se/2012/12/debugging-the-stm32f4-using-openocd-gdb-and-eclipse/,加额外的命令如:
target remote localhost:3333monitor resetmonitor haltmonitor flash protect 0 0 11 offmonitor flash write_image erase "/path/to/hex/file" 0 ihexdisconnecttarget remote localhost:3333monitor resetmonitor halt
尝试发现还是不行,想了解下硬汉大哥有没有做stm32cubeide下的下载测试或有什么解决思路,多谢。
|
|