Undefined reference to SPI and GPIO devices during Matter application link

I have a nRF54l15dk development board and a custom nRF54L15 board that I am trying to load a Matter Template sample application on.  I have created a custom board device tree configuration for our custom board.  The main difference from the DK board and our custom board is the use of a UART, I2C port, a PWM output, and an external flash SPI port on our custom board as compared to the 2 UARTs, external flash SPI, and PWM output on the DK board.  I have made sure to use unique serial peripherals for the I2C, UART, and SPI ports.  All my errors have gone away except the following link error:

/home/gene/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: /tmp/cc5e38KF.ltrans0.ltrans.o:(.rodata.spi_nor_0_config+0x0): undefined reference to `__device_dts_ord_106'
/home/gene/ncs/toolchains/b77d8c1312/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: /tmp/cc5e38KF.ltrans0.ltrans.o:(.rodata.spi_nor_0_config+0xc): undefined reference to `__device_dts_ord_105'

From the generated devicetree.h file, I see these lines for 105 and 106:

* 105 /soc/peripheral@50000000/gpio@50400
* 106 /soc/peripheral@50000000/spi@4a000

When I compare the .config files from the nRF54L15DK build and my custom board build, the main difference I see is that the DK build has the following Kconfig parameter set:
CONFIG_CHIP_SPI_NOR=y

Whereas my custom configuration as this message about this variable:
# CONFIG_CHIP_SPI_NOR is not set

I tried the AI suggestion of adding the CONFIG_CHIP_SPI_NOR to my prj.conf file, and while this did set this parameter, the link error remains.

Related