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

nrf9160 MQTT example

Hi!

I just saw the MQTT example that has been merged in the master branch and tried to run it on my DK (NB-IoT). Without changing anything in the code or configuration the execution leads to the following output in the console appears:

***** BUS FAULT *****
Precise data bus error
BFAR Address: 0x4002a514
***** Hardware exception *****
Current thread ID = 0x2000031c
Faulting instruction address = 0x6604
Fatal fault in essential thread! Spinning...

I used the latest tags of the releases of zephyr, etc. and only copied mqtt_simple from master branch. Are there any hints or tips how I can make the example work?

Parents Reply Children
  • Hi! I just updated all repos to the latest master branch and tried to build the secure_boot and mqtt_simple. In SES both builds failed with the following output:

    Rebuilding ‘zephyr/include/generated/offsets.h’ from solution ‘build’ in configuration ‘Common’
    1> Combining ‘zephyr/include/generated/offsets.h’
    1> Traceback (most recent call last):
    1> File "C:/Users/***/Documents/workspace/nrf91_src_root/ncs/zephyr/scripts/gen_offset_header.py", line 72, in <module>
    1> input_file = open(args.input, 'rb')
    1> FileNotFoundError: [Errno 2] No such file or directory: 'C:/Users/***/Documents/workspace/nrf91_src_root/ncs/nrf/samples/nrf9160/secure_boot/build/zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj'
    Build failed

    Is building in SES still an issue? Shall I try via terminal?

  • Yes, I am sorry for not mentioning that.
    As for now you cannot build master in SES, only with the terminal method. (this is being worked on to be fixed)

  • Hi!

    I had a couple of days off, but now I tried to do the build via command line. Works fine until I want to run "ninja flash". It says that I have to install west:

    [0/1] cmd.exe /C "cd /D C:\Users\***\Documents\workspace\nrf91_src_root\ncs...est bootstrapper with: 'pip install west --user', and thereafter 'west init'.""
    West was not found in path. To support 'C:/ProgramData/chocolatey/bin/ninja.exe flash', please install west bootstrapper with: 'pip install west --user', and thereafter 'west init'.

    So I installed west like in the documentation for already existing repositories with the enclosing zephyrproject folder. So the structure is "ncs/zephyrproject/zephyr". But this seems to confuse cmake as it quits with an error.

    Any hints on how to make "ninja flash" work? Whats the correct way to install west for this purpose?

    Are there any updates regarding building and flashing via SES?

    Thanks!

Related