-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WS2812 driver not work on nRF52833DK #47780
Comments
Here is the video what I do IMG_5896_out.mp4. |
@WolsYang I can't really see anything in your video, sorry. A few questions for you that may help you debug:
|
@mbolivar-nordic Sorry, that video relly bad, I know I'm trying to find an easy way to that others understand. I just want to show WS2812 example code for 52832 works and 52833 are not, they are both flash on 53833dk.
I and Bell have several discussions and tests on Discord :https://discord.com/channels/720317445772017664/883445320812466209/996617182991618094 On there has the scope picture, if do "-b nrf53833dk_nrf58833" the signal became really weird. ================================================= |
I agree that signal is really weird. It should not be possible for the signals to be that close together.
I agree this sounds like an installation issue, but I too am not so sure how to proceed. Maybe you can look at the SPIM registers in Ozone and see if there is anything strange or different in the non-working hex, when you compare with the working hex? Since your hardware is OK, there must be some bad peripheral setup somewhere. |
How can I do that? I'll try it later. |
Hi, sorry I missed your comment. If you're not familiar with Ozone setup, you can follow the steps here, choosing the 'Debug with Ozone' option: https://nrfconnect.github.io/vscode-nrf-connect/connect/debug_app.html Once Ozone has started, you should be able to see the peripheral registers in the user interface, so you can compare SPIM in the working and non-working configurations. |
Closing due to unresponsiveness from the reporter. Please reopen if it's still an issue. |
Add a driver implementation that uses the I2S peripheral. Based off this blog post: https://electronut.in/nrf52-i2s-ws2812/ Should help with zephyrproject-rtos#33505, zephyrproject-rtos#29877 and maybe zephyrproject-rtos#47780, as there is no garbage data at the end of transmissions on nRF52832, and no gaps. Signed-off-by: Jonathan Rico <[email protected]>
Add a driver implementation that uses the I2S peripheral. Based off this blog post: https://electronut.in/nrf52-i2s-ws2812/ Should help with zephyrproject-rtos#33505, zephyrproject-rtos#29877 and maybe zephyrproject-rtos#47780, as there is no garbage data at the end of transmissions on nRF52832, and no gaps. Signed-off-by: Jonathan Rico <[email protected]>
Add a driver implementation that uses the I2S peripheral. Based off this blog post: https://electronut.in/nrf52-i2s-ws2812/ Should help with #33505, #29877 and maybe #47780, as there is no garbage data at the end of transmissions on nRF52832, and no gaps. Signed-off-by: Jonathan Rico <[email protected]>
Add a driver implementation that uses the I2S peripheral. Based off this blog post: https://electronut.in/nrf52-i2s-ws2812/ Should help with zephyrproject-rtos#33505, zephyrproject-rtos#29877 and maybe zephyrproject-rtos#47780, as there is no garbage data at the end of transmissions on nRF52832, and no gaps. Signed-off-by: Jonathan Rico <[email protected]>
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, ...
The text was updated successfully, but these errors were encountered: