FX3/CX3 JLINK 调试

FX3 JLINK调试是一个有些麻烦的事情,经常有些莫名其妙的问题。
设置参见 c:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\doc\firmware
下的 EzUsbSuite_UG.pdf 文档。
常见问题:
1.装了多个版本的jlink,使用了未注册或不适当的版本
选择一个正确的版本。JLinkARM_V408l,JLinkARM_V486b,JLink_V510d,JLink_V512f。
打开JLink目录下的JLink.exe(序列号S/N:-1,出厂设置),看是否连接成功。
打开JLinkGDBServer.exe,看CPU,电压等,是否正常,GDB 需要调试时候才是正常的(绿色)。
2. Failed to execute MI command:
去掉debug设置里的startup页中的set breakpoint at main.
When CDT launches, it tries to set a breakpoint at main, so it will interrupt execution when your program starts. However, your target is already running so the breakpoint cannot be set and the whole things fails.
You could simply tell your launch not to set that breakpoint and let it connect to your target. Go to: Run->Debug Configurations… and find your launch configuration. Then select the Startup subtab, scroll down and uncheck “Set breakpoint at” in the “Runtime options” subsection.
–There is a mismatch between the gdb client inside eclipse and the gdb server. Try changing the gdb client in eclipse
debug settings –> Debugger –> Main Tab –> Browse to gdb compiled for the same platform
3. gdb 路径不对
E:\Program Files (x86)\Cypress\EZ-USB FX3 SDK\1.3\ARM GCC\bin\arm-none-eabi-gdb.exe

  1. 关闭相关软件jlink,JLinkGDBServer
    kill相应的进程,重启Ez-usb(eclipse),重启电脑。
    实在不行就只能尝试重启大法了。。。

常用快捷键:
F5:step into,F6:step over; F8:resume.

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值