Skip to content

WS2812 driver not work on nRF52833DK #47780

@WolsYang

Description

@WolsYang

Describe the bug
A clear and concise description of what the bug is.

WS2812 driver not work on nRF52833DK

Please also mention any information which could help others to understand
the problem you're facing:

- What target platform are you using?
nRF52833DK
- What have you tried to diagnose or workaround this issue?
Try build 52832 sample code to drive ws2812, and it work.
west build -b nrf52dk_nrf52832 zephyr/samples/drivers/led_ws2812/ --pristine
west flash
Add following line to drivers/spi/spi_nrfx_spim.c
#define CONFIG_SOC_NRF52832_ALLOW_SPIM_DESPITE_PAN_58 1

To Reproduce
Steps to reproduce the behavior:
1.Cd samples/drivers/led_ws2812/boards
2. Copy nrf52dk_nrf52832.conf and nrf52dk_nrf52832.overlay
3. Paste to same path samples/drivers/led_ws2812/boards , and rename to nrf52833dk_nrf52833.conf and nrf52833dk_nrf52833.overlay
4. $ west build -b nrf52833dk_nrf52833 zephyr/samples/drivers/led_ws2812/ --pristine
5. $ west flash, then ws2812 show wrong color.

Expected behavior
WS2812 keep R G B color cycle.

Impact
What impact does this issue have on your progress (e.g., annoyance, showstopper)

Logs and console output

Environment (please complete the following information):

Additional context
Add any other context that could be relevant to your issue, such as pin setting,
target configuration, ...

Metadata

Metadata

Labels

area: LEDLabel to identify LED subsystembugThe issue is a bug, or the PR is fixing a bugplatform: nRFNordic nRFxpriority: lowLow impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions