I am trying to implement the Ws2812 driver on the NRF5340 based on the driver example.
The specific error I am getting is:
c:/sysgcc/arm-eabi/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: zephyr/drivers/spi/libdrivers__spi.a(spi_nrfx_spim.c.obj):(.rodata.__compound_literal.1+0x0): undefined reference to `__device_dts_ord_68'
This is similar to this post:
Implementing WS2812 Driver NCS (undefined reference to `__device_dts_ord_61')
It seems like there is something missing in the configuration.
prj.conf:
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# BT
CONFIG_BT=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_DEVICE_NAME="QuantaFlo 2.0""
CONFIG_BT_DEVICE_APPEARANCE=833
CONFIG_BT_MAX_PAIRED=1
CONFIG_BT_DEBUG_LOG=y
CONFIG_BT_MAX_CONN=1
#CONFIG_BT_L2CAP_TX_BUF_COUNT=5
# This example requires more workqueue stack
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
CONFIG_HEAP_MEM_POOL_SIZE=2048
# SPI
CONFIG_SPI=y
#CONFIG_NRFX_SPIM=y
#CONFIG_NRFX_SPIM4=y
CONFIG_GPIO=n
The overlay file:
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
&spi4 {
compatible="nordic,nrf-spim";
status = "ok";
sck-pin = <36>;
mosi-pin = <41>;
miso-pin = <25>;
};
&zephyr_udc0 {
cdc_acm_uart0 {
compatible = "zephyr,cdc-acm-uart";
label = "CDC_ACM_0";
};
};
#include <dt-bindings/led/led.h>
Nothing in the other linked post seemed to help.