Hello,
I have been successfully developing, programming, and debugging with NCS v1.9.1 on a custom nRF5340 design. As my target board, I base it off the ubx_evknorab10_nrf5340 from the u-blox-sho-OpenCPU repository. I saw that NCS v2.0.2 was now supported on that board, so I went ahead and installed v2.0.2 using the Toolchain Manager. After a successful install, I opened VS Code and tried to compile with this new toolchain. It failed with the following errors. Can you advise on how to fix this?
Thank you,
Jamie
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FAILED: zephyr/drivers/spi/CMakeFiles/drivers__spi.dir/spi_nrfx_spim.c.obj
C:\ncs\toolchains\v2.0.2\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DNRF5340_XXAA_APPLICATION -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DUSE_PARTITION_MANAGER=0 -D_FORTIFY_SOURCE=2 -D__PROGRAM_START -D__ZEPHYR_SUPERVISOR__ -D__ZEPHYR__=1 -IC:/ncs/v2.0.2/zephyr/include/zephyr -IC:/ncs/v2.0.2/zephyr/include -Izephyr/include/generated -IC:/ncs/v2.0.2/zephyr/soc/arm/nordic_nrf/nrf53 -IC:/ncs/v2.0.2/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.0.2/nrf/include -IC:/ncs/v2.0.2/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.0.2/modules/hal/nordic/nrfx -IC:/ncs/v2.0.2/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.0.2/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.0.2/zephyr/modules/hal_nordic/nrfx/. -isystem C:/ncs/v2.0.2/zephyr/lib/libc/minimal/include -isystem c:/ncs/toolchains/v2.0.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include -isystem c:/ncs/toolchains/v2.0.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/10.3.0/include-fixed -isystem C:/ncs/v2.0.2/nrfxlib/crypto/nrf_cc312_platform/include -Og -imacros C:/D-drive/Tessarae/Aurelia/Firmware/HexTile/HexTileController/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee -imacros C:/ncs/v2.0.2/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-asynchronous-unwind-tables -fno-pie -fno-pic -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=C:/D-drive/Tessarae/Aurelia/Firmware/HexTile/HexTileController=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.0.2/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.0.2=WEST_TOPDIR -ffunction-sections -fdata-sections -std=c99 -nostdinc -MD -MT zephyr/drivers/spi/CMakeFiles/drivers__spi.dir/spi_nrfx_spim.c.obj -MF zephyr\drivers\spi\CMakeFiles\drivers__spi.dir\spi_nrfx_spim.c.obj.d -o zephyr/drivers/spi/CMakeFiles/drivers__spi.dir/spi_nrfx_spim.c.obj -c C:/ncs/v2.0.2/zephyr/drivers/spi/spi_nrfx_spim.c
In file included from C:\ncs\v2.0.2\zephyr\include\zephyr\toolchain.h:50,
from C:\ncs\v2.0.2\zephyr\include\zephyr\init.h:10,
from C:\ncs\v2.0.2\zephyr\include\zephyr\device.h:29,
from C:\ncs\v2.0.2\zephyr\include\zephyr\drivers\spi.h:24,
from C:\ncs\v2.0.2\zephyr\drivers\spi\spi_nrfx_spim.c:7:
C:\ncs\v2.0.2\zephyr\include\zephyr\toolchain\gcc.h:77:36: error: static assertion failed: "/soc/peripheral@50000000/spi@8000 defined without required pin configuration"
77 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG)
| ^~~~~~~~~~~~~~
c:\ncs\v2.0.2\zephyr\soc\arm\nordic_nrf\common\soc_nrf_common.h:218:2: note: in expansion of macro 'BUILD_ASSERT'
218 | BUILD_ASSERT((IS_ENABLED(CONFIG_PINCTRL) && \
| ^~~~~~~~~~~~
C:\ncs\v2.0.2\zephyr\drivers\spi\spi_nrfx_spim.c:518:2: note: in expansion of macro 'NRF_DT_CHECK_PIN_ASSIGNMENTS'
518 | NRF_DT_CHECK_PIN_ASSIGNMENTS(SPIM(idx), 1, \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\ncs\v2.0.2\zephyr\drivers\spi\spi_nrfx_spim.c:584:1: note: in expansion of macro 'SPI_NRFX_SPIM_DEVICE'
584 | SPI_NRFX_SPIM_DEVICE(0);
| ^~~~~~~~~~~~~~~~~~~~
C:\ncs\v2.0.2\zephyr\include\zephyr\toolchain\gcc.h:77:36: error: static assertion failed: "/soc/peripheral@50000000/spi@8000 has legacy *-pin properties defined although PINCTRL is enabled"
77 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG)
| ^~~~~~~~~~~~~~
c:\ncs\v2.0.2\zephyr\soc\arm\nordic_nrf\common\soc_nrf_common.h:229:2: note: in expansion of macro 'BUILD_ASSERT'
229 | BUILD_ASSERT(!IS_ENABLED(CONFIG_PINCTRL) || \
| ^~~~~~~~~~~~
C:\ncs\v2.0.2\zephyr\drivers\spi\spi_nrfx_spim.c:518:2: note: in expansion of macro 'NRF_DT_CHECK_PIN_ASSIGNMENTS'
518 | NRF_DT_CHECK_PIN_ASSIGNMENTS(SPIM(idx), 1, \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\ncs\v2.0.2\zephyr\drivers\spi\spi_nrfx_spim.c:584:1: note: in expansion of macro 'SPI_NRFX_SPIM_DEVICE'
584 | SPI_NRFX_SPIM_DEVICE(0);
| ^~~~~~~~~~~~~~~~~~~~
C:\ncs\v2.0.2\zephyr\include\zephyr\toolchain\gcc.h:77:36: error: static assertion failed: "/soc/peripheral@50000000/spi@a000 has legacy *-pin properties defined although PINCTRL is enabled"
77 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG)
| ^~~~~~~~~~~~~~
c:\ncs\v2.0.2\zephyr\soc\arm\nordic_nrf\common\soc_nrf_common.h:229:2: note: in expansion of macro 'BUILD_ASSERT'
229 | BUILD_ASSERT(!IS_ENABLED(CONFIG_PINCTRL) || \
| ^~~~~~~~~~~~
C:\ncs\v2.0.2\zephyr\drivers\spi\spi_nrfx_spim.c:518:2: note: in expansion of macro 'NRF_DT_CHECK_PIN_ASSIGNMENTS'
518 | NRF_DT_CHECK_PIN_ASSIGNMENTS(SPIM(idx), 1, \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\ncs\v2.0.2\zephyr\drivers\spi\spi_nrfx_spim.c:600:1: note: in expansion of macro 'SPI_NRFX_SPIM_DEVICE'
600 | SPI_NRFX_SPIM_DEVICE(4);
| ^~~~~~~~~~~~~~~~~~~~
[73/171] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/nrf_rtc_timer.c.obj
[74/171] Linking C static library zephyr\lib\posix\liblib__posix.a
[75/171] Building C object modules/nrf/drivers/hw_cc310/CMakeFiles/..__nrf__drivers__hw_cc310.dir/hw_cc310.c.obj
[76/171] Linking C static library zephyr\drivers\clock_control\libdrivers__clock_control.a
[77/171] Linking C static library zephyr\drivers\gpio\libdrivers__gpio.a
[78/171] Building C object CMakeFiles/app.dir/src/main.c.obj
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'c:\ncs\toolchains\v2.0.2\opt\bin\cmake.EXE' --build 'c:\D-drive\Tessarae\Aurelia\Firmware\HexTile\HexTileController\build'
* The terminal process terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.