NO7.openocd和arm-none-eabi-gdb仿真与调试 连接好硬件之后,执行 openocd -f stlink-v2.cfg -f stm32f1x_stlink.cfg //注意要有绝对路径 如果硬件和STLINKv2的驱动都没有问题,它会出现: Info : This adapter doesn't support configurable speed Info : STLINK v2 JTAG v16 API v2 SWIM v4 VID 0x0483 PID 0x3748 Info : Target voltage: 3.269657 Info : stm32f1x.cpu: hardware has 6 breakpoints, 4 watchpoints 在另外一个终端执行arm-none-eabi-gdb,在它的提示符下输入下面的命令: (gdb) target extended-remote : 3333 (gdb) monitor reset init (gdb) load maria_test.hex (gdb) monitor reset 现在,STM32就会正常运行了
|