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

No source available for "0xfffffffe"

Hello,

I am facing the below issue that no source is available for "0xfffffffe" when i try to debug the program using eclipse

image description

I am using softdevice s130 and have flashed the same before debugging the application.

image description

When I debug the same program using Keil I am able to debug it.

Can anyone let me know what could be the issue? Thank you in advance

Kind Regards, Richard Lobo

Parents
  • Hi, have you built the application with the debug flag set? This is briefly mentioned in the "Create a new Eclipse project" in the GCC tutorial. More information on what this flag does can be found here.

    Update 10-1-17:

    Please make sure that the GDB executable is set to arm-none-eabi-gdb in the debugger configuration, otherwise it may default to GDB if installed on host.

    image description

    If this does not help, read out the value of the XPSR register to check if a hardfault exception has occured.

    image description

Reply
  • Hi, have you built the application with the debug flag set? This is briefly mentioned in the "Create a new Eclipse project" in the GCC tutorial. More information on what this flag does can be found here.

    Update 10-1-17:

    Please make sure that the GDB executable is set to arm-none-eabi-gdb in the debugger configuration, otherwise it may default to GDB if installed on host.

    image description

    If this does not help, read out the value of the XPSR register to check if a hardfault exception has occured.

    image description

Children
  • Hi Vidar,

    Yes, I had already added the flags as mentioned CFLAGS += -Wall -Werror -O0 -g3 -fomit-frame-pointer

  • Ok, then we can rule that out. Is there a particular SDK example you're trying to build? The question is if this example is configured for running with the s130 v.1.0.0 stack. That is, using the appropriate linker settings, and the correct SD API headers.

  • Yes, I have configured the project to use SD s130 v1 . To debug the project from Keil, I load the SD S130 and then debug my program. I have no issues when I run using Keil. So you still suspect I ve linked issues?

  • Hi Vidar,

    For your reference output of my debug console SEGGER J-Link GDB Server V5.02 Command Line Version

    JLinkARM.dll V5.02 (DLL compiled Aug 28 2015 19:41:08)

    -----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: 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: nRF51422_xxAC Target interface: SWD Target interface speed: 1000kHz Target endian: little

    Connecting to J-Link... J-Link is connected. Firmware: J-Link OB-SAM3U128-V2-NordicSemi compiled Aug 28 2015 19:26:24 Hardware: V1.00 S/N: 681241657 Checking target voltage... Target voltage: 3.30 V Listening on TCP/IP port 2331 Connecting to target...Connected to target Waiting for GDB connection...Connected to 127.0.0.1 Reading all registers Read 4 bytes @ address 0x00000000 (Data = 0x000007C0) Target interface speed set to 1000 kHz Resetting target Halting target CPU... ...Target halted (PC = 0x000006D0) R0 = FFFFFFFF, R1 = FFFFFFFF, R2 = FFFFFFFF, R3 = FFFFFFFF R4 = FFFFFFFF, R5 = FFFFFFFF, R6 = FFFFFFFF, R7 = FFFFFFFF R8 = FFFFFFFF, R9 = FFFFFFFF, R10= FFFFFFFF, R11= FFFFFFFF R12= FFFFFFFF, R13= 000007C0, MSP= 000007C0, PSP= FFFFFFFC R14(LR) = FFFFFFFF, R15(PC) = 000006D0 XPSR C1000000, APSR C0000000, EPSR 01000000, IPSR 00000000 CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00 Reading all registers Read 4 bytes @ address 0x000006D0 (Data = 0x4C174916) Select auto target interface speed (1000 kHz) Flash breakpoints enabled Semi-hosting enabled (Handle on BKPT) Semihosting I/O set to TELNET Client SWO disabled succesfully. Failed to enable SWO. Could not determine a suitable SWO speed! Read 4 bytes @ address 0x000006D0 (Data = 0x4C174916) Downloading 4096 bytes @ address 0x00018000 - Verified OK Downloading 4096 bytes @ address 0x00019000 - Verified OK Downloading 4096 bytes @ address 0x0001A000 - Verified OK Downloading 4096 bytes @ address 0x0001B000 - Verified OK Downloading 4096 bytes @ address 0x0001C000 - Verified OK Downloading 4096 bytes @ address 0x0001D000 - Verified OK Downloading 4096 bytes @ address 0x0001E000 - Verified OK Downloading 4096 bytes @ address 0x0001F000 - Verified OK Downloading 4096 bytes @ address 0x00020000 - Verified OK Downloading 4096 bytes @ address 0x00021000 - Verified OK Downloading 4096 bytes @ address 0x00022000 - Verified OK Downloading 3604 bytes @ address 0x00023000 - Verified OK Downloading 8 bytes @ address 0x00023E14 - Verified OK Downloading 160 bytes @ address 0x00023E1C - Verified OK Comparing flash [....................] Done. Erasing flash [....................] Done. Programming flash [....................] Done. Verifying flash [....................] Done. Writing register (PC = 0x000237e4) Read 4 bytes @ address 0x000237E4 (Data = 0xFFFFFFFF) Read 2 bytes @ address 0x0001DA20 (Data = 0xF005) Read 2 bytes @ address 0x0001DA20 (Data = 0xF005) Read 2 bytes @ address 0x0001CCE8 (Data = 0x466B) Read 2 bytes @ address 0x0001CCE8 (Data = 0x466B) Resetting target Halting target CPU... ...Target halted (PC = 0x000006D0) Read 2 bytes @ address 0x0001DA20 (Data = 0xF005) Read 2 bytes @ address 0x0001DA20 (Data = 0xF005) Read 2 bytes @ address 0x0001DA20 (Data = 0xF005) R0 = FFFFFFFF, R1 = FFFFFFFF, R2 = FFFFFFFF, R3 = FFFFFFFF R4 = FFFFFFFF, R5 = FFFFFFFF, R6 = FFFFFFFF, R7 = FFFFFFFF R8 = FFFFFFFF, R9 = FFFFFFFF, R10= FFFFFFFF, R11= FFFFFFFF R12= FFFFFFFF, R13= 000007C0, MSP= 000007C0, PSP= FFFFFFFC R14(LR) = FFFFFFFF, R15(PC) = 000006D0 XPSR C1000000, APSR C0000000, EPSR 01000000, IPSR 00000000 CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00 Reading all registers Read 4 bytes @ address 0x000006D0 (Data = 0x4C174916) Setting breakpoint @ address 0x0001CCE8, Size = 2, BPHandle = 0x0001 Setting breakpoint @ address 0x0001DA20, Size = 2, BPHandle = 0x0002 Starting target CPU... ...Target halted (PC = 0xFFFFFFFE) Reading all registers Read 4 bytes @ address 0xFFFFFFFE (Data = 0x00000040) Removing breakpoint @ address 0x0001CCE8, Size = 2 Removing breakpoint @ address 0x0001DA20, Size = 2 Read 4 bytes @ address 0x0001B17A (Data = 0x4000B808) Read 4 bytes @ address 0x200021DC (Data = 0x00000000) Read 4 bytes @ address 0x200021DC (Data = 0x00000000) Read 4 bytes @ address 0x200021DC (Data = 0x00000000) Read 4 bytes @ address 0x00000000 (Data = 0x000007C0) Read 4 bytes @ address 0x200021DC (Data = 0x00000000) Read 4 bytes @ address 0xFFFFFFFF (Data = 0x000007C0) Reading 64 bytes @ address 0x00000000

  • Could you share the .hex and .map from your GCC build so I can try it here?

Related