硬汉嵌入式论坛

 找回密码
 立即注册
查看: 379|回复: 2
收起左侧

[玩转DAPLINK] NXP LPC54616j512无法连接上H7-TOOL

[复制链接]

5

主题

28

回帖

43

积分

新手上路

积分
43
发表于 2023-9-1 15:10:19 | 显示全部楼层 |阅读模式
我参考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)


求大神指导~~~


回复

使用道具 举报

1万

主题

6万

回帖

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
106660
QQ
发表于 2023-9-1 16:01:35 | 显示全部楼层

现在的新版STM32CubeIDE使用DAPLINK非常简单,MCUexpress没用过,暂时不研究了。

H7-TOOL的高速DAPLINK用于新版STM32CubeIDE V1.13及其以上版本的超简单实现方法(2023-08-08)
https://www.armbbs.cn/forum.php?mod=viewthread&tid=120535
回复

使用道具 举报

5

主题

28

回帖

43

积分

新手上路

积分
43
 楼主| 发表于 2023-9-2 09:28:19 | 显示全部楼层
eric2013 发表于 2023-9-1 16:01
现在的新版STM32CubeIDE使用DAPLINK非常简单,MCUexpress没用过,暂时不研究了。

H7-TOOL的高速DAPLIN ...

我再研究看看,公司的Jlink太难用了,一进调试就识别D版,不给调试了,非常不方便
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2024-4-28 23:59 , Processed in 0.169615 second(s), 26 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表