╰─ openocd -f jlink_swd_stm32f103_erase_flash.cfg Open On-Chip Debugger 0.11.0 Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html 开始擦除 STM32F103ZET6 ... Info : J-Link V9 compiled May 7 2021 16:26:12 Info : Hardware version: 9.70 Info : VTarget = 3.300 V Info : clock speed 1000 kHz Info : SWD DPIDR 0x1ba01477 Info : stm32f1x.cpu: hardware has 6 breakpoints, 4 watchpoints Info : starting gdb server for stm32f1x.cpu on 3333 Info : Listening on port 3333 for gdb connections 尝试复位并暂停 CPU... target halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0x1ffff020 msp: 0x200001fc 执行全片擦除... Info : device id = 0x10036414 Info : flash size = 512kbytes 全片擦除成功! 复位并启动芯片... 擦除完成! shutdown command invoked
╰─ openocd -f jlink_swd_stm32f103_dump_flash.cfg Open On-Chip Debugger 0.11.0 Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html 开始读取STM32F103 Flash... Info : J-Link V9 compiled May 7 2021 16:26:12 Info : Hardware version: 9.70 Info : VTarget = 3.300 V Info : clock speed 1000 kHz Info : SWD DPIDR 0x1ba01477 Info : stm32f1x.cpu: hardware has 6 breakpoints, 4 watchpoints Info : starting gdb server for stm32f1x.cpu on 3333 Info : Listening on port 3333 for gdb connections target halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0x1ffff020 msp: 0x200001fc 检查Flash状态... Info : device id = 0x10036414 Info : flash size = 512kbytes Flash已解锁,需要复位... target halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0x1ffff020 msp: 0x200001fc 正在读取Flash到: read_flash.bin 大小: 512KB (0x08000000 - 0x0807FFFF) 读取完成! 文件大小: 524288 字节 (512 KB) 读取成功: read_flash.bin