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

nRF9160 System Off Mode Bus Fault Error

Hey,

I'm trying to put the nRF9160 into System Off mode and am getting a bus fault error when writing to the REGULATORS module. This is the error output:

***** BUS FAULT *****
Precise data bus error
BFAR Address: 0x40004500
***** Hardware exception *****
Current thread ID = 0x200245f8
Faulting instruction address = 0x412da
Fatal fault in thread 0x200245f8! Aborting.

I first set the modem to power off using ```lte_power_off()```, and then call ```nrf_regulators_system_off(NRF_REGULATORS_NS);```

I'm calling this from a non-secure app. Do I have to add configuration in the bootloader to allow non-secure access to the REGULATORS registers? Are there additional steps to configure before going into System Off mode?

- Jack

  • Hi Jack, 

    1.)

    The "Secure_boot" name has been changed to "Secure Partition Manager" (SPM) to comply with the Platform Security Architecture (PSA).
    It basically does the same thing as you may know from what you know from the "secure_boot". 

    The new feature with the NCS v0.4.0 release is that you do not need to build the SPM sample separately as you may remember from "secure_boot".

    When building an application it will default build the compliant SPM for that application and it will also make a merged.hex file for your convenience when you are going to flash.

    This is how you flash with SES v4.16.


    However, the error you are getting is most likely because the you are not using the correct versions of the repositories.

    Please do the following to get the latest recommended tagged version of NCS.

    cd ncs/nrf
    git checkout master
    git pull
    git checkout v0.4.0
    west update

    2.) The nrf91 branch is deprecated, you are most likely reading that from an old version of the "Getting started assistant"?

    This is the latest documentation for NCS.

    I highly recommend you to go through the updated (latest version: v.0.9.2)"Getting Started Assistant" in nRF Connect for Desktop to see that you have done all the correct steps with the updated information.

    Best Regards,

    Martin L.

  • Hey Martin,

    Thanks for your response! I upgraded to v0.4.0 of the SDK and am now able to build & run the spm bootloader. I am also able to build & run my application.

    One thing I noticed is, it looks like the AT_Client sample has changed. I was running the at_host in my application before as a debugging tool to talk to the modem. I can't seem to run it in my app after updating the sdk. I see that the new at_client sample doesn't have a main while() loop so its obviously running in some new way now. How can I run the AT_Host client on UART_0 in my application?

    - Jack

  • Hi Jack,
    You are correct that the at_client sample has changed.

    It is now easier to add the at_host library into your application.

    There are three options on how to enable the at_host library your application.

    1.) You can add:

    CONFIG_AT_HOST_LIBRARY=y

    in the prj.conf file of your application.


    2.) Enable the at_host library via 'menuconfig' in the command line:


    3.) Enable it in SES IDE

    Best Regards,

    Martin L.

Related