Dear support members,
I would like to know how to create a custom board definition for nRF9160.
The development environment I am trying is below.
NCS v2.5.0
MFW v1.3.5
sample project: Hello world
I tried making a "non-secure" board for nRF9160 using the URL below as a reference.
webinars.nordicsemi.com/adding-custom-board-support-in-nrf-4
But I got an error like the one attached.
Executing task: nRF Connect: Generate config customboard_nrf9160_ns for c:\work\MyApp\hello_world Building hello_world C:\WINDOWS\system32\cm d.exe /d /s /c "west build --build-dir c:/work/MyApp/hello_world/build c:/work/MyApp/hello_world --pristine --board customboard_nrf9160_ns --no-sysbuild -- -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DBOARD_ROOT:STRING="c:/work/my_board"" -- west build: generating a build system Loading Zephyr default modules (Zephyr base). -- Application: C:/work/MyApp/hello_world -- CMake version: 3.20.5 -- Found Python3: C:/ncs/toolchains/c57af46cb7/opt/bin/python.exe (found suitable version "3.8.2", minimum required is "3.8") found components: Interpreter -- Cache files will be written to: C:/ncs/v2.5.0/zephyr/.cache -- Zephyr version: 3.4.99 (C:/ncs/v2.5.0/zephyr) -- Found west (found suitable version "1.1.0", minimum required is "0.14.0") -- Board: customboard_nrf9160_ns -- Found host-tools: zephyr 0.16.1 (C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk) -- Found toolchain: zephyr 0.16.1 (C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk) -- Found Dtc: C:/ncs/toolchains/c57af46cb7/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") -- Found BOARD.dts: C:/work/my_board/boards/arm/customboard_nrf9160_ns/customboard_nrf9160_ns.dts -- Generated zephyr.dts: C:/work/MyApp/hello_world/build/zephyr/zephyr.dts -- Generated devicetree_generated.h: C:/work/MyApp/hello_world/build/zephyr/include/generated/devicetree_generated.h -- Including generated dts.cmake file: C:/work/MyApp/hello_world/build/zephyr/dts.cmake Parsing C:/ncs/v2.5.0/zephyr/Kconfig Loaded configuration 'C:/work/my_board/boards/arm/customboard_nrf9160_ns/customboard_nrf9160_ns_defconfig' Merged configuration 'C:/work/MyApp/hello_world/prj.conf' Configuration saved to 'C:/work/MyApp/hello_world/build/zephyr/.config' Kconfig header saved to 'C:/work/MyApp/hello_world/build/zephyr/include/generated/autoconf.h' -- Found GnuLd: c:/ncs/toolchains/c57af46cb7/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/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe -- Configuring done -- Generating done -- Build files have been written to: C:/work/MyApp/hello_world/build -- west build: building application [1/126] Generating ../../zephyr/include/generated/ncs_version.h [2/126] Generating include/generated/version.h -- Zephyr version: 3.4.99 (C:/ncs/v2.5.0/zephyr), build: v3.4.99-ncs1 [3/126] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json [4/126] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h [5/126] Generating include/generated/driver-validation.h [6/126] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h [7/126] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj [8/126] Generating include/generated/offsets.h [9/126] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/vector_table.S.obj [10/126] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/irq_init.c.obj [11/126] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/reset.S.obj [12/126] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fpu.c.obj [13/126] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/scb.c.obj [14/126] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/thread_abort.c.obj [15/126] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_core_mpu.c.obj [16/126] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/cmse/CMakeFiles/arch__arm__core__aarch32__cortex_m__cmse.dir/arm_core_cmse.c.obj [17/126] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/__aeabi_read_tp.S.obj [18/126] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_mpu.c.obj [19/126] Building C object zephyr/lib/libc/common/CMakeFiles/lib__libc__common.dir/source/stdlib/malloc.c.obj [20/126] Building C object zephyr/lib/libc/common/CMakeFiles/lib__libc__common.dir/source/stdlib/abort.c.obj [21/126] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/sys_clock_init.c.obj [22/126] Building C object zephyr/soc/soc/arm/common/cortex_m/CMakeFiles/soc__arm__common__cortex_m.dir/arm_mpu_regions.c.obj [23/126] Building C object zephyr/lib/libc/picolibc/CMakeFiles/lib__libc__picolibc.dir/libc-hooks.c.obj [24/126] Building C object modules/nrf/lib/fatal_error/CMakeFiles/..__nrf__lib__fatal_error.dir/fatal_error.c.obj [25/126] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/nrf_rtc_timer.c.obj [26/126] Building C object zephyr/drivers/clock_control/CMakeFiles/drivers__clock_control.dir/clock_control_nrf.c.obj [27/126] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v2.5.0/modules/hal/nordic/nrfx/mdk/system_nrf91.c.obj [28/126] Linking C static library zephyr\arch\arch\arm\core\aarch32\mpu\libarch__arm__core__aarch32__mpu.a [29/126] Linking C static library zephyr\arch\arch\arm\core\aarch32\cortex_m\cmse\libarch__arm__core__aarch32__cortex_m__cmse.a [30/126] Building C object modules/nrf/drivers/hw_cc310/CMakeFiles/..__nrf__drivers__hw_cc310.dir/hw_cc310.c.obj [31/126] Linking C static library zephyr\soc\soc\arm\common\cortex_m\libsoc__arm__common__cortex_m.a [32/126] Linking C static library zephyr\lib\libc\common\liblib__libc__common.a [33/126] Linking C static library modules\nrf\lib\fatal_error\lib..__nrf__lib__fatal_error.a [34/126] Linking C static library zephyr\lib\libc\picolibc\liblib__libc__picolibc.a [35/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/device.c.obj [36/126] Linking C static library zephyr\drivers\timer\libdrivers__timer.a [37/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/errno.c.obj [38/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/busy_wait.c.obj [39/126] Linking C static library zephyr\drivers\clock_control\libdrivers__clock_control.a [40/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/banner.c.obj [41/126] Linking C static library modules\nrf\drivers\hw_cc310\lib..__nrf__drivers__hw_cc310.a [42/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/fatal.c.obj [43/126] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/nrfx_glue.c.obj [44/126] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v2.5.0/modules/hal/nordic/nrfx/helpers/nrfx_flag32_allocator.c.obj [45/126] Building C object zephyr/kernel/CMakeFiles/kernel.dir/main_weak.c.obj [46/126] Building C object CMakeFiles/app.dir/src/main.c.obj [47/126] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v2.5.0/modules/hal/nordic/nrfx/drivers/src/nrfx_clock.c.obj [48/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj [49/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj [50/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj [51/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj [52/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj [53/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj [54/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj [55/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj [56/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj [57/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj [58/126] Linking C static library app\libapp.a [59/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj [60/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj [61/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/multi_heap.c.obj [62/126] Linking C static library modules\hal_nordic\nrfx\libmodules__hal_nordic__nrfx.a [63/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj [64/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj [65/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/reboot.c.obj [66/126] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_base_addresses.c.obj FAILED: zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_base_addresses.c.obj C:\ncs\toolchains\c57af46cb7\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DNRF9160_XXAA -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DPICOLIBC_INTEGER_PRINTF_SCANF -D_FORTIFY_SOURCE=1 -D_POSIX_C_SOURCE=200809 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/ncs/v2.5.0/zephyr/kernel/include -IC:/ncs/v2.5.0/zephyr/arch/arm/include -IC:/ncs/v2.5.0/zephyr/include -Izephyr/include/generated -IC:/ncs/v2.5.0/zephyr/soc/arm/nordic_nrf/nrf91 -IC:/ncs/v2.5.0/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.5.0/nrf/include -IC:/ncs/v2.5.0/nrf/tests/include -IC:/ncs/v2.5.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.5.0/zephyr/modules/cmsis/. -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.5.0/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.5.0/zephyr/modules/hal_nordic/nrfx/. -isystem C:/ncs/v2.5.0/nrfxlib/crypto/nrf_cc310_platform/include -fno-strict-aliasing -Os -imacros C:/work/MyApp/hello_world/build/zephyr/include/generated/autoconf.h -fno-printf-return-value -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=C:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.5.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 -ftls-model=local-exec -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=C:/work/MyApp/hello_world=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.5.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.5.0=WEST_TOPDIR -ffunction-sections -fdata-sections --specs=picolibc.specs -std=c99 -MD -MT zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_base_addresses.c.obj -MF zephyr\CMakeFiles\zephyr.dir\soc\arm\nordic_nrf\validate_base_addresses.c.obj.d -o zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_base_addresses.c.obj -c C:/ncs/v2.5.0/zephyr/soc/arm/nordic_nrf/validate_base_addresses.c In file included from C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain.h:50, from C:\ncs\v2.5.0\zephyr\include\zephyr\kernel_includes.h:19, from C:\ncs\v2.5.0\zephyr\include\zephyr\kernel.h:17, from C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:7: C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:123:1: note: in expansion of macro 'CHECK_DT_REG' 123 | CHECK_DT_REG(adc, NODE_ADDRESS(adc, nordic_nrf_adc, NRF_ADC, NRF_SAADC)); | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:126:1: note: in expansion of macro 'CHECK_DT_REG' 126 | CHECK_DT_REG(clock, NRF_CLOCK); | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:131:1: note: in expansion of macro 'CHECK_DT_REG' 131 | CHECK_DT_REG(dppic, NRF_DPPIC); | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:133:1: note: in expansion of macro 'CHECK_DT_REG' 133 | CHECK_DT_REG(egu0, NRF_EGU0); | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:134:1: note: in expansion of macro 'CHECK_DT_REG' 134 | CHECK_DT_REG(egu1, NRF_EGU1); | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:135:1: note: in expansion of macro 'CHECK_DT_REG' 135 | CHECK_DT_REG(egu2, NRF_EGU2); | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:136:1: note: in expansion of macro 'CHECK_DT_REG' 136 | CHECK_DT_REG(egu3, NRF_EGU3); | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:137:1: note: in expansion of macro 'CHECK_DT_REG' 137 | CHECK_DT_REG(egu4, NRF_EGU4); | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:138:1: note: in expansion of macro 'CHECK_DT_REG' 138 | CHECK_DT_REG(egu5, NRF_EGU5); | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:140:1: note: in expansion of macro 'CHECK_DT_REG' 140 | CHECK_DT_REG(flash_controller, NRF_NVMC); | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:141:1: note: in expansion of macro 'CHECK_DT_REG' 141 | CHECK_DT_REG(gpio0, NRF_P0); | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:143:1: note: in expansion of macro 'CHECK_DT_REG' 143 | CHECK_DT_REG(gpiote, NRF_GPIOTE); | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:112:9: note: in expansion of macro 'CHECK_DT_REG' 112 | CHECK_DT_REG(lbl, \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:144:1: note: in expansion of macro 'CHECK_I2C_REG' 144 | CHECK_I2C_REG(i2c0, 0); | ^~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:112:9: note: in expansion of macro 'CHECK_DT_REG' 112 | CHECK_DT_REG(lbl, \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:145:1: note: in expansion of macro 'CHECK_I2C_REG' 145 | CHECK_I2C_REG(i2c1, 1); | ^~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:146:1: note: in expansion of macro 'CHECK_DT_REG' 146 | CHECK_DT_REG(i2c2, NRF_TWIM2); | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:147:1: note: in expansion of macro 'CHECK_DT_REG' 147 | CHECK_DT_REG(i2c3, NRF_TWIM3); | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:148:1: note: in expansion of macro 'CHECK_DT_REG' 148 | CHECK_DT_REG(i2s0, NRF_I2S0); | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:149:1: note: in expansion of macro 'CHECK_DT_REG' 149 | CHECK_DT_REG(ipc, NRF_IPC); | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:150:1: note: in expansion of macro 'CHECK_DT_REG' 150 | CHECK_DT_REG(kmu, NRF_KMU); | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:156:1: note: in expansion of macro 'CHECK_DT_REG' 156 | CHECK_DT_REG(pdm0, NRF_PDM0); | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:157:1: note: in expansion of macro 'CHECK_DT_REG' 157 | CHECK_DT_REG(power, NRF_POWER); | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:159:1: note: in expansion of macro 'CHECK_DT_REG' 159 | CHECK_DT_REG(pwm0, NRF_PWM0); | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:160:1: note: in expansion of macro 'CHECK_DT_REG' 160 | CHECK_DT_REG(pwm1, NRF_PWM1); | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:161:1: note: in expansion of macro 'CHECK_DT_REG' 161 | CHECK_DT_REG(pwm2, NRF_PWM2); | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:162:1: note: in expansion of macro 'CHECK_DT_REG' 162 | CHECK_DT_REG(pwm3, NRF_PWM3); | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:167:1: note: in expansion of macro 'CHECK_DT_REG' 167 | CHECK_DT_REG(regulators, NRF_REGULATORS); | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:170:1: note: in expansion of macro 'CHECK_DT_REG' 170 | CHECK_DT_REG(rtc0, NRF_RTC0); | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:171:1: note: in expansion of macro 'CHECK_DT_REG' 171 | CHECK_DT_REG(rtc1, NRF_RTC1); | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:106:9: note: in expansion of macro 'CHECK_DT_REG' 106 | CHECK_DT_REG(lbl, \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:173:1: note: in expansion of macro 'CHECK_SPI_REG' 173 | CHECK_SPI_REG(spi0, 0); | ^~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:106:9: note: in expansion of macro 'CHECK_DT_REG' 106 | CHECK_DT_REG(lbl, \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:174:1: note: in expansion of macro 'CHECK_SPI_REG' 174 | CHECK_SPI_REG(spi1, 1); | ^~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:106:9: note: in expansion of macro 'CHECK_DT_REG' 106 | CHECK_DT_REG(lbl, \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:175:1: note: in expansion of macro 'CHECK_SPI_REG' 175 | CHECK_SPI_REG(spi2, 2); | ^~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:176:1: note: in expansion of macro 'CHECK_DT_REG' 176 | CHECK_DT_REG(spi3, NRF_SPIM3); | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:186:1: note: in expansion of macro 'CHECK_DT_REG' 186 | CHECK_DT_REG(timer0, NRF_TIMER0); | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:187:1: note: in expansion of macro 'CHECK_DT_REG' 187 | CHECK_DT_REG(timer1, NRF_TIMER1); | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:188:1: note: in expansion of macro 'CHECK_DT_REG' 188 | CHECK_DT_REG(timer2, NRF_TIMER2); | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:118:9: note: in expansion of macro 'CHECK_DT_REG' 118 | CHECK_DT_REG(lbl, \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:191:1: note: in expansion of macro 'CHECK_UART_REG' 191 | CHECK_UART_REG(uart0, 0); | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:192:1: note: in expansion of macro 'CHECK_DT_REG' 192 | CHECK_DT_REG(uart1, NRF_UARTE1); | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:193:1: note: in expansion of macro 'CHECK_DT_REG' 193 | CHECK_DT_REG(uart2, NRF_UARTE2); | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:194:1: note: in expansion of macro 'CHECK_DT_REG' 194 | CHECK_DT_REG(uart3, NRF_UARTE3); | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:198:1: note: in expansion of macro 'CHECK_DT_REG' 198 | CHECK_DT_REG(vmc, NRF_VMC); | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:199:1: note: in expansion of macro 'CHECK_DT_REG' 199 | CHECK_DT_REG(wdt, NRF_WDT0); /* this should be the same node as wdt0 */ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\include\zephyr\toolchain\gcc.h:81:36: error: static assertion failed: "" 81 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG) | ^~~~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:87:9: note: in expansion of macro 'BUILD_ASSERT' 87 | BUILD_ASSERT( \ | ^~~~~~~~~~~~ C:\ncs\v2.5.0\zephyr\soc\arm\nordic_nrf\validate_base_addresses.c:200:1: note: in expansion of macro 'CHECK_DT_REG' 200 | CHECK_DT_REG(wdt0, NRF_WDT0); | ^~~~~~~~~~~~ [67/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj [68/126] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj [69/126] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj [70/126] Building ASM object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/common/soc_nrf_common.S.obj [71/126] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/nrf91/soc.c.obj [72/126] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj [73/126] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_enabled_instances.c.obj [74/126] Building C object zephyr/CMakeFiles/zephyr.dir/C_/ncs/v2.5.0/nrfxlib/crypto/nrf_cc310_platform/src/nrf_cc3xx_platform_mutex_zephyr.c.obj [75/126] Building C object zephyr/CMakeFiles/zephyr.dir/C_/ncs/v2.5.0/nrfxlib/crypto/nrf_cc310_platform/src/nrf_cc3xx_platform_abort_zephyr.c.obj ninja: build stopped: subcommand failed. FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\c57af46cb7\opt\bin\cmake.EXE' --build 'c:\work\MyApp\hello_world\build' * The terminal process terminated with exit code: 1. * Terminal will be reused by tasks, press any key to close it.
I believe this is because "TF-M" is not added to the non-secure build configuration and does not include the secure build configuration.
I think I also need to configure memory settings.
Could you please tell me the minimum settings required to build "Hello world" with a non-secure build structure on a custom nRF9160 board?
Until now, I had been customizing the nRF9160_dk board definition in zephyr\boards\arm\nrf9160dk_nrf9160 by referring to the URL below.
devzone.nordicsemi.com/.../nrf-connect-sdk-tutorial---part-3-ncs-v1-4-0
Is this the best way?
Best regards,
ohta