This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Upgrade to Zephyr OS 2.1 breaks build

A project built using the nRF9160 and Zephyr OS v1.14.99 previously built and ran just fine, but since upgrading to the latest versions of the zephyr and nrf repos (using west update) the build doesn't work. It looks like there is an error somewhere in the code generation.

This project uses a custom board and I essentially copied the nrf9160_pca10090 board folder and renamed things to match the project name and renumbered the pins. I also made an overlay file for the spm library in the nrf repo. As I said, before updating my copies of the repos this project built and ran just fine.

Here is a snippet showing the type of error I'm seeing:

In file included from C://Repos/ncs/zephyr/include/toolchain.h:39:0,
                 from C://Repos/ncs/zephyr/include/kernel_includes.h:19,
                 from C://Repos/ncs/zephyr/include/kernel.h:17,
                 from C://Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:7:
C://Repos/ncs/zephyr/include/toolchain/gcc.h:62:28: error: static assertion failed: ""
 #define BUILD_ASSERT(EXPR) _Static_assert(EXPR, "")
                            ^
C://Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:19:34: note: in expansion of macro 'BUILD_ASSERT'
 #define CHECK_ADDRESS(dts, mdk)  BUILD_ASSERT((u32_t)(dts) == (u32_t)(mdk))
                                  ^~~~~~~~~~~~
C://Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:30:1: note: in expansion of macro 'CHECK_ADDRESS'
 CHECK_ADDRESS(DT_INST_0_NORDIC_NRF_CLOCK_BASE_ADDRESS, NRF_CLOCK);
 ^~~~~~~~~~~~~

Parents
  • Hi, could you provide the entire build message?

    Best regards,

    Heidi

  • Here's the output of running cmake:

    -- Using application from 'C:/Repos/myproj-nrf9160-fw'
    Zephyr version: 2.0.99
    -- Found PythonInterp: C:/Python37/python.exe (found suitable version "3.7.3", minimum required is "3.4")
    -- Selected BOARD myprojns
    -- Found west: C:/Python37/Scripts/west.exe (found suitable version "0.6.3", minimum required is "0.6.0")
    -- Cache files will be written to: C:\Users\me\AppData\Local/.cache/zephyr
    -- Loading C:/Repos/ncs/zephyr/boards/arm/myproj/myprojns.dts as base
    -- Overlaying C:/Repos/ncs/zephyr/dts/common/common.dts
    -- Overlaying C:/Repos/myproj-nrf9160-fw/myprojns.overlay
    Devicetree configuration written to C:/Repos/myproj-nrf9160-fw/build/zephyr/include/generated/generated_dts_board.conf
    
    warning: TEST_RANDOM_GENERATOR (defined at subsys/random/Kconfig:8) was assigned the value 'y' but
    got the value 'n'. You 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
    http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_TEST_RANDOM_GENERATOR.html (which is
    updated regularly from the master branch). See the 'Setting configuration values' section of the
    Board Porting Guide as well.
    Parsing Kconfig tree in C:/Repos/myproj-nrf9160-fw/Kconfig
    Loaded configuration 'C:/Repos/ncs/zephyr/boards/arm/myproj/myprojns_defconfig'
    Merged configuration 'C:/Repos/myproj-nrf9160-fw/prj.conf'
    Configuration saved to 'C:/Repos/myproj-nrf9160-fw/build/zephyr/.config'
    -- The C compiler identification is GNU 7.3.1
    -- The CXX compiler identification is GNU 7.3.1
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/gnuarmemb/bin/arm-none-eabi-gcc.exe
    -- Using application from 'C:/Repos/ncs/nrf/samples/nrf9160/spm'
    Zephyr version: 2.0.99
    USING OUT OF TREE BOARD
    -- Loading C:/Repos/ncs/zephyr/boards/arm/myproj/myprojns.dts as base
    -- Overlaying C:/Repos/ncs/zephyr/dts/common/common.dts
    Devicetree configuration written to C:/Repos/myproj-nrf9160-fw/build/spm/zephyr/include/generated/generated_dts_board.conf
    
    warning: TRUSTED_EXECUTION_NONSECURE (defined at arch/Kconfig:154) was assigned the value 'y' but
    got the value 'n'. You 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
    http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_TRUSTED_EXECUTION_NONSECURE.html
    (which is updated regularly from the master branch). See the 'Setting configuration values' section
    of the Board Porting Guide as well.
    Parsing Kconfig tree in C:/Repos/ncs/zephyr/Kconfig
    Loaded configuration 'C:/Repos/ncs/zephyr/boards/arm/myproj/myprojns_defconfig'
    Merged configuration 'C:/Repos/ncs/nrf/samples/nrf9160/spm/prj.conf'
    Configuration saved to 'C:/Repos/myproj-nrf9160-fw/build/spm/zephyr/.config'
    Running Partition Manager...
    -- Configuring done
    -- Generating done
    -- Build files have been written to: C:/Repos/myproj-nrf9160-fw/build

    And here's the output of running the build with ninja:

    [76/316] Building C object spm/zephyr/CMakeFiles/spm_zephyr.dir/soc/arm/nordic_nrf/validate_base_addresses.c.obj
    FAILED: spm/zephyr/CMakeFiles/spm_zephyr.dir/soc/arm/nordic_nrf/validate_base_addresses.c.obj
    C:\gnuarmemb\bin\arm-none-eabi-gcc.exe -DABI_INFO_MAGIC=0x281ee6de,0xb845acea,23297 -DBUILD_VERSION=v2.0.99-ncs1 -DFIRMWARE_INFO_MAGIC=0x281ee6de,0x8fcebb4c,23297 -DKERNEL -DMBEDTLS_CONFIG_FILE=\"nrf-config.h\" -DNRF9160_XXAA -DUSE_PARTITION_MANAGER=1 -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/Repos/ncs/zephyr/kernel/include -IC:/Repos/ncs/zephyr/arch/arm/include -IC:/Repos/ncs/zephyr/include -IC:/Repos/ncs/zephyr/include/drivers -Ispm/zephyr/include/generated -IC:/Repos/ncs/zephyr/soc/arm/nordic_nrf/nrf91 -IC:/Repos/ncs/zephyr/ext/hal/cmsis/Include -IC:/Repos/ncs/nrf/include -IC:/Repos/ncs/nrfxlib/crypto/nrf_cc310_mbedcrypto/include/mbedtls -IC:/Repos/ncs/nrfxlib/crypto/nrf_cc310_mbedcrypto/include -Ispm/zephyr/modules/nrfxlib/nrf_security/include -Ispm/zephyr/modules/nrfxlib/nrf_security/include/mbedtls_generated -IC:/Repos/ncs/mbedtls/include -IC:/Repos/ncs/mbedtls/include/mbedtls -IC:/Repos/ncs/modules/hal/nordic/nrfx -IC:/Repos/ncs/modules/hal/nordic/nrfx/drivers/include -IC:/Repos/ncs/modules/hal/nordic/nrfx/mdk -IC:/Repos/ncs/modules/hal/nordic/. -isystem C:/Repos/ncs/zephyr/lib/libc/minimal/include -isystem c:/gnuarmemb/bin/../lib/gcc/arm-none-eabi/7.3.1/include -isystem c:/gnuarmemb/bin/../lib/gcc/arm-none-eabi/7.3.1/include-fixed -isystem C:/Repos/ncs/nrfxlib/crypto/nrf_cc310_platform/include -Os -imacrosC:/Repos/myproj-nrf9160-fw/build/spm/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -mthumb -mcpu=cortex-m33 -mfpu=fpv5-sp-d16 -mfloat-abi=hard -imacrosC:/Repos/ncs/zephyr/include/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -fno-reorder-functions -fno-defer-pop -ffunction-sections -fdata-sections -mabi=aapcs -march=armv8-m.main+dsp -mcmse -std=c99 -nostdinc -MD -MT spm/zephyr/CMakeFiles/spm_zephyr.dir/soc/arm/nordic_nrf/validate_base_addresses.c.obj -MF spm\zephyr\CMakeFiles\spm_zephyr.dir\soc\arm\nordic_nrf\validate_base_addresses.c.obj.d -o spm/zephyr/CMakeFiles/spm_zephyr.dir/soc/arm/nordic_nrf/validate_base_addresses.c.obj   -c C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c
    In file included from C:/Repos/ncs/zephyr/include/toolchain.h:39:0,
                     from C:/Repos/ncs/zephyr/include/kernel_includes.h:19,
                     from C:/Repos/ncs/zephyr/include/kernel.h:17,
                     from C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:7:
    C:/Repos/ncs/zephyr/include/toolchain/gcc.h:62:28: error: static assertion failed: ""
     #define BUILD_ASSERT(EXPR) _Static_assert(EXPR, "")
                                ^
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:19:34: note: in expansion of macro 'BUILD_ASSERT'
     #define CHECK_ADDRESS(dts, mdk)  BUILD_ASSERT((u32_t)(dts) == (u32_t)(mdk))
                                      ^~~~~~~~~~~~
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:30:1: note: in expansion of macro 'CHECK_ADDRESS'
     CHECK_ADDRESS(DT_INST_0_NORDIC_NRF_CLOCK_BASE_ADDRESS, NRF_CLOCK);
     ^~~~~~~~~~~~~
    C:/Repos/ncs/zephyr/include/toolchain/gcc.h:62:28: error: static assertion failed: ""
     #define BUILD_ASSERT(EXPR) _Static_assert(EXPR, "")
                                ^
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:19:34: note: in expansion of macro 'BUILD_ASSERT'
     #define CHECK_ADDRESS(dts, mdk)  BUILD_ASSERT((u32_t)(dts) == (u32_t)(mdk))
                                      ^~~~~~~~~~~~
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:34:1: note: in expansion of macro 'CHECK_ADDRESS'
     CHECK_ADDRESS(DT_INST_0_NORDIC_NRF_DPPIC_BASE_ADDRESS, NRF_DPPIC);
     ^~~~~~~~~~~~~
    C:/Repos/ncs/zephyr/include/toolchain/gcc.h:62:28: error: static assertion failed: ""
     #define BUILD_ASSERT(EXPR) _Static_assert(EXPR, "")
                                ^
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:19:34: note: in expansion of macro 'BUILD_ASSERT'
     #define CHECK_ADDRESS(dts, mdk)  BUILD_ASSERT((u32_t)(dts) == (u32_t)(mdk))
                                      ^~~~~~~~~~~~
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:38:1: note: in expansion of macro 'CHECK_ADDRESS'
     CHECK_ADDRESS(DT_NORDIC_NRF_EGU_EGU_0_BASE_ADDRESS, NRF_EGU0);
     ^~~~~~~~~~~~~
    C:/Repos/ncs/zephyr/include/toolchain/gcc.h:62:28: error: static assertion failed: ""
     #define BUILD_ASSERT(EXPR) _Static_assert(EXPR, "")
                                ^
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:19:34: note: in expansion of macro 'BUILD_ASSERT'
     #define CHECK_ADDRESS(dts, mdk)  BUILD_ASSERT((u32_t)(dts) == (u32_t)(mdk))
                                      ^~~~~~~~~~~~
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:41:1: note: in expansion of macro 'CHECK_ADDRESS'
     CHECK_ADDRESS(DT_NORDIC_NRF_EGU_EGU_1_BASE_ADDRESS, NRF_EGU1);
     ^~~~~~~~~~~~~
    C:/Repos/ncs/zephyr/include/toolchain/gcc.h:62:28: error: static assertion failed: ""
     #define BUILD_ASSERT(EXPR) _Static_assert(EXPR, "")
                                ^
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:19:34: note: in expansion of macro 'BUILD_ASSERT'
     #define CHECK_ADDRESS(dts, mdk)  BUILD_ASSERT((u32_t)(dts) == (u32_t)(mdk))
                                      ^~~~~~~~~~~~
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:44:1: note: in expansion of macro 'CHECK_ADDRESS'
     CHECK_ADDRESS(DT_NORDIC_NRF_EGU_EGU_2_BASE_ADDRESS, NRF_EGU2);
     ^~~~~~~~~~~~~
    C:/Repos/ncs/zephyr/include/toolchain/gcc.h:62:28: error: static assertion failed: ""
     #define BUILD_ASSERT(EXPR) _Static_assert(EXPR, "")
                                ^
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:19:34: note: in expansion of macro 'BUILD_ASSERT'
     #define CHECK_ADDRESS(dts, mdk)  BUILD_ASSERT((u32_t)(dts) == (u32_t)(mdk))
                                      ^~~~~~~~~~~~
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:47:1: note: in expansion of macro 'CHECK_ADDRESS'
     CHECK_ADDRESS(DT_NORDIC_NRF_EGU_EGU_3_BASE_ADDRESS, NRF_EGU3);
     ^~~~~~~~~~~~~
    C:/Repos/ncs/zephyr/include/toolchain/gcc.h:62:28: error: static assertion failed: ""
     #define BUILD_ASSERT(EXPR) _Static_assert(EXPR, "")
                                ^
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:19:34: note: in expansion of macro 'BUILD_ASSERT'
     #define CHECK_ADDRESS(dts, mdk)  BUILD_ASSERT((u32_t)(dts) == (u32_t)(mdk))
                                      ^~~~~~~~~~~~
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:50:1: note: in expansion of macro 'CHECK_ADDRESS'
     CHECK_ADDRESS(DT_NORDIC_NRF_EGU_EGU_4_BASE_ADDRESS, NRF_EGU4);
     ^~~~~~~~~~~~~
    C:/Repos/ncs/zephyr/include/toolchain/gcc.h:62:28: error: static assertion failed: ""
     #define BUILD_ASSERT(EXPR) _Static_assert(EXPR, "")
                                ^
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:19:34: note: in expansion of macro 'BUILD_ASSERT'
     #define CHECK_ADDRESS(dts, mdk)  BUILD_ASSERT((u32_t)(dts) == (u32_t)(mdk))
                                      ^~~~~~~~~~~~
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:53:1: note: in expansion of macro 'CHECK_ADDRESS'
     CHECK_ADDRESS(DT_NORDIC_NRF_EGU_EGU_5_BASE_ADDRESS, NRF_EGU5);
     ^~~~~~~~~~~~~
    C:/Repos/ncs/zephyr/include/toolchain/gcc.h:62:28: error: static assertion failed: ""
     #define BUILD_ASSERT(EXPR) _Static_assert(EXPR, "")
                                ^
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:19:34: note: in expansion of macro 'BUILD_ASSERT'
     #define CHECK_ADDRESS(dts, mdk)  BUILD_ASSERT((u32_t)(dts) == (u32_t)(mdk))
                                      ^~~~~~~~~~~~
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:61:1: note: in expansion of macro 'CHECK_ADDRESS'
     CHECK_ADDRESS(DT_NORDIC_NRF_GPIO_GPIO_0_BASE_ADDRESS, NRF_P0);
     ^~~~~~~~~~~~~
    C:/Repos/ncs/zephyr/include/toolchain/gcc.h:62:28: error: static assertion failed: ""
     #define BUILD_ASSERT(EXPR) _Static_assert(EXPR, "")
                                ^
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:19:34: note: in expansion of macro 'BUILD_ASSERT'
     #define CHECK_ADDRESS(dts, mdk)  BUILD_ASSERT((u32_t)(dts) == (u32_t)(mdk))
                                      ^~~~~~~~~~~~
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:68:1: note: in expansion of macro 'CHECK_ADDRESS'
     CHECK_ADDRESS(DT_NORDIC_NRF_GPIOTE_GPIOTE_0_BASE_ADDRESS, NRF_GPIOTE);
     ^~~~~~~~~~~~~
    C:/Repos/ncs/zephyr/include/toolchain/gcc.h:62:28: error: static assertion failed: ""
     #define BUILD_ASSERT(EXPR) _Static_assert(EXPR, "")
                                ^
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:19:34: note: in expansion of macro 'BUILD_ASSERT'
     #define CHECK_ADDRESS(dts, mdk)  BUILD_ASSERT((u32_t)(dts) == (u32_t)(mdk))
                                      ^~~~~~~~~~~~
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:76:1: note: in expansion of macro 'CHECK_ADDRESS'
     CHECK_ADDRESS(DT_INST_0_NORDIC_NRF_KMU_BASE_ADDRESS, NRF_KMU);
     ^~~~~~~~~~~~~
    C:/Repos/ncs/zephyr/include/toolchain/gcc.h:62:28: error: static assertion failed: ""
     #define BUILD_ASSERT(EXPR) _Static_assert(EXPR, "")
                                ^
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:19:34: note: in expansion of macro 'BUILD_ASSERT'
     #define CHECK_ADDRESS(dts, mdk)  BUILD_ASSERT((u32_t)(dts) == (u32_t)(mdk))
                                      ^~~~~~~~~~~~
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:86:1: note: in expansion of macro 'CHECK_ADDRESS'
     CHECK_ADDRESS(DT_INST_0_NORDIC_NRF91_FLASH_CONTROLLER_BASE_ADDRESS, NRF_NVMC);
     ^~~~~~~~~~~~~
    C:/Repos/ncs/zephyr/include/toolchain/gcc.h:62:28: error: static assertion failed: ""
     #define BUILD_ASSERT(EXPR) _Static_assert(EXPR, "")
                                ^
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:19:34: note: in expansion of macro 'BUILD_ASSERT'
     #define CHECK_ADDRESS(dts, mdk)  BUILD_ASSERT((u32_t)(dts) == (u32_t)(mdk))
                                      ^~~~~~~~~~~~
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:94:1: note: in expansion of macro 'CHECK_ADDRESS'
     CHECK_ADDRESS(DT_INST_0_NORDIC_NRF_POWER_BASE_ADDRESS, NRF_POWER);
     ^~~~~~~~~~~~~
    C:/Repos/ncs/zephyr/include/toolchain/gcc.h:62:28: error: static assertion failed: ""
     #define BUILD_ASSERT(EXPR) _Static_assert(EXPR, "")
                                ^
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:19:34: note: in expansion of macro 'BUILD_ASSERT'
     #define CHECK_ADDRESS(dts, mdk)  BUILD_ASSERT((u32_t)(dts) == (u32_t)(mdk))
                                      ^~~~~~~~~~~~
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:98:1: note: in expansion of macro 'CHECK_ADDRESS'
     CHECK_ADDRESS(DT_NORDIC_NRF_PWM_PWM_0_BASE_ADDRESS, NRF_PWM0);
     ^~~~~~~~~~~~~
    C:/Repos/ncs/zephyr/include/toolchain/gcc.h:62:28: error: static assertion failed: ""
     #define BUILD_ASSERT(EXPR) _Static_assert(EXPR, "")
                                ^
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:19:34: note: in expansion of macro 'BUILD_ASSERT'
     #define CHECK_ADDRESS(dts, mdk)  BUILD_ASSERT((u32_t)(dts) == (u32_t)(mdk))
                                      ^~~~~~~~~~~~
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:115:1: note: in expansion of macro 'CHECK_ADDRESS'
     CHECK_ADDRESS(DT_INST_0_NORDIC_NRF_REGULATORS_BASE_ADDRESS, NRF_REGULATORS);
     ^~~~~~~~~~~~~
    C:/Repos/ncs/zephyr/include/toolchain/gcc.h:62:28: error: static assertion failed: ""
     #define BUILD_ASSERT(EXPR) _Static_assert(EXPR, "")
                                ^
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:19:34: note: in expansion of macro 'BUILD_ASSERT'
     #define CHECK_ADDRESS(dts, mdk)  BUILD_ASSERT((u32_t)(dts) == (u32_t)(mdk))
                                      ^~~~~~~~~~~~
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:119:1: note: in expansion of macro 'CHECK_ADDRESS'
     CHECK_ADDRESS(DT_NORDIC_NRF_RTC_RTC_0_BASE_ADDRESS, NRF_RTC0);
     ^~~~~~~~~~~~~
    C:/Repos/ncs/zephyr/include/toolchain/gcc.h:62:28: error: static assertion failed: ""
     #define BUILD_ASSERT(EXPR) _Static_assert(EXPR, "")
                                ^
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:19:34: note: in expansion of macro 'BUILD_ASSERT'
     #define CHECK_ADDRESS(dts, mdk)  BUILD_ASSERT((u32_t)(dts) == (u32_t)(mdk))
                                      ^~~~~~~~~~~~
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:122:1: note: in expansion of macro 'CHECK_ADDRESS'
     CHECK_ADDRESS(DT_NORDIC_NRF_RTC_RTC_1_BASE_ADDRESS, NRF_RTC1);
     ^~~~~~~~~~~~~
    C:/Repos/ncs/zephyr/include/toolchain/gcc.h:62:28: error: static assertion failed: ""
     #define BUILD_ASSERT(EXPR) _Static_assert(EXPR, "")
                                ^
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:19:34: note: in expansion of macro 'BUILD_ASSERT'
     #define CHECK_ADDRESS(dts, mdk)  BUILD_ASSERT((u32_t)(dts) == (u32_t)(mdk))
                                      ^~~~~~~~~~~~
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:129:1: note: in expansion of macro 'CHECK_ADDRESS'
     CHECK_ADDRESS(DT_NORDIC_NRF_SAADC_ADC_0_BASE_ADDRESS, NRF_SAADC);
     ^~~~~~~~~~~~~
    C:/Repos/ncs/zephyr/include/toolchain/gcc.h:62:28: error: static assertion failed: ""
     #define BUILD_ASSERT(EXPR) _Static_assert(EXPR, "")
                                ^
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:19:34: note: in expansion of macro 'BUILD_ASSERT'
     #define CHECK_ADDRESS(dts, mdk)  BUILD_ASSERT((u32_t)(dts) == (u32_t)(mdk))
                                      ^~~~~~~~~~~~
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:177:1: note: in expansion of macro 'CHECK_ADDRESS'
     CHECK_ADDRESS(DT_NORDIC_NRF_TIMER_TIMER_0_BASE_ADDRESS, NRF_TIMER0);
     ^~~~~~~~~~~~~
    C:/Repos/ncs/zephyr/include/toolchain/gcc.h:62:28: error: static assertion failed: ""
     #define BUILD_ASSERT(EXPR) _Static_assert(EXPR, "")
                                ^
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:19:34: note: in expansion of macro 'BUILD_ASSERT'
     #define CHECK_ADDRESS(dts, mdk)  BUILD_ASSERT((u32_t)(dts) == (u32_t)(mdk))
                                      ^~~~~~~~~~~~
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:180:1: note: in expansion of macro 'CHECK_ADDRESS'
     CHECK_ADDRESS(DT_NORDIC_NRF_TIMER_TIMER_1_BASE_ADDRESS, NRF_TIMER1);
     ^~~~~~~~~~~~~
    C:/Repos/ncs/zephyr/include/toolchain/gcc.h:62:28: error: static assertion failed: ""
     #define BUILD_ASSERT(EXPR) _Static_assert(EXPR, "")
                                ^
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:19:34: note: in expansion of macro 'BUILD_ASSERT'
     #define CHECK_ADDRESS(dts, mdk)  BUILD_ASSERT((u32_t)(dts) == (u32_t)(mdk))
                                      ^~~~~~~~~~~~
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:183:1: note: in expansion of macro 'CHECK_ADDRESS'
     CHECK_ADDRESS(DT_NORDIC_NRF_TIMER_TIMER_2_BASE_ADDRESS, NRF_TIMER2);
     ^~~~~~~~~~~~~
    C:/Repos/ncs/zephyr/include/toolchain/gcc.h:62:28: error: static assertion failed: ""
     #define BUILD_ASSERT(EXPR) _Static_assert(EXPR, "")
                                ^
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:19:34: note: in expansion of macro 'BUILD_ASSERT'
     #define CHECK_ADDRESS(dts, mdk)  BUILD_ASSERT((u32_t)(dts) == (u32_t)(mdk))
                                      ^~~~~~~~~~~~
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:206:1: note: in expansion of macro 'CHECK_ADDRESS'
     CHECK_ADDRESS(DT_NORDIC_NRF_TWIM_I2C_2_BASE_ADDRESS, NRF_TWIM2);
     ^~~~~~~~~~~~~
    C:/Repos/ncs/zephyr/include/toolchain/gcc.h:62:28: error: static assertion failed: ""
     #define BUILD_ASSERT(EXPR) _Static_assert(EXPR, "")
                                ^
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:19:34: note: in expansion of macro 'BUILD_ASSERT'
     #define CHECK_ADDRESS(dts, mdk)  BUILD_ASSERT((u32_t)(dts) == (u32_t)(mdk))
                                      ^~~~~~~~~~~~
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:230:1: note: in expansion of macro 'CHECK_ADDRESS'
     CHECK_ADDRESS(DT_NORDIC_NRF_UARTE_UART_0_BASE_ADDRESS, NRF_UARTE0);
     ^~~~~~~~~~~~~
    C:/Repos/ncs/zephyr/include/toolchain/gcc.h:62:28: error: static assertion failed: ""
     #define BUILD_ASSERT(EXPR) _Static_assert(EXPR, "")
                                ^
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:19:34: note: in expansion of macro 'BUILD_ASSERT'
     #define CHECK_ADDRESS(dts, mdk)  BUILD_ASSERT((u32_t)(dts) == (u32_t)(mdk))
                                      ^~~~~~~~~~~~
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:233:1: note: in expansion of macro 'CHECK_ADDRESS'
     CHECK_ADDRESS(DT_NORDIC_NRF_UARTE_UART_1_BASE_ADDRESS, NRF_UARTE1);
     ^~~~~~~~~~~~~
    C:/Repos/ncs/zephyr/include/toolchain/gcc.h:62:28: error: static assertion failed: ""
     #define BUILD_ASSERT(EXPR) _Static_assert(EXPR, "")
                                ^
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:19:34: note: in expansion of macro 'BUILD_ASSERT'
     #define CHECK_ADDRESS(dts, mdk)  BUILD_ASSERT((u32_t)(dts) == (u32_t)(mdk))
                                      ^~~~~~~~~~~~
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:251:1: note: in expansion of macro 'CHECK_ADDRESS'
     CHECK_ADDRESS(DT_INST_0_NORDIC_NRF_VMC_BASE_ADDRESS, NRF_VMC);
     ^~~~~~~~~~~~~
    C:/Repos/ncs/zephyr/include/toolchain/gcc.h:62:28: error: static assertion failed: ""
     #define BUILD_ASSERT(EXPR) _Static_assert(EXPR, "")
                                ^
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:19:34: note: in expansion of macro 'BUILD_ASSERT'
     #define CHECK_ADDRESS(dts, mdk)  BUILD_ASSERT((u32_t)(dts) == (u32_t)(mdk))
                                      ^~~~~~~~~~~~
    C:/Repos/ncs/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c:255:1: note: in expansion of macro 'CHECK_ADDRESS'
     CHECK_ADDRESS(DT_NORDIC_NRF_WATCHDOG_WDT_0_BASE_ADDRESS, NRF_WDT);
     ^~~~~~~~~~~~~
    [89/316] Building C object spm/zephyr/CMakeFiles/spm_zephyr.dir/C_/Repos/ncs/nrf/subsys/spm/secure_services.c.obj
    ninja: build stopped: subcommand failed.

  • The error is occurring in validate_base_addresses.c, which is in the nordic_nrf soc directory. Also you can see it's failing while building the spm, which is an example from Nordic. So I don't think the issue is in my code. And as I said previously this was working before I updates my repositories to the latest. According to git the validate_base_addresses.c file wasn't added until September, which means it didn't  even exist in the version of the zephyr repo I had been using.

    So I don't think the issue is in my code. And as I said previously this was working before I updated my repositories to the latest.

Reply
  • The error is occurring in validate_base_addresses.c, which is in the nordic_nrf soc directory. Also you can see it's failing while building the spm, which is an example from Nordic. So I don't think the issue is in my code. And as I said previously this was working before I updates my repositories to the latest. According to git the validate_base_addresses.c file wasn't added until September, which means it didn't  even exist in the version of the zephyr repo I had been using.

    So I don't think the issue is in my code. And as I said previously this was working before I updated my repositories to the latest.

Children
Related