FX3/CX3 JLINK 调试

来源:互联网 发布:百度地图 api 知乎 编辑:程序博客网 时间:2024/06/06 01:14

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.

0 0
原创粉丝点击