2025-06-29 11:20:46 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
下载程序
|
|
|
|
|
|
2025-06-29 16:00:18 +08:00
|
|
|
|
pyocd flash -t stm32f429xi output/stm32.elf
|
2025-06-29 11:20:46 +08:00
|
|
|
|
|
|
|
|
|
使用pyocd调试:
|
|
|
|
|
|
|
|
|
|
1. 启动pyocd
|
|
|
|
|
|
2025-06-29 16:00:18 +08:00
|
|
|
|
pyocd gdbserver -t stm32f429xi
|
2025-06-29 11:20:46 +08:00
|
|
|
|
|
|
|
|
|
2. 启动gdb
|
|
|
|
|
|
|
|
|
|
arm-none-eabi-gdb -ex "target remote localhost:3333"
|
2025-06-29 16:00:18 +08:00
|
|
|
|
|
|
|
|
|
使用openocd下载程序
|
|
|
|
|
openocd -f interface/cmsis-dap.cfg -f target/stm32f4x.cfg -c "init; halt; flash write_image erase output/stm32.bin 0x08000000 bin; reset; shutdown"
|
|
|
|
|
|