This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nRF51822 rogram received signal SIGTRAP, Trace/breakpoint trap

I download my elf file using SEGGER Jlink via Eclipse. The instruction pointer gets positioned on the Reset_Handler. But when I try to run the code after that, I get a SIGTRAP and control doesn't hit "main".

However, when I use the command line gdb I don't get/have this issue. I have checked my eclipse IDE to remove all breakpoints. I have already power cycled the board and started from scratch.

Note : my board is BOARD_PCA10001.

======

Program received signal SIGTRAP, Trace/breakpoint trap

0xfffffffe in ?? ()

=====

void Reset_Handler(void)

{

  unsigned long *pSrc, *pDst;

  /* Copy data segment initializers from flash to SRAM. */

  pSrc = &__etext;

  pDst = &__data_start__;

  while (pDst < &__data_end__)

  {

    *pDst++ = *pSrc++;

  }

======

When I pause to inspect the call stack I see this ...

nordic [GDB Hardware Debugging]	
	fit-obj.elf	
		Thread [1] <main> (Suspended : Signal : SIGTRAP:Trace/breakpoint trap)	
			0xfffffffe	
			<signal handler called>() at 0xfffffff9	
			systemVectors() at 0x0	
			0x0	
	gdb	
Parents Reply Children
No Data
Related