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

What's the proper way to run nrf9160 DK's app working on nrf9160 SiP?

Hi there,

I'm having a lot of fun with running apps on nrf9160 SiP on board of nrf9160 DK.

nrf52840 SoC contains the standard board controller fw.

nrf9160 SiP contains the standard secure bootloader from samples and modem fw.

My app is very simple and uses only leds.

What I'm trying to do is just to blink by LED1 each 100 msec. Only Zephyr's main thread is being used.

The probability of a successful run when i see a blinking led is about 20-30% of all tries.

I've tried several DK start sequences and none of them give me a 100% success rate:

* switch DK off / on and wait

* switch DK off / on, push reset button (nrf91 debug state) and wait

* switch DK off / on, set nrf52 debug, push reset button and wait

* switch DK off / on, set nrf52 debug, push reset button, set nrf91 debug, push reset button and wait

3 sec delay has been added to the very beginning of the main thread to give time for the board controller to boot and init all routes.

In all successful runs it takes about 10-30 seconds to start blinking. 

What's the proper start sequence for nrf9160 DK?

Parents
  • Hi Alex,

    Please share your code.

    You should not need to add a delay in your main application, because it will not run parallel with the secure_boot. (it runs after)

    If you are using the default board controller and only need to reset the nrf91 the Reset button should be enough.

    Then again when you flash new firmware, it is recommended to power cycle the board. 

  • Power cycling and/or reset after flashing don't help to get a 100% successful run. You're right SiP's app runs after secure boot.

    I meant the following:

    - DK has 2 onboard ICs (nrf52 + nrf91)

    - when I switch DK on LED1 starts blinking for a very short moment of time

    - it seems like board controller nrf52 interrupts (resets) SiP during power up, performs board initialization. That's why blinking stops

    - then only after ~30-60 seconds led starts blinking again. But it's not guaranteed and resembles very random behaviour

    I just can't figure out why each power up results in different time to run my SiP's app if it's been run at all.

Reply
  • Power cycling and/or reset after flashing don't help to get a 100% successful run. You're right SiP's app runs after secure boot.

    I meant the following:

    - DK has 2 onboard ICs (nrf52 + nrf91)

    - when I switch DK on LED1 starts blinking for a very short moment of time

    - it seems like board controller nrf52 interrupts (resets) SiP during power up, performs board initialization. That's why blinking stops

    - then only after ~30-60 seconds led starts blinking again. But it's not guaranteed and resembles very random behaviour

    I just can't figure out why each power up results in different time to run my SiP's app if it's been run at all.

Children
No Data
Related