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

NRF52840DK w/S140 hardfault

Loaded Softdevice S140, ( Using NRF52840 DK board ) using NRFgo Studio.

App flash base is set to 0x00021000 and app RAM base is set to 0x20003000

Looking at the CPU registers, once the function is called the CPU enters SVC as expected, then about 10-15 assembly instructions it enters hardfault and stays there..

After the SVC #16 call, the PC jumps to 0x00000908 ( tst lr, #4 ) then after a few more instructions it reaches : 0x00000092E ldr r2, [r2] 0x000000930 bx r2 <-- this call causes the jump to hardfault.

I'm assuming that the softdevice is not the cause of the error, but since my software doesn't do anything really, I cannot find any reason it should fail...

Also been looking for any softdevice s140 specifications, like the S132 has, does it exists ?

Related