Reading Thingy:53 sensor data

Hello everyone !

I am following the tutorial "Reading Thingy:53 sensor data using Bluetooth LE".
It doesn't matter if I don't do it myself or if I take the source program from github the project doesn't build.
I have the following error:
FATAL ERROR: command exited with status 1: 'c:\ncs\toolchains\v2.3.0\opt\bincmake.EXE' --build 'c:\Users\fduvi\Desktop\stage\Nordic_LTEthingy53_sensor_hub-masterthingy53_sensor_hub-master'

Can someone help me ? 

Kind regards,

Pierre

Here we can see the error with the source program

Parents
  • Hi Pierre

    Can you please upload the build log using "insert --> code"?

    The image is unfortunately unreadable 

    Regards

    Runar

  • Sorry i don't know why but i can't put my code with the "insert --> code"...

    here a pastbin with the terminal prompt : https://pastebin.com/gdx3G4Nk

    here the CMake error log : https://pastebin.com/rNQRTHab

    I hope it will be usable...

  • fduvi@MSI MINGW64 /c/ncs/v2.3.0
    $ west update
    === updating zephyr (zephyr):
    HEAD is now at fcaa60a99f [nrf fromtree] soc: nrf53: Warn if workaround for anomaly 160 cannot be applied
    === updating sdk-hostap (modules/lib/hostap):
    HEAD is now at 73de50a27 Fix hidden SSID association
    === updating mcuboot (bootloader/mcuboot):
    HEAD is now at 9c58609b [nrf fromlist] boot: zephyr: Clean up before chainloading by default
    === updating mbedtls (modules/crypto/mbedtls):
    HEAD is now at c2a205601 [nrf noup] Constant size for psa_core_key_attributes_t struct
    === updating nrfxlib (nrfxlib):
    HEAD is now at 6d0f5844 doc: update versions for 2.3.0 release
    === updating trusted-firmware-m (modules/tee/tf-m/trusted-firmware-m):
    HEAD is now at 150e7b43 [nrf fromtree] secure_fw: crypto: add -Wno-unused-const-variable
    === updating matter (modules/lib/matter):
    HEAD is now at bf8b787ae [nrf noup] Mapped the WiFi security type from Zephyr to Matter
    Synchronizing submodule url for 'third_party/nlio/repo'
    Synchronizing submodule url for 'third_party/nlassert/repo'
    Synchronizing submodule url for 'third_party/nlunit-test/repo'
    Synchronizing submodule url for 'third_party/pigweed/repo'
    === updating cjson (modules/lib/cjson):
    HEAD is now at c6af068 [nrf fromtree] fix: potential memory leak in merge_patch() (#611)
    === updating azure-sdk-for-c (modules/lib/azure-sdk-for-c):
    HEAD is now at 308c171c [nrf fromlist] Make repository a Zephyr module
    === updating cmock (test/cmock):
    HEAD is now at f65066f Merge pull request #404 from tz18/patch-1
    Synchronizing submodule url for 'vendor/c_exception'
    Synchronizing submodule url for 'vendor/unity'
    === updating memfault-firmware-sdk (modules/lib/memfault-firmware-sdk):
    HEAD is now at dbe84b9 Memfault Firmware SDK 0.37.2 (Build 1352)
    === updating cirrus (modules/hal/cirrus-logic):
    HEAD is now at 9f6b381 sdk-mcu-drivers: Added build system configs and generated files
    === updating openthread (modules/lib/openthread):
    HEAD is now at 2060039bb [csl] fix indirect retransmission of frame previously transmitted via CSL (#8770)
    === updating canopennode (modules/lib/canopennode):
    HEAD is now at 53d3415 Merge pull request #5 from teslabs/module-name
    === updating chre (modules/lib/chre):
    HEAD is now at fe0ab36e Merge pull request #6 from yperess/peress/downstream-fix
    === updating cmsis (modules/hal/cmsis):
    HEAD is now at 74981bf Update DSP library for additional platforms
    === updating edtt (tools/edtt):
    HEAD is now at 000fb87 initiator: Fix disconnect with other event at the same time
    === updating fatfs (modules/fs/fatfs):
    HEAD is now at 38f303a zephyr: Add ffconf.h override with ZEPHYR_CONFIG_OVERRIDE
    === updating hal_nordic (modules/hal/nordic):
    HEAD is now at fe0be3c drivers: nrf_802154: Update the IEEE 802.15.4 component
    === updating hal_st (modules/hal/st):
    HEAD is now at cccbc24 sensor: lsm6dso: Disable -Wmaybe-uninitialized for lsm6dso_mode_set
    === updating hal_wurthelektronik (modules/hal/wurthelektronik):
    HEAD is now at 24ca987 Initialized WE HAL module repository.
    === updating libmetal (modules/hal/libmetal):
    HEAD is now at efa2ace lib: update libmetal to SHA cd4fb67a4f50
    === updating liblc3 (modules/lib/liblc3):
    HEAD is now at 448f3de Merge pull request #8 from carlescufi/rename
    === updating littlefs (modules/fs/littlefs):
    HEAD is now at ca583fd Merge tag 'v2.5.0' of https://github.com/littlefs-project/littlefs into zephyr
    === updating loramac-node (modules/lib/loramac-node):
    HEAD is now at ce57712f Don't memset the TXRX buffer when radio is set to receive mode (#1345)
    === updating lvgl (modules/lib/gui/lvgl):
    HEAD is now at 5ab83099 zephyr: add missing errno.h include
    === updating lz4 (modules/lib/lz4):
    HEAD is now at 8e303c2 zephyr: make this repo a zephyr module
    === updating mipi-sys-t (modules/debug/mipi-sys-t):
    HEAD is now at 0d521d8 mipi_syst_api.c: Change MIPI_SYST_PCFG_PRINTF_ARGBUF_SIZE macro.
    === updating nanopb (modules/lib/nanopb):
    HEAD is now at dc4deed Merge pull request #1 from pdgendt/zephyr
    === updating net-tools (tools/net-tools):
    HEAD is now at e0828aa net-setup: Add instructions for NAT and routing
    === updating nrf_hw_models (modules/bsim_hw_models/nrf_hw_models):
    HEAD is now at 65bc530 irq_ctrl: Add support for level interrupts
    === updating open-amp (modules/lib/open-amp):
    HEAD is now at aedcc26 lib: update open-amp lib to release v2022.10.0
    === updating picolibc (modules/lib/picolibc):
    HEAD is now at 04ada5951 Version 1.7.8
    === updating segger (modules/debug/segger):
    HEAD is now at d4e568a Resolve circular include dependencies
    === updating tinycbor (modules/lib/tinycbor):
    HEAD is now at 9e1f34b module: Deprecate TinyCBOR
    === updating tinycrypt (modules/crypto/tinycrypt):
    HEAD is now at 3e9a49d cmake: Fix conditional in root CMakeLists.txt
    === updating TraceRecorderSource (modules/debug/TraceRecorder):
    HEAD is now at d926075 Merge pull request #12 from nashif/topic/thread_name
    === updating tf-m-tests (modules/tee/tf-m/tf-m-tests):
    HEAD is now at bcb53bc Merge pull request #4 from joerchan/tfm-library-mode-invalid-data-length-zephyr
    === updating psa-arch-tests (modules/tee/tf-m/psa-arch-tests):
    HEAD is now at f4fc244 Merge pull request #5 from Vge0rge/increase_crypto_timeout
    === updating uoscore-uedhoc (modules/lib/uoscore-uedhoc):
    HEAD is now at e892019 Merge pull request #11 from rlubos/zephyr-integration
    === updating zcbor (modules/lib/zcbor):
    HEAD is now at 0556eda Update version from 0.5.99 to 0.6.0
    === updating zscilib (modules/lib/zscilib):
    HEAD is now at ca070dd Merge pull request #39 from microbuilder/fix_tests_cmake

    Now the "insert code" seems to work !!

    Here is what it prompts !

    I tried to build the project again but i have the same error..

  • Thanks. 

    Have you tried a pristine build after the update? 

    Also, can you find the file that is reported missing? 

    Regards

    Runar

  • I have restarted my computer and it does not work.

    I looked for this error:
    C:\ncs\v2.3.0\modules\crypto\mbedtls\library\psa_crypto_rsa.c:43: fatal error: opening dependency file secure_fw\partitions\crypto\mbedcrypto\nrf_security_src\CMakeFiles\crypto_service_mbedcrypto. dir\C_\ncs\v2.3.0\modules\crypto\mbedtls\library\psa_crypto_rsa.o.d: No such file or directory

    I have the psa_crypto_rsa.c file with its .h and VSCode does not give me an error.
    However, I don't have the "psa_crypto_rsa.o.d" should I add it?

  • Could you try to move your build folder to a shorter path? For this test something like C/test? it could be the path length to the build folder

    if not:

    In your build configuration, is your build set tu xxx_cpuapp or app_ns? Can you try to change to the other one, delete your build folder and do a prestine build?

    Regards

    Runar

Reply Children
  • My build is set for "ingy53_nrf5340_cpuapp_ns" like the tutorial say.

    I tried deleting the build folder and the missing folder changes every time. However, it's still a .o.d

    If i'm building for "ingy53_nrf5340_cpuapp"  the terminal tells me I'm missing some includes like the "#include <drivers/adc.h>" except I checked and it's in the right place in zéphyr...

Related