使用Atollic TrueSTUDIO for STM32 build可以通过,也可以生成elf文件和hex文件,但是点击debug按钮后遇到上图错误,使用ST-Link调试。 错误内容 Error with command: D:\Program Files (x86)\Atollic\TrueSTUDIO for STM32 9.3.0\ARMTools\bin\arm-atollic-eabi-gdb --version Cannot run program "D:\Program": Launching failed 启动脚本: # Set flash parallelism mode to 32, 16, or 8 bit when using STM32 F2/F4 microcontrollers # Uncomment next line, 2=32 bit, 1=16 bit and 0=8 bit parallelism mode #monitor flash set_parallelism_mode 2 # Set character encoding set host-charset CP1252 set target-charset CP1252 # Reset to known state monitor reset # Load the program executable load # Reset the chip to get to a known state. Remove "monitor reset" command # if the code is not located at default address and does not run by reset. monitor reset # Enable Debug connection in low power modes (DBGMCU->CR) set *0xE0042004 = (*0xE0042004) | 0x7 # Set a breakpoint at main(). tbreak main # Run to the breakpoint. continue |
评分
查看全部评分
评分
查看全部评分
Cannot run program "C:\Program": Launching failed
我也遇到了同样的问题,如何解决的。你当时,能否分享下?
谢谢。