cmsis-dap 在swd模式下 使用openocd下载,之前是可以下载的,但现在一直出现
Warn : Adding extra erase range, 0x0801eb30 .. 0x080407ff
Error: write into gap from 0x08010000 to 0x0803FFFF
Error: error writing to flash at address 0x08000000 at offset 0x00000000
embedded:startup.tcl:1162: Error: ** Programming Failed ** in procedure 'program'
情况如下:
xPack OpenOCD x86_64 Open On-Chip Debugger 0.11.0+dev (2022-03-25-17:32)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : DEPRECATED target event trace-config; use TPIU events {pre,post}-{enable,disable}
Info : CMSIS-DAP: SWD supported
Info : CMSIS-DAP: FW Version = 2.0.0
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : clock speed 2000 kHz
Info : SWD DPIDR 0x2ba01477
Info : [stm32g4x.cpu] Cortex-M4 r0p1 processor detected
Info : [stm32g4x.cpu] target has 6 breakpoints, 4 watchpoints
Info : gdb port disabled
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc
** Programming Started **
Info : device idcode = 0x20036469 (STM32G47/G48xx - Rev 'unknown' : 0x2003)
Info : RDP level 0 (0xAA)
Info : flash size = 128kbytes
Info : flash mode : dual-bank
Info : gap detected from 0x08010000 to 0x0803FFFF
Warn : Adding extra erase range, 0x0801eb30 .. 0x080407FF
Error: write into gap from 0x08010000 to 0x0803FFFF
Error: error writing to flash at address 0x08000000 at offset 0x00000000
embedded:startup.tcl:1162: Error: ** Programming Failed **
in procedure 'program'
in procedure 'program_error' called at file "embedded:startup.tcl", line 1227
at file "embedded:startup.tcl", line 1162
已经尝试更改过keil编译下载没有出现问题
也更改了openocd的版本,除了"embedded:startup.tcl", line 的号码不同外其他信息相同
还请高人指点一二,这个已经折磨我两天了。