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

Mqtt_simple sample error.

Trying to up load mqtt_simple sample, however getting bus fault on terminal. have browsed after the same issue here, but don't work after doing git pull ect...

here's the output:

***** BUS FAULT *****


 
Precise data bus error


  
BFAR Address: 0x4002a514



***** Hardware exception 
*****


Current thread ID = 0x2000033c



Faulting instruction address = 0x70b8


Fatal 
fault in essential thread! Spinning...
Parents Reply Children
  • I've done everything on that first thread and second thread. have done this as well:

    The following repositories must be combined with fw-nrfconnect-nrf:

    • fw-nrfconnect-zephyr
    • fw-nrfconnect-mcuboot
    • nrfxlib

    and trying to opden ned sdk project in segger and configurate new directory etc.

    and getting this error.

    and after this error I deleted the fw-nrfconnect-nrf repositories and clone other older repositories, it works like a clock, but to run mqtt_simple I must have the new ones. but the new ones give me project file error on every sample. 

  • Yes, this error is due to an issue with the master branch and Segger, as mentioned here. This is an issue that we are working to solve. If you are comfortable with command line programming, then I suggest following the linked thread. But you have to use command promt or terminal.

    If you do want to use Segger, then you have to stick with the working GIT repo (tag v0.3.0), which does not have the MQTT Simple example. The workaround would be to copy this MQTT Simple Sample (just the MQTT Simple folder) into your samples folder: nrf\samples\nrf9160\

    Using Segger, you should be able to open this example using "Open RF Connect SDK project" as normal.

    Have a try and see how that works.

    Kind regards,
    Øyvind


  • yess, am trying to use the command prompt and did it on friday. but now I get an another error there then I got on friday.

    warning: NET_RAW_MODE (defined at subsys\net\ip\Kconfig:12) was assigned the value 'y' but got the
    value 'n'. This symbol has no prompt, meaning assignments in configuration files have no effect on
    it. It can only be set indirectly, via Kconfig defaults (e.g. in a Kconfig.defconfig file) or
    through being 'select'ed or 'imply'd (note: try to avoid Kconfig 'select's except for trivial
    promptless "helper" symbols without dependencies, as it ignores dependencies and forces symbols on).
    YouParsing Kconfig tree in C:/Nordic/ncs/zephyr/Kconfig
    Loading C:/Nordic/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090_defconfig as base
    Merging C:/Nordic/ncs/nrf/samples/nrf9160/at_client/prj.conf
     can check symbol information (including dependencies) in the 'menuconfig' interface (see the
    Application Development Primer section of the manual), or in the Kconfig reference at
    docs.zephyrproject.org/.../CONFIG_NET_RAW_MODE.html (which is updated
    regularly from the master branch). See the 'Setting configuration values' section of the Board
    Porting Guide as well. It covers Kconfig.defconfig files.

    C:/Nordic/ncs/nrf/samples/nrf9160/at_client/prj.conf:1: warning: attempt to assign the value 'y' to the undefined symbol BSD_LIBRARY

    C:/Nordic/ncs/nrf/samples/nrf9160/at_client/prj.conf:6: warning: attempt to assign the value 'y' to the undefined symbol AT_HOST_LIBRARY

    Error: Aborting due to non-whitelisted Kconfig warning
    'C:/Nordic/ncs/nrf/samples/nrf9160/at_client/prj.conf:1: warning: attempt to assign the value 'y' to
    the undefined symbol BSD_LIBRARY'. Note: If this warning doesn't point to an actual problem, you can
    add it to the whitelist at the top of C:/Nordic/ncs/zephyr/scripts/kconfig/kconfig.py.

    CMake Error at C:/Nordic/ncs/zephyr/cmake/kconfig.cmake:191 (message):
      command failed with return code: 1
    Call Stack (most recent call first):
      C:/Nordic/ncs/zephyr/cmake/app/boilerplate.cmake:397 (include)
      CMakeLists.txt:9 (include)


    -- Configuring incomplete, errors occurred!

    here am trying to flash AT_client, and is the same error on mqtt_simple and others.

    and if i use mqtt_simple with SES I'll get bus fault on the mqtt.

    regards

    Henning

  • Ok, that was not what I expected.

    Can you please elaborate your steps up to this point? 

    What versions of git repositories are you using? Remember, there are two repository tags that can be used for fw-nrfconnect-nrf: tag v0.3.0 or 0.3.99 (master branch).

    Maybe it is good to start from scratch. What did you use to start with the nRF9160 DK? Getting Started with the nRF91DKnRF Connect SDK v0.3.0 documentation or  nRF Connect SDK v0.3.99 documentation? The latter yields the issue as mentioned in the previous post (not able to use the master branch with Segger Embedded Studio (SES)). I would recommend using the first one (Getting Started....), which lets you use SES.

    Thank you,
    Øyvind

  • I've updated the master branch, git pull etc... when I flash it, I'm doing it exactly like the thread u posted. even tried to flash the cmake .. -DBOARD=nrf9160_pca10090ns -GNinja and cmake .. -DBOARD=nrf9160_pca10090 -GNinja.

    I think it's odd because I've erased and done everything from the start, but it will not flash the new one.

    So I tried to flash the old one v0.3.0 with a prompter, it works rigth away.

    i've stated with Getting Started with the nRF91DK,  I started with the nrf connect v2.6.2, and done everything there even verified all.

    I only have problem with the new v0.3.99

    regards

    Henning

Related