MQTT sample for nRF9161_ns compilation error

Hello, I.m using SDK 2.6.1 with VSCode.

I created a new application based on the sample /nrf/samples/net/mqtt configured for nRF9161_ns which is listed as a compatible board.

When I build the application I get 2 compilation errors:

C:/ncs/MyApp/mqtt_clean/src/modules/network/network.c:16:30: error: 'CONFIG_MQTT_SAMPLE_NETWORK_LOG_LEVEL' undeclared here (not in a function); did you mean 'CONFIG_MQTT_SAMPLE_ERROR_LOG_LEVEL'?

C:/ncs/MyApp/mqtt_clean/src/modules/network/network.c:110:17: error: 'CONFIG_MQTT_SAMPLE_NETWORK_THREAD_STACK_SIZE' undeclared here (not in a function); did you mean 'CONFIG_MQTT_SAMPLE_SAMPLER_THREAD_STACK_SIZE'?

Substituting,  as the compiler is suggesting, CONFIG_MQTT_SAMPLE_NETWORK_LOG_LEVEL with CONFIG_MQTT_SAMPLE_ERROR_LOG_LEVEL and CONFIG_MQTT_SAMPLE_NETWORK_THREAD_STACK_SIZE with CONFIG_MQTT_SAMPLE_SAMPLER_THREAD_STACK_SIZE fixes the compilation errors.

Not sure the above correction is correct, since when I start the application I do not see any meaningful trace on the serial port with exception of  "*** Booting nRF Connect SDK v3.5.99-ncs1-1 ***" which isn't the output one would expect considering what reported in https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/samples/net/mqtt/README.html.

Im running the MQTT sample on a nRF9161_DK board with a properly working ONOMONDO  LTE CatM SIM.

Could you confirm that SDK 2.6.1 nrf MQTT sample is generating the above listed error ?

Is the fix succested by the compiler correct (CONFIG_MQTT_SAMPLE_NETWORK_LOG_LEVEL ->CONFIG_MQTT_SAMPLE_ERROR_LOG_LEVEL and CONFIG_MQTT_SAMPLE_NETWORK_THREAD_STACK_SIZE->CONFIG_MQTT_SAMPLE_SAMPLER_THREAD_STACK_SIZE )?

regards, Joel

Parents
  • Hi Joel,

    Michial is not available now, and I will continue to help you.

    I just have two questions:

    1) Do you have problem to build the original sample in C:\NCS\v2.6.1\nrf\samples\net\mqtt ?

    2) How do you "generated a new application starting from nrf MQTT sample"? Do you use "Copy a sample" to copy the original MQTT sample? if not, can you have a try?

    Attached is a log when I build from nRF VS Code extension GUI.

     *  Executing task: nRF Connect: Generate config nrf9161dk_nrf9161_ns for c:\NCS\myApps\mqtt 
    
    Building mqtt
    C:\WINDOWS\system32\cmd.exe /d /s /c "west build --build-dir c:/NCS/myApps/mqtt/build c:/NCS/myApps/mqtt --pristine --board nrf9161dk_nrf9161_ns -- -DNCS_TOOLCHAIN_VERSION=NONE -DBOARD_ROOT=c:/ncs/myapps/mqtt"
    
    -- west build: generating a build system
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/NCS/myApps/mqtt
    -- CMake version: 3.21.0
    -- Found Python3: C:/NCS/toolchains/cf2149caf2/opt/bin/python.exe (found suitable version "3.9.13", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: C:/NCS/v2.6.1/zephyr/.cache
    -- Zephyr version: 3.5.99 (C:/NCS/v2.6.1/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf9161dk_nrf9161_ns, Revision: 0.9.0
    -- Found host-tools: zephyr 0.16.5 (C:/NCS/toolchains/cf2149caf2/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.5 (C:/NCS/toolchains/cf2149caf2/opt/zephyr-sdk)
    -- Found Dtc: C:/NCS/toolchains/cf2149caf2/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") 
    -- Found BOARD.dts: C:/NCS/v2.6.1/zephyr/boards/arm/nrf9161dk_nrf9161/nrf9161dk_nrf9161_ns.dts
    -- Found devicetree overlay: C:/NCS/myApps/mqtt/boards/nrf9161dk_nrf9161_ns.overlay
    -- Generated zephyr.dts: C:/NCS/myApps/mqtt/build/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/NCS/myApps/mqtt/build/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/NCS/myApps/mqtt/build/zephyr/dts.cmake
    
    warning: Experimental symbol NET_CONNECTION_MANAGER is enabled.
    
    Parsing C:/NCS/myApps/mqtt/Kconfig
    Loaded configuration 'C:/NCS/v2.6.1/zephyr/boards/arm/nrf9161dk_nrf9161/nrf9161dk_nrf9161_ns_defconfig'
    Merged configuration 'C:/NCS/myApps/mqtt/prj.conf'
    Merged configuration 'C:/NCS/myApps/mqtt/boards/nrf9161dk_nrf9161_ns.conf'
    Configuration saved to 'C:/NCS/myApps/mqtt/build/zephyr/.config'
    Kconfig header saved to 'C:/NCS/myApps/mqtt/build/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: c:/ncs/toolchains/cf2149caf2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe (found version "2.38") 
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/NCS/toolchains/cf2149caf2/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    CMake Warning at C:/NCS/v2.6.1/zephyr/CMakeLists.txt:1957 (message):
      __ASSERT() statements are globally ENABLED
    
    
    Dropping partition 'nonsecure_storage' since it is empty.
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/NCS/myApps/mqtt/build
    -- west build: building application
    [2/321] Generating include/generated/version.h
    -- Zephyr version: 3.5.99 (C:/NCS/v2.6.1/zephyr), build: v3.5.99-ncs1-1-4-ga681edb8d456
    [3/321] Generating ../../tfm/CMakeCache.txt
    CMake Warning at cmake/version.cmake:22 (message):
      Actual TF-M version is not available from Git repository.  Settled to
      v2.0.0
    Call Stack (most recent call first):
      CMakeLists.txt:22 (include)
    
    
    -- Found Git: C:/NCS/toolchains/cf2149caf2/mingw64/bin/git.exe (found version "2.37.3.windows.1") 
    -- The C compiler identification is GNU 12.2.0
    -- The CXX compiler identification is GNU 12.2.0
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/NCS/toolchains/cf2149caf2/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- Found Python3: C:/NCS/toolchains/cf2149caf2/opt/bin/python.exe (found version "3.9.13") found components: Interpreter 
    CMake Deprecation Warning at C:/NCS/v2.6.1/zephyr/cmake/modules/FindDeprecated.cmake:121 (message):
      'PYTHON_PREFER' variable is deprecated.  Please use Python3_EXECUTABLE
      instead.
    Call Stack (most recent call first):
      C:/NCS/v2.6.1/zephyr/cmake/modules/python.cmake:16 (find_package)
      C:/NCS/v2.6.1/zephyr/cmake/modules/user_cache.cmake:30 (include)
      C:/NCS/v2.6.1/zephyr/cmake/modules/extensions.cmake:5 (include)
      C:/NCS/v2.6.1/nrf/subsys/nrf_security/tfm/CMakeLists.txt:38 (include)
    
    
    -- Found Python3: C:/NCS/toolchains/cf2149caf2/opt/bin/python.exe (found suitable version "3.9.13", minimum required is "3.8") found components: Interpreter 
    -- Cache files will be written to: C:/NCS/v2.6.1/zephyr/.cache
    -- Configuring done
    -- Generating done
    CMake Warning:
      Manually-specified variables were not used by the project:
    
        CRYPTO_RNG_MODULE_ENABLED
        MBEDTLS_PSA_CRYPTO_USER_CONFIG_FILE
        PYTHON_PREFER
    
    
    -- Build files have been written to: C:/NCS/myApps/mqtt/build/tfm
    [163/167] Linking C executable bin\tfm_s.axf
    Memory region         Used Size  Region Size  %age Used
               FLASH:       32096 B        32 KB     97.95%
                 RAM:       10416 B        32 KB     31.79%
    [15/321] Performing install step for 'tfm'
    -- Install configuration: "MinSizeRel"
    ----- Installing platform NS -----
    [319/321] Linking C executable zephyr\zephyr.elf
    Memory region         Used Size  Region Size  %age Used
               FLASH:      181476 B       992 KB     17.87%
                 RAM:       56716 B     195224 B     29.05%
            IDT_LIST:          0 GB        32 KB      0.00%
    [321/321] Generating zephyr/merged.hex
     *  Terminal will be reused by tasks, press any key to close it. 

    Best regards,

    Charlie

  • Hello Charlie...

    1) building the sample directly returns the same errors (VSC -> Browse Samples)

    2) I generated the application from VSC-> Create a new application-> Copy a sample-> nrf/samples/net/mqtt configuring for nrf9161_nc target.

    No code modifications at all...

    Regards, Jel

  • No, in the office I'm working on a Win10 PC. The Win11 is on my laptop @ home.

    Joel

  • I tested with a Win11 PC at home, and it still works.

    I also run out of idea now.

    Do you have problem to build other samples like hello world?

    Any of your colleague have got same issue?

  • Ok ... thx anyway for the support ... the  build of other samples like the lwm2m is completing successfully.

    Unfortunately, for the time being, I'm the only person evaluating Nordic semi. stuff ....

    Joel

  • Did you find something wrong when you do  "Update SDK" and "Update toolchain"?

    I got following log when I did this with NCS 2.7.0. You will get some error report if it fails to fetch some repositories.

    2024-08-01T09:26:29.126Z INFO Cloning nRF Connect SDK v2.7.0
    2024-08-01T09:26:29.140Z DEBUG Sending event "toolchain-manager: Clone nRF Connect SDK"
    2024-08-01T09:26:29.147Z DEBUG Sending event "toolchain-manager: running nrfutil toolchain-manager"
    2024-08-01T09:26:30.375Z DEBUG === updating zephyr (zephyr):
    2024-08-01T09:26:30.376Z INFO Updating zephyr repository for v2.7.0
    2024-08-01T09:26:30.526Z DEBUG skipping unnecessary fetch
    2024-08-01T09:26:32.146Z DEBUG M	drivers/input/input_gpio_keys.c
    2024-08-01T09:26:32.147Z DEBUG M	samples/subsys/input/input_dump/prj.conf
    2024-08-01T09:26:32.355Z DEBUG === updating bsim (tools/bsim):
    2024-08-01T09:26:32.356Z INFO Updating bsim repository for v2.7.0
    2024-08-01T09:26:32.550Z DEBUG skipping unnecessary fetch
    2024-08-01T09:26:33.086Z DEBUG === updating hostap (modules/lib/hostap):
    2024-08-01T09:26:33.086Z INFO Updating hostap repository for v2.7.0
    2024-08-01T09:26:33.286Z DEBUG skipping unnecessary fetch
    2024-08-01T09:26:33.682Z DEBUG === updating wfa-qt-control-app (modules/lib/wfa-qt-control-app):
    2024-08-01T09:26:33.683Z INFO Updating wfa-qt-control-app repository for v2.7.0
    2024-08-01T09:26:33.893Z DEBUG skipping unnecessary fetch
    2024-08-01T09:26:34.304Z DEBUG === updating mcuboot (bootloader/mcuboot):
    2024-08-01T09:26:34.305Z INFO Updating mcuboot repository for v2.7.0
    2024-08-01T09:26:34.463Z DEBUG skipping unnecessary fetch
    2024-08-01T09:26:35.488Z DEBUG === updating qcbor (modules/tee/tf-m/qcbor):
    2024-08-01T09:26:35.489Z INFO Updating qcbor repository for v2.7.0
    2024-08-01T09:26:35.728Z DEBUG skipping unnecessary fetch
    2024-08-01T09:26:36.116Z DEBUG === updating mbedtls (modules/crypto/mbedtls):
    2024-08-01T09:26:36.117Z INFO Updating mbedtls repository for v2.7.0
    2024-08-01T09:26:36.253Z DEBUG skipping unnecessary fetch
    2024-08-01T09:26:36.834Z DEBUG === updating oberon-psa-crypto (modules/crypto/oberon-psa-crypto):
    2024-08-01T09:26:36.834Z INFO Updating oberon-psa-crypto repository for v2.7.0
    2024-08-01T09:26:37.022Z DEBUG skipping unnecessary fetch
    2024-08-01T09:26:37.466Z DEBUG === updating nrfxlib (nrfxlib):
    2024-08-01T09:26:37.467Z INFO Updating nrfxlib repository for v2.7.0
    2024-08-01T09:26:37.612Z DEBUG skipping unnecessary fetch
    2024-08-01T09:26:38.582Z DEBUG === updating trusted-firmware-m (modules/tee/tf-m/trusted-firmware-m):
    2024-08-01T09:26:38.582Z INFO Updating trusted-firmware-m repository for v2.7.0
    2024-08-01T09:26:38.726Z DEBUG skipping unnecessary fetch
    2024-08-01T09:26:39.389Z DEBUG === updating psa-arch-tests (modules/tee/tf-m/psa-arch-tests):
    2024-08-01T09:26:39.390Z INFO Updating psa-arch-tests repository for v2.7.0
    2024-08-01T09:26:39.604Z DEBUG skipping unnecessary fetch
    2024-08-01T09:26:40.172Z DEBUG === updating matter (modules/lib/matter):
    2024-08-01T09:26:40.173Z INFO Updating matter repository for v2.7.0
    2024-08-01T09:26:40.321Z DEBUG skipping unnecessary fetch
    2024-08-01T09:26:43.302Z DEBUG Synchronizing submodule url for 'third_party/nlio/repo'
    2024-08-01T09:26:45.954Z DEBUG Synchronizing submodule url for 'third_party/nlassert/repo'
    2024-08-01T09:26:48.462Z DEBUG Synchronizing submodule url for 'third_party/nlunit-test/repo'
    2024-08-01T09:26:51.092Z DEBUG Synchronizing submodule url for 'third_party/pigweed/repo'
    2024-08-01T09:26:53.676Z DEBUG Synchronizing submodule url for 'third_party/jsoncpp/repo'
    2024-08-01T09:26:55.190Z DEBUG nrf-802154: skipping inactive project
    2024-08-01T09:26:55.190Z DEBUG === updating soc-hwmv1 (modules/soc-hwmv1):
    2024-08-01T09:26:55.192Z INFO Updating soc-hwmv1 repository for v2.7.0
    2024-08-01T09:26:55.417Z DEBUG skipping unnecessary fetch
    2024-08-01T09:26:55.835Z DEBUG dragoon: skipping inactive project
    2024-08-01T09:26:55.835Z DEBUG === updating cjson (modules/lib/cjson):
    2024-08-01T09:26:55.836Z INFO Updating cjson repository for v2.7.0
    2024-08-01T09:26:56.036Z DEBUG skipping unnecessary fetch
    2024-08-01T09:26:56.478Z DEBUG sidewalk: skipping inactive project
    2024-08-01T09:26:56.478Z DEBUG === updating find-my (find-my):
    2024-08-01T09:26:56.479Z INFO Updating find-my repository for v2.7.0
    2024-08-01T09:26:56.625Z DEBUG skipping unnecessary fetch
    2024-08-01T09:26:57.337Z DEBUG M	samples/simple/sysbuild_ZRelease.conf
    2024-08-01T09:26:57.339Z DEBUG === updating azure-sdk-for-c (modules/lib/azure-sdk-for-c):
    2024-08-01T09:26:57.341Z INFO Updating azure-sdk-for-c repository for v2.7.0
    2024-08-01T09:26:57.545Z DEBUG skipping unnecessary fetch
    2024-08-01T09:26:57.948Z DEBUG === updating cirrus (modules/hal/cirrus-logic):
    2024-08-01T09:26:57.949Z INFO Updating cirrus repository for v2.7.0
    2024-08-01T09:26:58.138Z DEBUG skipping unnecessary fetch
    2024-08-01T09:26:58.589Z DEBUG === updating openthread (modules/lib/openthread):
    2024-08-01T09:26:58.590Z INFO Updating openthread repository for v2.7.0
    2024-08-01T09:26:58.854Z DEBUG skipping unnecessary fetch
    2024-08-01T09:26:59.360Z DEBUG === updating suit-generator (modules/lib/suit-generator):
    2024-08-01T09:26:59.361Z INFO Updating suit-generator repository for v2.7.0
    2024-08-01T09:26:59.518Z DEBUG skipping unnecessary fetch
    2024-08-01T09:26:59.943Z DEBUG === updating suit-processor (modules/lib/suit-processor):
    2024-08-01T09:26:59.943Z INFO Updating suit-processor repository for v2.7.0
    2024-08-01T09:27:00.103Z DEBUG skipping unnecessary fetch
    2024-08-01T09:27:00.508Z DEBUG === updating cmock (test/cmock):
    2024-08-01T09:27:00.509Z INFO Updating cmock repository for v2.7.0
    2024-08-01T09:27:00.697Z DEBUG skipping unnecessary fetch
    2024-08-01T09:27:02.793Z DEBUG Synchronizing submodule url for 'vendor/c_exception'
    2024-08-01T09:27:02.888Z DEBUG Synchronizing submodule url for 'vendor/unity'
    2024-08-01T09:27:04.511Z DEBUG === updating memfault-firmware-sdk (modules/lib/memfault-firmware-sdk):
    2024-08-01T09:27:04.511Z INFO Updating memfault-firmware-sdk repository for v2.7.0
    2024-08-01T09:27:04.650Z DEBUG skipping unnecessary fetch
    2024-08-01T09:27:05.852Z DEBUG ant: skipping inactive project
    2024-08-01T09:27:05.852Z DEBUG bme68x: skipping inactive project
    2024-08-01T09:27:05.852Z DEBUG bsec: skipping inactive project
    2024-08-01T09:27:05.853Z DEBUG === updating coremark (modules/benchmark/coremark):
    2024-08-01T09:27:05.853Z INFO Updating coremark repository for v2.7.0
    2024-08-01T09:27:06.063Z DEBUG skipping unnecessary fetch
    2024-08-01T09:27:06.451Z DEBUG === updating canopennode (modules/lib/canopennode):
    2024-08-01T09:27:06.451Z INFO Updating canopennode repository for v2.7.0
    2024-08-01T09:27:06.661Z DEBUG skipping unnecessary fetch
    2024-08-01T09:27:07.026Z DEBUG === updating chre (modules/lib/chre):
    2024-08-01T09:27:07.026Z INFO Updating chre repository for v2.7.0
    2024-08-01T09:27:07.216Z DEBUG skipping unnecessary fetch
    2024-08-01T09:27:07.669Z DEBUG === updating lz4 (modules/lib/lz4):
    2024-08-01T09:27:07.670Z INFO Updating lz4 repository for v2.7.0
    2024-08-01T09:27:07.878Z DEBUG skipping unnecessary fetch
    2024-08-01T09:27:08.442Z DEBUG === updating nanopb (modules/lib/nanopb):
    2024-08-01T09:27:08.443Z INFO Updating nanopb repository for v2.7.0
    2024-08-01T09:27:08.658Z DEBUG skipping unnecessary fetch
    2024-08-01T09:27:09.542Z DEBUG === updating tf-m-tests (modules/tee/tf-m/tf-m-tests):
    2024-08-01T09:27:09.543Z INFO Updating tf-m-tests repository for v2.7.0
    2024-08-01T09:27:09.838Z DEBUG skipping unnecessary fetch
    2024-08-01T09:27:10.305Z DEBUG === updating zscilib (modules/lib/zscilib):
    2024-08-01T09:27:10.307Z INFO Updating zscilib repository for v2.7.0
    2024-08-01T09:27:10.519Z DEBUG skipping unnecessary fetch
    2024-08-01T09:27:10.915Z DEBUG === updating cmsis (modules/hal/cmsis):
    2024-08-01T09:27:10.916Z INFO Updating cmsis repository for v2.7.0
    2024-08-01T09:27:11.114Z DEBUG skipping unnecessary fetch
    2024-08-01T09:27:11.548Z DEBUG === updating cmsis-dsp (modules/lib/cmsis-dsp):
    2024-08-01T09:27:11.550Z INFO Updating cmsis-dsp repository for v2.7.0
    2024-08-01T09:27:11.766Z DEBUG skipping unnecessary fetch
    2024-08-01T09:27:12.204Z DEBUG === updating cmsis-nn (modules/lib/cmsis-nn):
    2024-08-01T09:27:12.205Z INFO Updating cmsis-nn repository for v2.7.0
    2024-08-01T09:27:12.416Z DEBUG skipping unnecessary fetch
    2024-08-01T09:27:12.830Z DEBUG === updating edtt (tools/edtt):
    2024-08-01T09:27:12.831Z INFO Updating edtt repository for v2.7.0
    2024-08-01T09:27:13.046Z DEBUG skipping unnecessary fetch
    2024-08-01T09:27:13.482Z DEBUG === updating fatfs (modules/fs/fatfs):
    2024-08-01T09:27:13.482Z INFO Updating fatfs repository for v2.7.0
    2024-08-01T09:27:13.688Z DEBUG skipping unnecessary fetch
    2024-08-01T09:27:14.109Z DEBUG === updating hal_nordic (modules/hal/nordic):
    2024-08-01T09:27:14.110Z INFO Updating hal_nordic repository for v2.7.0
    2024-08-01T09:27:14.322Z DEBUG skipping unnecessary fetch
    2024-08-01T09:27:14.765Z DEBUG === updating hal_st (modules/hal/st):
    2024-08-01T09:27:14.766Z INFO Updating hal_st repository for v2.7.0
    2024-08-01T09:27:14.974Z DEBUG skipping unnecessary fetch
    2024-08-01T09:27:15.363Z DEBUG === updating hal_wurthelektronik (modules/hal/wurthelektronik):
    2024-08-01T09:27:15.363Z INFO Updating hal_wurthelektronik repository for v2.7.0
    2024-08-01T09:27:15.586Z DEBUG skipping unnecessary fetch
    2024-08-01T09:27:16.102Z DEBUG === updating libmetal (modules/hal/libmetal):
    2024-08-01T09:27:16.103Z INFO Updating libmetal repository for v2.7.0
    2024-08-01T09:27:16.368Z DEBUG skipping unnecessary fetch
    2024-08-01T09:27:16.766Z DEBUG === updating liblc3 (modules/lib/liblc3):
    2024-08-01T09:27:16.767Z INFO Updating liblc3 repository for v2.7.0
    2024-08-01T09:27:16.975Z DEBUG skipping unnecessary fetch
    2024-08-01T09:27:17.345Z DEBUG === updating littlefs (modules/fs/littlefs):
    2024-08-01T09:27:17.346Z INFO Updating littlefs repository for v2.7.0
    2024-08-01T09:27:17.543Z DEBUG skipping unnecessary fetch
    2024-08-01T09:27:18.053Z DEBUG === updating loramac-node (modules/lib/loramac-node):
    2024-08-01T09:27:18.054Z INFO Updating loramac-node repository for v2.7.0
    2024-08-01T09:27:18.278Z DEBUG skipping unnecessary fetch
    2024-08-01T09:27:18.895Z DEBUG === updating lvgl (modules/lib/gui/lvgl):
    2024-08-01T09:27:18.896Z INFO Updating lvgl repository for v2.7.0
    2024-08-01T09:27:19.113Z DEBUG skipping unnecessary fetch
    2024-08-01T09:27:19.500Z DEBUG === updating mipi-sys-t (modules/debug/mipi-sys-t):
    2024-08-01T09:27:19.501Z INFO Updating mipi-sys-t repository for v2.7.0
    2024-08-01T09:27:19.714Z DEBUG skipping unnecessary fetch
    2024-08-01T09:27:20.195Z DEBUG === updating net-tools (tools/net-tools):
    2024-08-01T09:27:20.195Z INFO Updating net-tools repository for v2.7.0
    2024-08-01T09:27:20.429Z DEBUG skipping unnecessary fetch
    2024-08-01T09:27:20.944Z DEBUG === updating nrf_hw_models (modules/bsim_hw_models/nrf_hw_models):
    2024-08-01T09:27:20.945Z INFO Updating nrf_hw_models repository for v2.7.0
    2024-08-01T09:27:21.168Z DEBUG skipping unnecessary fetch
    2024-08-01T09:27:21.597Z DEBUG === updating open-amp (modules/lib/open-amp):
    2024-08-01T09:27:21.598Z INFO Updating open-amp repository for v2.7.0
    2024-08-01T09:27:21.823Z DEBUG skipping unnecessary fetch
    2024-08-01T09:27:22.220Z DEBUG === updating picolibc (modules/lib/picolibc):
    2024-08-01T09:27:22.220Z INFO Updating picolibc repository for v2.7.0
    2024-08-01T09:27:22.479Z DEBUG skipping unnecessary fetch
    2024-08-01T09:27:27.306Z DEBUG === updating segger (modules/debug/segger):
    2024-08-01T09:27:27.322Z INFO Updating segger repository for v2.7.0
    2024-08-01T09:27:27.554Z DEBUG skipping unnecessary fetch
    2024-08-01T09:27:27.942Z DEBUG === updating tinycrypt (modules/crypto/tinycrypt):
    2024-08-01T09:27:27.943Z INFO Updating tinycrypt repository for v2.7.0
    2024-08-01T09:27:28.132Z DEBUG skipping unnecessary fetch
    2024-08-01T09:27:28.512Z DEBUG === updating uoscore-uedhoc (modules/lib/uoscore-uedhoc):
    2024-08-01T09:27:28.514Z INFO Updating uoscore-uedhoc repository for v2.7.0
    2024-08-01T09:27:28.724Z DEBUG skipping unnecessary fetch
    2024-08-01T09:27:29.142Z DEBUG === updating zcbor (modules/lib/zcbor):
    2024-08-01T09:27:29.143Z INFO Updating zcbor repository for v2.7.0
    2024-08-01T09:27:29.346Z DEBUG skipping unnecessary fetch
    2024-08-01T09:27:29.816Z DEBUG babblesim_base: skipping inactive project
    2024-08-01T09:27:29.816Z DEBUG babblesim_ext_2G4_libPhyComv1: skipping inactive project
    2024-08-01T09:27:29.816Z DEBUG babblesim_ext_2G4_phy_v1: skipping inactive project
    2024-08-01T09:27:29.816Z DEBUG babblesim_ext_2G4_channel_NtNcable: skipping inactive project
    2024-08-01T09:27:29.817Z DEBUG babblesim_ext_2G4_channel_multiatt: skipping inactive project
    2024-08-01T09:27:29.817Z DEBUG babblesim_ext_2G4_modem_magic: skipping inactive project
    2024-08-01T09:27:29.817Z DEBUG babblesim_ext_2G4_modem_BLE_simple: skipping inactive project
    2024-08-01T09:27:29.817Z DEBUG babblesim_ext_2G4_device_burst_interferer: skipping inactive project
    2024-08-01T09:27:29.817Z DEBUG babblesim_ext_2G4_device_WLAN_actmod: skipping inactive project
    2024-08-01T09:27:29.817Z DEBUG babblesim_ext_2G4_device_playback: skipping inactive project
    2024-08-01T09:27:29.817Z DEBUG babblesim_ext_2G4_device_playbackv2: skipping inactive project
    2024-08-01T09:27:29.817Z DEBUG babblesim_ext_libCryptov1: skipping inactive project
    2024-08-01T09:27:29.873Z DEBUG Sending event "toolchain-manager: running nrfutil toolchain-manager"
    2024-08-01T09:27:30.939Z DEBUG cmake version 3.21.0 is OK; minimum version is 3.13.1
    2024-08-01T09:27:30.939Z DEBUG Running CMake: 'C:\NCS\toolchains\ce3b5ff664\opt\bin\cmake.EXE' -P 'C:\NCS\v2.7.0\zephyr\share\zephyr-package\cmake\zephyr_export.cmake'
    2024-08-01T09:27:31.008Z DEBUG Zephyr (C:/NCS/v2.7.0/zephyr/share/zephyr-package/cmake)
    2024-08-01T09:27:31.008Z DEBUG has been added to the user package registry in:
    2024-08-01T09:27:31.008Z DEBUG HKEY_CURRENT_USER\Software\Kitware\CMake\Packages\Zephyr
    2024-08-01T09:27:31.008Z DEBUG 
    2024-08-01T09:27:31.037Z DEBUG cmake version 3.21.0 is OK; minimum version is 3.13.1
    2024-08-01T09:27:31.037Z DEBUG Running CMake: 'C:\NCS\toolchains\ce3b5ff664\opt\bin\cmake.EXE' -P 'C:\NCS\v2.7.0\zephyr\share\zephyrunittest-package\cmake\zephyr_export.cmake'
    2024-08-01T09:27:31.106Z DEBUG ZephyrUnittest (C:/NCS/v2.7.0/zephyr/share/zephyrunittest-package/cmake)
    2024-08-01T09:27:31.106Z DEBUG has been added to the user package registry in:
    2024-08-01T09:27:31.106Z DEBUG HKEY_CURRENT_USER\Software\Kitware\CMake\Packages\ZephyrUnittest
    2024-08-01T09:27:31.106Z DEBUG 
    2024-08-01T09:27:31.165Z INFO Finished cloning version v2.7.0 of the nRF Connect SDK after approximately 1 minute(s)
    2024-08-01T09:27:31.165Z DEBUG Sending event "toolchain-manager: Clone nRF Connect SDK successfully"
    2024-08-01T09:27:31.166Z DEBUG Sending event "toolchain-manager: Clone nRF Connect SDK time consumed"
    2024-08-01T09:27:59.177Z DEBUG Sending event "toolchain-manager: running nrfutil toolchain-manager"
    2024-08-01T09:27:59.255Z DEBUG Sending event "toolchain-manager: Install toolchain from nrfutil"
    2024-08-01T09:28:10.161Z DEBUG Sending event "toolchain-manager: running nrfutil toolchain-manager"
    2024-08-01T09:28:10.227Z DEBUG Sending event "toolchain-manager: Install toolchain from nrfutil"

  • Here take a look at MQTT sample in my codebase which is little modified.


    https://github.com/Conexiotechnologies/conexio-firmware-sdk/tree/main/samples/conexio_stratus/mqtt_control

    this has been tested on 2.6.x but should also work for the latest.

    Hope it helps and thumbs up if it does..

Reply Children
Related