Issues with CONFIG settings when upgrading NCS to V2.6.0

I'm in the process of upgrading from V2.2.0 to V2.6.0 of NCS.  Not surpringly, I'm having issues with building firmware that used to "just work".  Slowly ticking off all the issues, but I'm currently stuck on one I can't resolve.

My firmware uses OTA firmware upgrade functionality, so I have an mcuboot.conf and a proj.conf file.  My mcuboot.conf disables most stuff, so I can keep the size of the mcuboot file to a minimum (I'm a bit close to the maximum flash useage).

In my proj.conf, I have these settings:

I've clearly set CONFIG_NEWLIC_LIBC=y, but for whatever reason in my build, its getting set to "n", which means its not bringing in a few of my includes (namely complex.h and cjson.h) because the relevant CONFIG's that enable them (CONFIG_NEWLIB_LIBC_FLOAT_PRINTF and CONFIG_CJSON_LIB) rely on CONFIG_NEWLIC_LIBC=y.

Can anyone help me resolve these issues?

Regards,

Mike

Parents Reply Children
  • HI Dejan,

    This is the log from a pristine build (sorry - it wouldn't let me insert it as code, or add as an attachment)

    I'm not able to flash the firmware as its not building succesfully.  The main issue seems to be the fact that CONFIG_CJSON_LIB is not set, and also this declaration is kicking up some errors for some reason:

    const struct device *counter_dev = DEVICE_DT_GET(DT_NODELABEL(timer0));

    Regards,

    Mike

    Executing task: nRF Connect: Build [pristine]: SST150B/build (active)

    Building SST150B
    C:\WINDOWS\system32\cmd.exe /d /s /c "west build --build-dir c:/Nordic/LPI/Development/SST150B/build c:/Nordic/LPI/Development/SST150B --pristine --board nrf52dk_nrf52832 --no-sysbuild -- -DNCS_TOOLCHAIN_VERSION=NONE -Dmcuboot_OVERLAY_CONFIG=C:/Nordic/v2.6.0/nrf/subsys/partition_manager/partition_manager_enabled.conf;C:/Nordic/LPI/Development/SST150B/child_image/mcuboot.conf -DCACHED_CONF_FILE=c:/Nordic/LPI/Development/SST150B/prj.conf -DDTC_OVERLAY_FILE=c:/Nordic/LPI/Development/SST150B/nrf52dk_nrf52832.overlay"

    -- west build: generating a build system
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/Nordic/LPI/Development/SST150B
    -- CMake version: 3.21.0
    -- Found Python3: C:/Nordic/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:/Nordic/v2.6.0/zephyr/.cache
    -- Zephyr version: 3.5.99 (C:/Nordic/v2.6.0/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf52dk_nrf52832
    -- Found host-tools: zephyr 0.16.5 (C:/Nordic/toolchains/cf2149caf2/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.5 (C:/Nordic/toolchains/cf2149caf2/opt/zephyr-sdk)
    -- Found Dtc: C:/Nordic/toolchains/cf2149caf2/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found BOARD.dts: C:/Nordic/v2.6.0/zephyr/boards/arm/nrf52dk_nrf52832/nrf52dk_nrf52832.dts
    -- Found devicetree overlay: c:/Nordic/LPI/Development/SST150B/nrf52dk_nrf52832.overlay
    -- Generated zephyr.dts: C:/Nordic/LPI/Development/SST150B/build/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/Nordic/LPI/Development/SST150B/build/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/Nordic/LPI/Development/SST150B/build/zephyr/dts.cmake

    warning: CJSON_LIB (defined at C:/Nordic/v2.6.0/nrf/modules/cjson/Kconfig:7) was assigned the value
    'y' but got the value 'n'. Check these unsatisfied dependencies: ((NEWLIB_LIBC &&
    NEWLIB_LIBC_FLOAT_PRINTF) || EXTERNAL_LIBC || PICOLIBC) (=n). See
    docs.zephyrproject.org/.../kconfig.html and/or look up CJSON_LIB in the
    menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration Values,
    and Kconfig - Tips and Best Practices sections of the manual might be helpful too.


    warning: THREAD_STACK_INFO (defined at kernel/Kconfig:189) was assigned the value 'n' but got the
    value 'y'. See docs.zephyrproject.org/.../kconfig.html and/or
    look up THREAD_STACK_INFO in the menuconfig/guiconfig interface. The Application Development Primer,
    Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
    helpful too.


    warning: UART_CONSOLE (defined at drivers/console/Kconfig:43) was assigned the value 'y' but got the
    value 'n'. Check these unsatisfied dependencies: SERIAL (=n), SERIAL_HAS_DRIVER (=n), CONSOLE (=n).
    See docs.zephyrproject.org/.../kconfig.html and/or look up
    UART_CONSOLE in the menuconfig/guiconfig interface. The Application Development Primer, Setting
    Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
    too.


    warning: NEWLIB_LIBC_FLOAT_PRINTF (defined at lib/libc\newlib/Kconfig:48) was assigned the value 'y'
    but got the value 'n'. Check these unsatisfied dependencies: NEWLIB_LIBC (=n). See
    docs.zephyrproject.org/.../kconfig.html and/or look up
    NEWLIB_LIBC_FLOAT_PRINTF in the menuconfig/guiconfig interface. The Application Development Primer,
    Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
    helpful too.


    warning: EARLY_CONSOLE (defined at subsys/debug/Kconfig:223) was assigned the value 'n' but got the
    value 'y'. See docs.zephyrproject.org/.../kconfig.html and/or look up
    EARLY_CONSOLE in the menuconfig/guiconfig interface. The Application Development Primer, Setting
    Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
    too.


    warning: MCUMGR_TRANSPORT_UART (defined at subsys/mgmt/mcumgr\transport\Kconfig.uart:12) was
    assigned the value 'y' but got the value 'n'. Check these unsatisfied dependencies: CONSOLE (=n).
    See docs.zephyrproject.org/.../kconfig.html and/or look up
    MCUMGR_TRANSPORT_UART in the menuconfig/guiconfig interface. The Application Development Primer,
    Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be
    helpful too.

    Parsing C:/Nordic/v2.6.0/zephyr/Kconfig
    Loaded configuration 'C:/Nordic/v2.6.0/zephyr/boards/arm/nrf52dk_nrf52832/nrf52dk_nrf52832_defconfig'
    Merged configuration 'c:/Nordic/LPI/Development/SST150B/prj.conf'
    Configuration saved to 'C:/Nordic/LPI/Development/SST150B/build/zephyr/.config'
    Kconfig header saved to 'C:/Nordic/LPI/Development/SST150B/build/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: c:/nordic/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:/Nordic/toolchains/cf2149caf2/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    -- Found Python3: C:/Nordic/toolchains/cf2149caf2/opt/bin/python.exe (found version "3.9.13") found components: Interpreter

    === child image mcuboot - begin ===
    loading initial cache file C:/Nordic/LPI/Development/SST150B/build/mcuboot/child_image_preload.cmake
    Loading Zephyr default modules (Zephyr base).
    -- Application: C:/Nordic/v2.6.0/bootloader/mcuboot/boot/zephyr
    -- CMake version: 3.21.0
    -- Found Python3: C:/Nordic/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:/Nordic/v2.6.0/zephyr/.cache
    -- Zephyr version: 3.5.99 (C:/Nordic/v2.6.0/zephyr)
    -- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
    -- Board: nrf52dk_nrf52832
    -- Found host-tools: zephyr 0.16.5 (C:/Nordic/toolchains/cf2149caf2/opt/zephyr-sdk)
    -- Found toolchain: zephyr 0.16.5 (C:/Nordic/toolchains/cf2149caf2/opt/zephyr-sdk)
    -- Found Dtc: C:/Nordic/toolchains/cf2149caf2/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found BOARD.dts: C:/Nordic/v2.6.0/zephyr/boards/arm/nrf52dk_nrf52832/nrf52dk_nrf52832.dts
    -- Found devicetree overlay: C:/Nordic/v2.6.0/bootloader/mcuboot/boot/zephyr/app.overlay
    -- Generated zephyr.dts: C:/Nordic/LPI/Development/SST150B/build/mcuboot/zephyr/zephyr.dts
    -- Generated devicetree_generated.h: C:/Nordic/LPI/Development/SST150B/build/mcuboot/zephyr/include/generated/devicetree_generated.h
    -- Including generated dts.cmake file: C:/Nordic/LPI/Development/SST150B/build/mcuboot/zephyr/dts.cmake

    warning: NRF_RTC_TIMER_USER_CHAN_COUNT (defined at soc/arm/nordic_nrf\nrf53\Kconfig.sync_rtc:23,
    drivers/timer/Kconfig.nrf_rtc:20) was assigned the value '0' but got the value ''. Check these
    unsatisfied dependencies: ((NRF53_SYNC_RTC && SOC_SERIES_NRF53X && SOC_FAMILY_NRF) || (NRF_RTC_TIMER
    && SYS_CLOCK_EXISTS)) (=n). See
    docs.zephyrproject.org/.../kconfig.html and/or look
    up NRF_RTC_TIMER_USER_CHAN_COUNT in the menuconfig/guiconfig interface. The Application Development
    Primer, Setting Configuration Values, and Kconfig - Tips and Best Practices sections of the manual
    might be helpful too.


    warning: LOG_DEFAULT_LEVEL (defined at subsys/logging\Kconfig.filtering:13) was assigned the value
    '0' but got the value ''. Check these unsatisfied dependencies: LOG (=n). See
    docs.zephyrproject.org/.../kconfig.html and/or look up
    LOG_DEFAULT_LEVEL in the menuconfig/guiconfig interface. The Application Development Primer, Setting
    Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
    too.


    warning: The choice symbol MCUBOOT_LOG_LEVEL_INF (defined at
    subsys/logging/Kconfig.template.log_config:17) was selected (set =y), but no symbol ended up as the
    choice selection. See docs.zephyrproject.org/.../kconfig.html
    and/or look up MCUBOOT_LOG_LEVEL_INF in the menuconfig/guiconfig interface. The Application
    Development Primer, Setting Configuration Values, and Kconfig - Tips and Best Practices sections of
    the manual might be helpful too.


    warning: The choice symbol LOG_MODE_MINIMAL (defined at subsys/logging\Kconfig.mode:28) was selected
    (set =y), but no symbol ended up as the choice selection. See
    docs.zephyrproject.org/.../kconfig.html and/or look up
    LOG_MODE_MINIMAL in the menuconfig/guiconfig interface. The Application Development Primer, Setting
    Configuration Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful
    too.

    Parsing C:/Nordic/v2.6.0/bootloader/mcuboot/boot/zephyr/Kconfig
    Loaded configuration 'C:/Nordic/v2.6.0/zephyr/boards/arm/nrf52dk_nrf52832/nrf52dk_nrf52832_defconfig'
    Merged configuration 'C:/Nordic/v2.6.0/bootloader/mcuboot/boot/zephyr/prj.conf'
    Merged configuration 'C:/Nordic/v2.6.0/nrf/subsys/partition_manager/partition_manager_enabled.conf'
    Merged configuration 'C:/Nordic/LPI/Development/SST150B/child_image/mcuboot.conf'
    Merged configuration 'C:/Nordic/LPI/Development/SST150B/build/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf'
    Configuration saved to 'C:/Nordic/LPI/Development/SST150B/build/mcuboot/zephyr/.config'
    Kconfig header saved to 'C:/Nordic/LPI/Development/SST150B/build/mcuboot/zephyr/include/generated/autoconf.h'
    -- Found GnuLd: c:/nordic/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:/Nordic/toolchains/cf2149caf2/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
    MCUBoot bootloader key file: C:/Nordic/LPI/PUBLIC_PRIVATE_KEYS/lpi_sst150b.pem
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Nordic/LPI/Development/SST150B/build/mcuboot
    === child image mcuboot - end ===

    -- Found partition manager static configuration: C:/Nordic/LPI/Development/SST150B/pm_static.yml
    Partition 'settings_storage' is not included in the dynamic resolving since it is statically defined.
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Nordic/LPI/Development/SST150B/build
    -- west build: building application
    [3/307] Generating include/generated/version.h
    -- Zephyr version: 3.5.99 (C:/Nordic/v2.6.0/zephyr), build: v3.5.99-ncs1
    [3/245] Generating include/generated/version.h
    -- Zephyr version: 3.5.99 (C:/Nordic/v2.6.0/zephyr), build: v3.5.99-ncs1
    [245/245] Linking C executable zephyr\zephyr.elf
    Memory region Used Size Region Size %age Used
    FLASH: 19806 B 31 KB 62.39%
    RAM: 23424 B 64 KB 35.74%
    IDT_LIST: 0 GB 32 KB 0.00%
    [73/307] Building C object CMakeFiles/app.dir/src/main.c.obj
    FAILED: CMakeFiles/app.dir/src/main.c.obj
    C:\Nordic\toolchains\cf2149caf2\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DNRF52832_XXAA -DUSE_PARTITION_MANAGER=1 -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/Nordic/v2.6.0/zephyr -IC:/Nordic/LPI/Development/SST150B/src -IC:/Nordic/LPI/Development/SST150B/src/includes -IC:/Nordic/LPI/Development/SST150B/src/ble -IC:/Nordic/LPI/Development/SST150B/src/freq_meas -IC:/Nordic/LPI/Development/SST150B/src/gpio -IC:/Nordic/LPI/Development/SST150B/src/led -IC:/Nordic/LPI/Development/SST150B/src/log -IC:/Nordic/LPI/Development/SST150B/src/nvs -I//src/rms -IC:/Nordic/LPI/Development/SST150B/src/surge_detect -IC:/Nordic/LPI/Development/SST150B/src/temp_meas -IC:/Nordic/LPI/Development/SST150B/src/timers -IC:/Nordic/LPI/Development/SST150B/src/utilities -IC:/Nordic/LPI/Release/Libraries -IC:/Nordic/LPI/Release/Libraries/includes -IC:/Nordic/v2.6.0/nrf/drivers/mpsl/clock_control -IC:/Nordic/v2.6.0/zephyr/include -IC:/Nordic/LPI/Development/SST150B/build/zephyr/include/generated -IC:/Nordic/v2.6.0/zephyr/soc/arm/nordic_nrf/nrf52 -IC:/Nordic/v2.6.0/zephyr/soc/common/nordic_nrf/. -IC:/Nordic/v2.6.0/zephyr/soc/arm/nordic_nrf/common/. -IC:/Nordic/v2.6.0/zephyr/subsys/mgmt/mcumgr/util/include -IC:/Nordic/v2.6.0/bootloader/mcuboot/boot/bootutil/include -IC:/Nordic/v2.6.0/zephyr/subsys/mgmt/mcumgr/transport/include -IC:/Nordic/v2.6.0/zephyr/subsys/bluetooth -IC:/Nordic/v2.6.0/zephyr/subsys/settings/include -IC:/Nordic/v2.6.0/nrf/include -IC:/Nordic/v2.6.0/nrf/lib/multithreading_lock/. -IC:/Nordic/v2.6.0/nrf/subsys/bluetooth/controller/. -IC:/Nordic/v2.6.0/zephyr/drivers/flash -IC:/Nordic/v2.6.0/nrf/tests/include -IC:/Nordic/v2.6.0/pcf85063a/include -IC:/Nordic/v2.6.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/Nordic/v2.6.0/zephyr/modules/cmsis/. -IC:/Nordic/v2.6.0/modules/hal/nordic/nrfx -IC:/Nordic/v2.6.0/modules/hal/nordic/nrfx/drivers/include -IC:/Nordic/v2.6.0/modules/hal/nordic/nrfx/mdk -IC:/Nordic/v2.6.0/zephyr/modules/hal_nordic/nrfx/. -IC:/Nordic/v2.6.0/modules/crypto/tinycrypt/lib/include -IC:/Nordic/v2.6.0/modules/lib/zcbor/include -IC:/Nordic/v2.6.0/nrfxlib/mpsl/fem/common/include -IC:/Nordic/v2.6.0/nrfxlib/mpsl/fem/nrf21540_gpio/include -IC:/Nordic/v2.6.0/nrfxlib/mpsl/fem/nrf21540_gpio_spi/include -IC:/Nordic/v2.6.0/nrfxlib/mpsl/fem/simple_gpio/include -IC:/Nordic/v2.6.0/nrfxlib/mpsl/fem/include -IC:/Nordic/v2.6.0/nrfxlib/mpsl/fem/include/protocol -IC:/Nordic/v2.6.0/nrfxlib/mpsl/include -IC:/Nordic/v2.6.0/nrfxlib/mpsl/include/protocol -IC:/Nordic/v2.6.0/nrfxlib/softdevice_controller/include -isystem C:/Nordic/v2.6.0/zephyr/lib/libc/minimal/include -isystem C:/Nordic/v2.6.0/zephyr/lib/libc/common/include -isystem c:/nordic/toolchains/cf2149caf2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/include -isystem c:/nordic/toolchains/cf2149caf2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/include-fixed -fno-strict-aliasing -Os -imacros C:/Nordic/LPI/Development/SST150B/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=C:/Nordic/toolchains/cf2149caf2/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/Nordic/v2.6.0/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=C:/Nordic/LPI/Development/SST150B=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/Nordic/v2.6.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/Nordic/v2.6.0=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/src/main.c.obj -MF CMakeFiles\app.dir\src\main.c.obj.d -o CMakeFiles/app.dir/src/main.c.obj -c C:/Nordic/LPI/Development/SST150B/src/main.c
    C:/Nordic/LPI/Development/SST150B/src/main.c:3:10: fatal error: cJSON.h: No such file or directory
    3 | #include <cJSON.h>
    | ^~~~~~~~~
    compilation terminated.

    [81/307] Building C object CMakeFiles/app.dir/src/rms/rms_calc.c.obj
    FAILED: CMakeFiles/app.dir/src/rms/rms_calc.c.obj
    C:\Nordic\toolchains\cf2149caf2\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DNRF52832_XXAA -DUSE_PARTITION_MANAGER=1 -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/Nordic/v2.6.0/zephyr -IC:/Nordic/LPI/Development/SST150B/src -IC:/Nordic/LPI/Development/SST150B/src/includes -IC:/Nordic/LPI/Development/SST150B/src/ble -IC:/Nordic/LPI/Development/SST150B/src/freq_meas -IC:/Nordic/LPI/Development/SST150B/src/gpio -IC:/Nordic/LPI/Development/SST150B/src/led -IC:/Nordic/LPI/Development/SST150B/src/log -IC:/Nordic/LPI/Development/SST150B/src/nvs -I//src/rms -IC:/Nordic/LPI/Development/SST150B/src/surge_detect -IC:/Nordic/LPI/Development/SST150B/src/temp_meas -IC:/Nordic/LPI/Development/SST150B/src/timers -IC:/Nordic/LPI/Development/SST150B/src/utilities -IC:/Nordic/LPI/Release/Libraries -IC:/Nordic/LPI/Release/Libraries/includes -IC:/Nordic/v2.6.0/nrf/drivers/mpsl/clock_control -IC:/Nordic/v2.6.0/zephyr/include -IC:/Nordic/LPI/Development/SST150B/build/zephyr/include/generated -IC:/Nordic/v2.6.0/zephyr/soc/arm/nordic_nrf/nrf52 -IC:/Nordic/v2.6.0/zephyr/soc/common/nordic_nrf/. -IC:/Nordic/v2.6.0/zephyr/soc/arm/nordic_nrf/common/. -IC:/Nordic/v2.6.0/zephyr/subsys/mgmt/mcumgr/util/include -IC:/Nordic/v2.6.0/bootloader/mcuboot/boot/bootutil/include -IC:/Nordic/v2.6.0/zephyr/subsys/mgmt/mcumgr/transport/include -IC:/Nordic/v2.6.0/zephyr/subsys/bluetooth -IC:/Nordic/v2.6.0/zephyr/subsys/settings/include -IC:/Nordic/v2.6.0/nrf/include -IC:/Nordic/v2.6.0/nrf/lib/multithreading_lock/. -IC:/Nordic/v2.6.0/nrf/subsys/bluetooth/controller/. -IC:/Nordic/v2.6.0/zephyr/drivers/flash -IC:/Nordic/v2.6.0/nrf/tests/include -IC:/Nordic/v2.6.0/pcf85063a/include -IC:/Nordic/v2.6.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/Nordic/v2.6.0/zephyr/modules/cmsis/. -IC:/Nordic/v2.6.0/modules/hal/nordic/nrfx -IC:/Nordic/v2.6.0/modules/hal/nordic/nrfx/drivers/include -IC:/Nordic/v2.6.0/modules/hal/nordic/nrfx/mdk -IC:/Nordic/v2.6.0/zephyr/modules/hal_nordic/nrfx/. -IC:/Nordic/v2.6.0/modules/crypto/tinycrypt/lib/include -IC:/Nordic/v2.6.0/modules/lib/zcbor/include -IC:/Nordic/v2.6.0/nrfxlib/mpsl/fem/common/include -IC:/Nordic/v2.6.0/nrfxlib/mpsl/fem/nrf21540_gpio/include -IC:/Nordic/v2.6.0/nrfxlib/mpsl/fem/nrf21540_gpio_spi/include -IC:/Nordic/v2.6.0/nrfxlib/mpsl/fem/simple_gpio/include -IC:/Nordic/v2.6.0/nrfxlib/mpsl/fem/include -IC:/Nordic/v2.6.0/nrfxlib/mpsl/fem/include/protocol -IC:/Nordic/v2.6.0/nrfxlib/mpsl/include -IC:/Nordic/v2.6.0/nrfxlib/mpsl/include/protocol -IC:/Nordic/v2.6.0/nrfxlib/softdevice_controller/include -isystem C:/Nordic/v2.6.0/zephyr/lib/libc/minimal/include -isystem C:/Nordic/v2.6.0/zephyr/lib/libc/common/include -isystem c:/nordic/toolchains/cf2149caf2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/include -isystem c:/nordic/toolchains/cf2149caf2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/include-fixed -fno-strict-aliasing -Os -imacros C:/Nordic/LPI/Development/SST150B/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=C:/Nordic/toolchains/cf2149caf2/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/Nordic/v2.6.0/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=C:/Nordic/LPI/Development/SST150B=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/Nordic/v2.6.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/Nordic/v2.6.0=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT CMakeFiles/app.dir/src/rms/rms_calc.c.obj -MF CMakeFiles\app.dir\src\rms\rms_calc.c.obj.d -o CMakeFiles/app.dir/src/rms/rms_calc.c.obj -c C:/Nordic/LPI/Development/SST150B/src/rms/rms_calc.c
    In file included from C:/Nordic/v2.6.0/zephyr/include/zephyr/toolchain/gcc.h:98,
    from C:/Nordic/v2.6.0/zephyr/include/zephyr/toolchain.h:50,
    from C:/Nordic/v2.6.0/zephyr/include/zephyr/kernel_includes.h:23,
    from C:/Nordic/v2.6.0/zephyr/include/zephyr/kernel.h:17,
    from C:/Nordic/LPI/Development/SST150B/src/rms/rms_calc.c:1:
    C:/Nordic/v2.6.0/zephyr/include/zephyr/device.h:89:41: error: '__device_dts_ord_102' undeclared here (not in a function); did you mean '__device_dts_ord_112'?
    89 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
    | ^~~~~~~~~
    C:/Nordic/v2.6.0/zephyr/include/zephyr/toolchain/common.h:137:26: note: in definition of macro '_DO_CONCAT'
    137 | #define _DO_CONCAT(x, y) x ## y
    | ^
    C:/Nordic/v2.6.0/zephyr/include/zephyr/device.h:89:33: note: in expansion of macro '_CONCAT'
    89 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
    | ^~~~~~~
    C:/Nordic/v2.6.0/zephyr/include/zephyr/device.h:216:37: note: in expansion of macro 'DEVICE_NAME_GET'
    216 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))
    | ^~~~~~~~~~~~~~~
    C:/Nordic/v2.6.0/zephyr/include/zephyr/device.h:233:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
    233 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
    | ^~~~~~~~~~~~~~~~~~
    C:/Nordic/LPI/Development/SST150B/src/rms/rms_calc.c:56:36: note: in expansion of macro 'DEVICE_DT_GET'
    56 | const struct device *counter_dev = DEVICE_DT_GET(DT_NODELABEL(timer0));
    | ^~~~~~~~~~~~~
    C:/Nordic/LPI/Development/SST150B/src/rms/rms_calc.c: In function 'rms_volts_measure_work_handler':
    C:/Nordic/LPI/Development/SST150B/src/rms/rms_calc.c:260:14: warning: unused variable 'power_quality' [-Wunused-variable]
    260 | uint16_t power_quality;
    | ^~~~~~~~~~~~~
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'C:\Nordic\toolchains\cf2149caf2\opt\bin\cmake.EXE' --build 'c:\Nordic\LPI\Development\SST150B\build'

    * The terminal process terminated with exit code: 1.
    * Terminal will be reused by tasks, press any key to close it.

  • Hi Mike,

    Have you tried to build with newlib-nano library?

    CONFIG_NEWLIB_LIBC=y
    CONFIG_NEWLIB_LIBC_NANO=y
    CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y


    You could try to add CONFIG_PICOLIBC=n to your project configuration.

    Additionally, you could try increasing heap memory pool size using CONFIG_HEAP_MEM_POOL_SIZE = 8192.

    Your build shows some devicetree errors. To find out more how to fix them, you can look at get struct device from devicetree node and troubleshooting devicetree.

    Best regards,
    Dejan

  • Hi Dejan,

    I've spent the last couple of days migrating another one of my projects to v2.6.0, in the hope that would be less painful.  Whilst it wasn't without a few challenges, I now have that working successfully under v2.6.0.

    Interestingly, the basic structure and function of that firmware isn't vastly different from this one that I am having issues with.  I did briefly try using the proj.conf and mcuboot.conf files from the project I have now got working in the project here that is giving me all the problems, but I was still seeing the same sort of errors.

    Which makes me think there is something else going on.

    That device tree issue wasn't present in a previous commit of this firmware I am working on, and its only appeared in recent changes - which I've not been diligent in tracking changes for, so I fear I'm going to have to go back to a commit from a week or so ago and start again.

    Anyway, now I now I can migrate something to v2.6.0, I'll go back to this and see if I can uncover what's going wrong.

    I'll keep you posted

    Regards,

    Mike

  • Hi Mike,

    Thank you for the status update.

    Best regards,
    Dejan

Related