本帖最后由 edwardhey 于 2025-10-2 17:25 编辑
Open On-Chip Debugger 0.12.0+dev-gdb9bb7924 (2025-10-02-15:34)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : Using CMSIS-DAPv2 interface with VID:PID=0x0d28:0x0204, serial=947266851FC1A550F924479DFAB5FD38
Info : CMSIS-DAP: SWD supported
Info : CMSIS-DAP: Atomic commands supported
Info : CMSIS-DAP: Test domain timer supported
Info : CMSIS-DAP: FW Version = 2.1.0
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : SWCLK/TCK = 0 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : clock speed 4000 kHz
Info : SWD DPIDR 0x0bb11477
Info : [n32g031.cpu] Cortex-M0 r0p0 processor detected
Info : [n32g031.cpu] target has 4 breakpoints, 2 watchpoints
Info : SWD DPIDR 0x0bb11477
Error: Failed to write memory at 0xffffffff
Info : starting gdb server for n32g031.cpu on 3333
Info : Listening on port 3333 for gdb connections
N32G031 CMSIS-DAP configuration loaded
Target: N32G031 (Cortex-M0)
Debugger: CMSIS-DAP
Transport: SWD
Speed: 4MHz
我遇到这个 memory 的问题,请问楼主如何解决的呀
Info : SWD DPIDR 0x0bb11477
Error: Failed to read memory at 0xffffffff
Warn : Failed to read device ID from address 0x40015800: -4
Warn : N32G45x auto_probe failed: -4. This may be normal if no hardware is connected.
Error: auto_probe failed
2025-10-02 17:22:28 - Flash信息测试: 失败 - Flash 信息读取错误:
2025-10-02 17:22:28 - 内存访问测试: 开始 - 测试内存读写功能
Info : [n32g031.cpu] external reset detected
2025-10-02 17:22:28 - 内存访问: 成功 - SRAM 读写测试通过
2025-10-02 17:22:28 - 内存访问测试: 失败 - 内存访问错误: 1
|