nrf9160 aws_iot sample is hangind inside the nrf_spu_flashregion_set() function.

I am currently running the aws_iot sample on the nrf9160-dk, however i Have noticed that the program is not getting into the main function at all, but is getting stuck before that. So I ran the debugger and pressed pause that when I noticed that it is stuck in the function below

The call stack is as shown below, showing that an exception has been thrown.

...

I am still getting acquainted with the nrf controllers and Zephyr. would you know what maybe the cause for this?

Kind Regards

Parents
  • Hello Raymond,

    Which NCS Version you are using and which target you are building for?

    I am using NCS V2.4.0, and the sample AWS_IOT using the VS Code Extension

    Also make sure SDK and the Toolchain both are correct / compatible

    I built for the nrf9160dk_nrf9160_ns board target

    After successful compilation, I flashed it onto the DK (Before that I just tested my DK with hello world sample and connected Putty to the COM ports to make sure that DK is all good).

    I could see the output as below.

    Maybe you could try to follow the same (test hello world sample, connect to com port, make sure sdk and toolchain are correct, compile and flash sample).

    BR, Naeem

  • So I was previously using the 2.0.0 SDK, now i have updated to the 2.4.1, but I am an now getting an error in the build 

    I haven't really changed anything other than the hostname and security tag in the prj.conf file.

    What maybe causing this?

Reply Children
  • Hello Raymond,

    I have updated to 2.4.1 to match your settings.

    I started with the builtin AWS_IOT sample, straight out of the box

    I am compiling for the 9160_ns board, and there are no errors

    If you are doing things differently, please follow these steps:

    1) update sdk and the toolchain

    2) make sure sdk and toolchain match when you start new free-standing application of AWS_IOT

    3) without any changes, build the project for the 9160_NS board

    BR,

    Naeem

Related