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
  • Yess, gjorde alt på vei ned til ninja flash.     fikk dette ut på terminalen:

    C:\gnuarmemb\bin\arm-none-eabi-objcopy.exe: zephyr.hex 64-bit address 0x4b4fa300000000 out of range for Intel Hex file
    C:\gnuarmemb\bin\arm-none-eabi-objcopy.exe:zephyr.hex: bad value
    ninja: build stopped: subcommand failed

  • This is a known bug with the latest version of GNU Embedded Toolchain for Arm, see this thread. Please download and install the previous version:
    https://developer.arm.com/tools-and-software/open-source-software/gnu-toolchain/gnu-rm/downloads#panel2a

  • 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

Related