|
我参考ST CubeMX IDE的弄法,在NXP的开发环境 MCUexpress(类GCC开发环境)上配置Openocd
自己公司开发的板卡,连Jlink是正常的
然后将H7-TOOL和板子连接好,然后点击调试
然后一直连不上,连接日志如下
Open On-Chip Debugger 0.12.0 (2023-02-02) [https://github.com/sysprogs/openocd]
Licensed under GNU GPL v2
libusb1 09e75e98b4d9ea7909e8837b7a3f00dda4589dc3
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "swd". To override use 'transport select <transport>'.
0x00000000
Started by GNU MCU Eclipse
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Warn : An adapter speed is not selected in the init scripts. OpenOCD will try to run the adapter at very low speed (100 kHz).
Warn : To remove this warnings and achieve reasonable communication speed with the target, set "adapter speed" or "jtag_rclk" in the init scripts.
Info : CMSIS-DAP: SWD supported
Info : CMSIS-DAP: Atomic commands supported
Info : CMSIS-DAP: Test domain timer 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 = 0
Info : CMSIS-DAP: Interface ready
Info : clock speed 100 kHz
Info : SWD DPIDR 0x2ba01477
Info : [lpc546x.cpu] Cortex-M4 r0p1 processor detected
Info : [lpc546x.cpu] target has 6 breakpoints, 4 watchpoints
Info : starting gdb server for lpc546x.cpu on 3333
Info : Listening on port 3333 for gdb connections
Info : accepting 'gdb' connection on tcp/3333
[lpc546x.cpu] halted due to debug-request, current mode: Handler HardFault
xPSR: 0x21000003 pc: 0x000001ea msp: 0x20027f98
Warn : keep_alive() was not invoked in the 1000 ms timelimit. GDB alive packet not sent! (2245 ms). Workaround: increase "set remotetimeout" in GDB
Warn : Prefer GDB command "target extended-remote :3333" instead of "target remote :3333"
[lpc546x.cpu] halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x03000136 msp: 0x20003fe0
Warn : keep_alive() was not invoked in the 1000 ms timelimit. GDB alive packet not sent! (2402 ms). Workaround: increase "set remotetimeout" in GDB
Warn : negative acknowledgment, but no packet pending
Info : SWD DPIDR 0x2ba01477
Error: Failed to write memory at 0x00000204
Info : SWD DPIDR 0x2ba01477
Error: Failed to write memory at 0x00003ea4
Info : dropped 'gdb' connection (error -400)
求大神指导~~~
|
|