This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

eclipse include path added, but still can't find nrf_error.h?

I am able to use eclipse to run simple project, but after move the real one, getting lost of errors:

www.dropbox.com/.../Screenshot 2014-04-02 09.10.41.png

I add required include path include/s110, but still complain can't find it,

any helps are appreciated

  • when I debug I get errors, I already run the ./disable_cdc.sh and follow steps in gnuarmeclipse.livius.net/.../

    SEGGER J-Link GDB Server V4.84 Command Line Version

    JLinkARM.dll V4.84 (DLL compiled Mar 28 2014 16:35:10)

    -----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: localhost only Generate logfile: off Verify download: on Init regs on start: on Silent mode: off Single run mode: on Target connection timeout: 5 sec. ------J-Link related settings------ J-Link Host interface: USB J-Link script: none J-Link settings file: none ------Target related settings------ Target device: nRF51822_xxAA_s110 Target interface: SWD Target interface speed: 30kHz Target endian: little

    Connecting to J-Link... J-Link is connected. Firmware: J-Link OB-SAM3U128 V1 compiled Dec 11 2013 20:20:11 Hardware: V1.00 S/N: 480205216 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...

    do I need to restart machine? in the same machine with fusion, I could debug with keil

  • Thanks, Can you recommend books so that I could understand the ld file and .c startup files?

  • I found hex generated by gcc is 314kb, and by keil is only 126kb, is it a problem?

  • gcc has .elf file which is 142kb, keil has no elf file.

  • I had the debug issue again SEGGER J-Link GDB Server V4.84 Command Line Version

    JLinkARM.dll V4.84 (DLL compiled Mar 28 2014 16:35:10)

    -----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: localhost only Generate logfile: off Verify download: on Init regs on start: on Silent mode: off Single run mode: on Target connection timeout: 5 sec. ------J-Link related settings------ J-Link Host interface: USB J-Link script: none J-Link settings file: none ------Target related settings------ Target device: nRF51822_xxAA_s110 Target interface: SWD Target interface speed: 30kHz Target endian: little

    Connecting to J-Link... J-Link is connected. Firmware: J-Link OB-SAM3U128 V1 compiled Dec 11 2013 20:20:11 Hardware: V1.00 S/N: 480205216 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...

    already run ./disable_cdc.sh it was ok, not sure if restart will help

Related