Linker error when compiling NCS 2.7.0 project using HWMv2

Hi, we are trying to switch our nRF9160 project over to using HWMv2. We get a linker error that we are unable to solve. We think it is the combination between using our own board file, HWMv2 and using an external SPI flash for bootloading. In the part of the compile for mcuboot and s1_image, we noticed this warning:

CMake Warning at C:/ncs/v2.7.0/zephyr/CMakeLists.txt:895 (message):
No SOURCES given to Zephyr library: drivers__spi

Then at the linker stage we get:

c:/ncs/toolchains/ce3b5ff664/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/drivers/flash/libdrivers__flash.a(spi_nor.c.obj):(.rodata.spi_nor_0_config+0x0): undefined reference to `__device_dts_ord_105'

I made a cut down version of our project, please see atttached hwmv2_problem.zip

In the scripts folder is a bat file I used to compile the project. I also attached the build output from my PC.

Can you please give me advice on how to solve this?

Parents Reply Children
Related