I'm trying to build one of the Nordic Zephyr SPI examples shown here:
https://github.com/too1/ncs-spi-master-slave-example/blob/master/src/main.c#L43C32-L43C39
https://github.com/too1/ncs-spi-master-slave-example/blob/master/nrf52840dk_nrf52840.overlay#L46
I have the PCA10040 version 3.0.0 dev board with the nRF52832 and my nRF Connect tool chain version is 2.3.0
I created a fresh application in NRF Connect from the Hello_world template and replaced the main.c and overlay with the files referenced above. I created a build configuration based on nrf52dk_nrf52832. The build encountered a number of device tree errors like this:
C:\ncs\v2.3.0\zephyr\include\zephyr\device.h:83:41: error: '__device_dts_ord_DT_N_NODELABEL_reg_my_spi_master_BUS_P_cs_gpios_IDX_DT_N_NODELABEL_reg_my_spi_master_REG_IDX_0_VAL_ADDRESS_PH_ORD' undeclared here (not in a function) 83 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
How can I fix this Nordic SPI example to build for my Nordic dev board?