arm - 使用 Eclipse Mars CDT 进行 JTag 调试 : "Program file does not exist"

标签 arm eclipse-cdt cortex-m jtag segger-jlink

我已经成功编译了一个 ARM 嵌入式项目,下一个文件已创建:

MyProject.elf
MyProject.bin
MyProject.hex
MyProject.map
MyProjectmd5.bin

然后我要运行 -> 调试配置 -> GDB SEGGER J-Link 调试 -> 新建 -> 调试 并收到错误:

 Program file does not exist

使用的 ARM 的 GCC 编译器:https://launchpad.net/gcc-arm-embedded

使用的 ARM Eclipse 插件:http://gnuarmeclipse.livius.net/blog/

这就是我在控制台中看到的内容:

    23:25:36 **** Build of configuration Release for project MyProject ****
    make all 
    Invoking: Cross ARM GNU Print Size
    arm-none-eabi-size --format=berkeley "MyProject.elf"
       text    data     bss     dec     hex filename
      40120     252    2252   42624    a680 MyProject.elf
    Finished building: MyProject.siz



23:25:36 Build Finished (took 112ms)

运行JLinkGDBServer好像有问题

$ JLinkGDBServer
SEGGER J-Link GDB Server V4.98e Command Line Version

JLinkARM.dll V4.98e (DLL compiled May 5 2015 11:59:38)

-----GDB Server start settings-----
GDBInit file: none
GDB Server Listening port: 2331
SWO raw output listening port: 2332
Terminal I/O port: 2333
Accept remote connection: yes
Generate logfile: off
Verify download: off
Init regs on start: off
Silent mode: off
Single run mode: off
Target connection timeout: 0 ms
------J-Link related settings------
J-Link Host interface: USB
J-Link script: none
J-Link settings file: none
------Target related settings------
Target device: unspecified
Target interface: JTAG
Target interface speed: 1000kHz
Target endian: little

Connecting to J-Link...
J-Link is connected.
Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled May 4 2015 13:48:48
Hardware: V1.00
S/N: 681968347
Checking target voltage...
Target voltage: 3.30 V
Listening on TCP/IP port 2331
Connecting to target...ERROR: Could not connect to target.
Target connection failed. GDBServer will be closed...Restoring target state and closing J-Link connection...
Shutting down...
Could not connect to target.

最佳答案

主选项卡中的 C/C++ 应用程序丢失。 使用 Debug/MyProject.elf

确定

关于arm - 使用 Eclipse Mars CDT 进行 JTag 调试 : "Program file does not exist",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30604653/

相关文章:

c - ARM Cortex M3 上的 GCC : Calling functions from specific addresses

c++ - ARMv5tejl 中用于 C++ 的良好内存泄漏工具

c++ - "Hello World"运行失败。 Windows Vista 上 MinGW 和 Cygwin 的 Eclipse (Galileo) CDT 插件问题

c - TCP 绑定(bind)没有进程绑定(bind)的先验知识

Cortex-M3 实时中断 vector 重映射

android - armeabi 和 armeabi-v7a 文件夹

android - 我应该为哪些 Android 设备架构构建应用程序?

c - Printf w/Eclipse CDT 问题

c++ - 批量导入包含在 Eclipse for Opencv 中

embedded - 我可以将哪些 Cortex-M3 中断用于通用工作?