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
  • Hello Henning, 

    Did you see this thread? Similar bus fault with the MQTT Simple Sample.

    Kind regards,
    Øyvind

  • 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

  • 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

  • I need to use mqtt_simple in my project. or do u have an another sample to transmitt data to a server?

    -Henning

  • henninglindseth said:
    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.

     Can you please share the command prompt output when you run these commands? Are you in the correct folders when running these commands?

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

    I need to use mqtt_simple in my project. or do u have sample to data to a server?

    Did you try to copy the mqtt_simple example to the v0.3.0 samples folder? Ensuring that you were using v0.3.0? 

    Did you try to open this example using Segger Embedded Studio Nordic Edition?

  • here the whole thing:


    USN+103438@S-HVE9127 MINGW64 /c/ncs
    $ export ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb

    USN+103438@S-HVE9127 MINGW64 /c/ncs
    $ export GNUARMEMB_TOOLCHAIN_PATH=/c/gnuarmemb/

    USN+103438@S-HVE9127 MINGW64 /c/ncs
    $ source /c/ncs/zephyr/zephyr-env.sh

    USN+103438@S-HVE9127 MINGW64 /c/ncs
    $ cd /c/ncs/nrf/samples/nrf9160/mqtt_simple/

    USN+103438@S-HVE9127 MINGW64 /c/ncs/nrf/samples/nrf9160/mqtt_simple (master)
    $ mkdir build && cd build
    mkdir: cannot create directory ‘build’: File exists

    USN+103438@S-HVE9127 MINGW64 /c/ncs/nrf/samples/nrf9160/mqtt_simple (master)
    $ mkdir build && cd build

    USN+103438@S-HVE9127 MINGW64 /c/ncs/nrf/samples/nrf9160/mqtt_simple/build (master)
    $ cmake .. -DBOARD=nrf9160_pca10090ns -GNinja
    Zephyr version: 1.14.0
    -- Found PythonInterp: C:/Python37/python.exe (found suitable version "3.7.2", minimum required is "3.4")
    -- Selected BOARD nrf9160_pca10090ns
    -- Found west: C:/Python37/Scripts/west.exe (found suitable version "0.5.7", minimum required is "0.5.6")
    -- Loading C:/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090ns.dts as base
    -- Overlaying C:/ncs/zephyr/dts/common/common.dts
    Parsing Kconfig tree in C:/ncs/nrf/samples/nrf9160/mqtt_simple/Kconfig
    Loading C:/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090ns_defconfig as base
    Merging C:/ncs/nrf/samples/nrf9160/mqtt_simple/prj.conf

    C:/ncs/nrf/samples/nrf9160/mqtt_simple/prj.conf:11: warning: attempt to assign the value 'y' to the undefined symbol LTE_LINK_CONTROL

    C:/ncs/nrf/samples/nrf9160/mqtt_simple/prj.conf:12: warning: attempt to assign the value 'n' to the undefined symbol LTE_AUTO_INIT_AND_CONNECT

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

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

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

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


    -- Configuring incomplete, errors occurred!

    *******************************************************************************************************

    USN+103438@S-HVE9127 MINGW64 /c/ncs/nrf/samples/nrf9160/mqtt_simple/build (master)
    $ cmake .. -DBOARD=nrf9160_pca10090 -GNinja
    Zephyr version: 1.14.0
    CMake Warning at C:/ncs/zephyr/cmake/app/boilerplate.cmake:155 (message):
    The build directory must be cleaned pristinely when changing boards
    Call Stack (most recent call first):
    CMakeLists.txt:9 (include)


    -- Selected BOARD nrf9160_pca10090ns
    -- Found west: C:/Python37/Scripts/west.exe (found suitable version "0.5.7", minimum required is "0.5.6")
    -- Loading C:/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090ns.dts as base
    -- Overlaying C:/ncs/zephyr/dts/common/common.dts
    Parsing Kconfig tree in C:/ncs/nrf/samples/nrf9160/mqtt_simple/Kconfig
    Loading C:/ncs/zephyr/boards/arm/nrf9160_pca10090/nrf9160_pca10090ns_defconfig as base
    Merging C:/ncs/nrf/samples/nrf9160/mqtt_simple/prj.conf

    C:/ncs/nrf/samples/nrf9160/mqtt_simple/prj.conf:11: warning: attempt to assign the value 'y' to the undefined symbol LTE_LINK_CONTROL

    C:/ncs/nrf/samples/nrf9160/mqtt_simple/prj.conf:12: warning: attempt to assign the value 'n' to the undefined symbol LTE_AUTO_INIT_AND_CONNECT

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

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

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

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


    -- Configuring incomplete, errors occurred!

    **************************************************************

    if the rigth folder is build, and before compiling its empty.

    yess, I have tried that, to copy it, tried it first before and tried it agian. however, the bus fault happen. the same bus fault as written at the topic.

    I think I've covered everything here on devzone to find out the issue. 

    --Henning

  • I have this issue as well. When the mqtt_simple example is compiled from the master branch using Cmake, the DK will report back a BUS FAULT.

    I have also tried copying the sample (and the Zephyr mqtt.h include file) into a v0.3.0 branch of the nRF connect repos and compiled it using both SEGGER Embedded Studio and Cmake. Both compile and flash but continue to report back BUS FAULTs.

Reply Children
Related