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

nRF9160 Custom Board won't jump to application correctly.

Hi,

I've been developing an application with the nRF9160 dev kit. We have just received the first rev of our custom hardware with an nRF9160 on it. I am trying to program the "secure_boot" application as well as our main application onto the custom board.

I can successfully program the "secure_boot" sample app and am getting the correct debug outputs. I can also successfully program my custom application. However, the bootloader can't successfully jump to my application. After setting some breakpoints I can see that it's throwing an error when calling this line of the "secure_boot" application:

Line 407 (main.c):        reset_ns()

My Target Output in SES displays: "Stopped by vector catch"

My application stops at line 97 of fault_s.S:   eors.n r0, r0

When I click "Attach Debugger" in my main application's solution I get this debug output:

***** HARD FAULT *****
Fault escalation (see below)
***** BUS FAULT *****
Precise data bus error
BFAR Address: 0x50008120
***** Hardware exception *****
Current thread ID = 0x200205f4
Faulting instruction address = 0x0
Fatal fault in ISR! Spinning...

Here are the steps I am taking:

(It works fine on the dev board but breaks on my custom board)

1. Erase all from the target

2. Program secure_boot

3. Program my application

Thanks,

Jack

Related