openocd -f D:\OpenOCD\share\openocd\scripts\interface\stlink-v2.cfg -f D:\OpenOCD\share\openocd\scripts\board\stm32f4discovery.cfg 出现上述代表运行正常。其中第一个cfg文件为stlink接口文件 因为用的硬件为stlink 第二个cfg文件为板子对于芯片文件。stm32f407打开另一个cmd或者powershellarm-none-...
openocd-fG:\develop_tools\openOCD\xpack-openocd-0.11.0-1\scripts\interface\stlink-v2-1.cfg-fG:\develop_tools\openOCD\xpack-openocd-0.11.0-1\scripts\target\stm32l4x.cfg-c init-c halt-c"flash write_image erase E:/MCU/STM32L431RC-BearPi/usart1-fpu-test/build/usart1-fpu-test.bin ...
连接stm32开发板之后使用命令连接openocd -f /usr/local/Homebrew/share/openocd/scripts/interface/stlink-v2-1.cfg -f /usr/local/Homebrew/share/openocd/scripts/target/stm32g0x.cfg这里第一个参数.cfg是指定连接的工具stlink等等,后面的stm32g0x.cfg是选择的芯片型号;选择对应的型号就可以 运行成功之后的...
其中第一个cfg文件为stlink接口文件 因为用的硬件为stlink,第二个cfg文件为板子对于芯片文件。stm32f407打开另一个cmd或者powershell arm-none-eabi-gdb .\rt-thread.elf 这个时候第一个窗口会显示: 这里的调试截图来源,亲测可用,感谢博主:利用openocd 在windows环境下GDB调试(调试器 stlinkv2)STM32_xpack-ope...
OPENOCD_INTERFACE = stlink-v2-1.cfg OPENOCD_TARGET = stm32l4x.cfg OPENOCD_FLASH_START = 0x08000000 PWD_DIR = E:/MCU/STM32L431RC-BearPi/usart1-fpu-test download: openocd -f $(OPENOCD_ROOT)\scripts\interface\$(OPENOCD_INTERFACE) -f $(OPENOCD_ROOT)\scripts\target\$(OPENOCD_TARGET...
INTERFACE=cmsis-dap.cfg ;;"-st" | "st-link")echo "You choose the ST-Link V2"INTERFACE=st...
-f${TARGET_CFG}\ -c"init"\ -c"halt"\ -c"stm32f1x unlock 0"\ -c"reset halt"\ -c"exit" 下载 #!/usr/bin/env bashcase"$1"in"-dap"|"dap-link")echo"You choose the DAP-Link"INTERFACE=cmsis-dap.cfg ;;"-st"|"st-link")echo"You choose the ST-Link V2"INTERFACE=stlink-v2...
allen@worker-005:~$ openocd -f interface/stlink-v2.cfg -f target/stm32f1x.cfg -c init -c "reset halt" -c "stm32f1x lock 0" -c "reset halt" -c "exit" Open On-Chip Debugger 0.9.0 (2018-01-24-01:05) Licensed under GNU GPL v2 ...
executable":"build/1.elf","name":"Debug Microcontroller","request":"launch","type":"cortex-debug","servertype":"openocd","configFiles":["D:/OpenOCD-20201228-0.10.0/share/openocd/scripts/interface/stlink-v2.cfg","D:/OpenOCD-20201228-0.10.0/share/openocd/scripts/target/stm32f1x.cfg...
stm32h7x.cfg 更多选项请在里面找个叫做target的目录,在里面能找到 保存后,运行STM32F1XTest.bat看看,如果显示这样就可以了: 如果你的显示不同,stlink先连接开发板,再重新插拔下ST-LINK的usb试试 STM32CubeIDE的调试选项里面这么配置: (找不到这个界面在哪?调试失败后就会自动提示打开!) ...