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

SD132 NRF52 gcc debugging

Hi

I'm trying to port my firmware to the NRF52 DK, but I'm having trouble getting it to work. Could you give me a hint based on the stack trace below, what the problem might be?

Thread #1 <main> (Suspended : Signal : SIGTRAP:Trace/breakpoint trap)	
	0x20001248	
	<signal handler called>() at 0xfffffff9	
	0xf5bbf576	
	0x1000000	

I'm using

  • SEGGER J-Link GDB Server V5.12g
  • gcc 5.4 q2
  • Eclipse Mars

Everything works fine for the NRF51 DK... This is driving me crazy..

Thanks for your hints in advance!

Parents
  • These are my ld-file settings:

    MEMORY
        {
          FLASH (rx) : ORIGIN = 0x1f000, LENGTH = 0x61000
          RAM (rwx) :  ORIGIN = 0x20002080, LENGTH = 0xdf80
        }
    

    The output of nrfjprog readregs is

    R0:   0x0001E0D1
    R1:   0x20001248
    R2:   0x00002000
    R3:   0x00000000
    R4:   0x10001000
    R5:   0x00000000
    R6:   0x00000000
    R7:   0x0001E0D1
    R8:   0x00000000
    R9:   0x00000000
    R10:  0x00000000
    R11:  0x00000000
    R12:  0x00000000
    SP:   0x20001230
    LR:   0xFFFFFFF9
    PC:   0x20001248
    xPSR: 0x61000003
    MSP:  0x20001230
    PSP:  0x00000000
    

    Meanwhile I also tried to compile with gcc 4.9 and 5.2 without success. The symptoms stay the same... :-(

Reply
  • These are my ld-file settings:

    MEMORY
        {
          FLASH (rx) : ORIGIN = 0x1f000, LENGTH = 0x61000
          RAM (rwx) :  ORIGIN = 0x20002080, LENGTH = 0xdf80
        }
    

    The output of nrfjprog readregs is

    R0:   0x0001E0D1
    R1:   0x20001248
    R2:   0x00002000
    R3:   0x00000000
    R4:   0x10001000
    R5:   0x00000000
    R6:   0x00000000
    R7:   0x0001E0D1
    R8:   0x00000000
    R9:   0x00000000
    R10:  0x00000000
    R11:  0x00000000
    R12:  0x00000000
    SP:   0x20001230
    LR:   0xFFFFFFF9
    PC:   0x20001248
    xPSR: 0x61000003
    MSP:  0x20001230
    PSP:  0x00000000
    

    Meanwhile I also tried to compile with gcc 4.9 and 5.2 without success. The symptoms stay the same... :-(

Children
No Data
Related