-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
DMA1_Channel3_IRQn not firing when using ws2812b_dma_spi_led_driver.h #451
Comments
With that I would recommend one of the following:
|
Hello! I didn't realize that the core is so old... I tinkered around with it more and realized, that (I guess) the real problem lies a bit deeper. In a sense that whatever I'm doing I can't get any interrupts to fire at all. It always ends up in ch32v003fun.c
As this is supposed to be just a "small" christmas gift I'll therefore have to do it with the "primitive" BitBang Driver (which works just fine) I suppose I could compile against the chv003fun framework, but due to time constraints (well, christmas) this will have to come later. thank you for pointing it out! I'll close the issue as this is most likely not a problem of the ch32v003fun code. |
Hello there,
Im currently tinkering around with the ws2812b DMA Driver.
For this I made a platformIO Project with the following .ini
It works straight away. The one WS2812B LED gets one set of Color data transmitted.
But than no other transmits are possible.
I debugged it and traced it down to the fact that the
DMA1_Channel3_IRQHandler
is never firing. this causes the code in line 199WS2812FillBuffSec( WS2812dmabuff, DMA_BUFFER_LEN / 2, 1 );
never gets called.Therefore the function
WS2812FillBuffSec
never gets called withtce = 1
.(
if( tce )
in Line 114 never returns "true" which means the flag WS2812BLEDInUse is never reset )I also confirmed this with a debugger and also a LED which would light up when the IRQ is fired.
Unfortunately I now has hit my competence-limit and I do not know why this is happening and how I can fix this issue
This is my test-Code:
I figured that it might has something todo with enabeling interrup-Nesting, but I I use that macro I'll get a compiler error:
I also searched the github repo on the occourances of "__get_INTSYSCR" and " __set_INTSYSCR" but github would only return the WS2812 DMA Library of the only occourance of those symbols. So I don't know where they are from.
Any Help would be greatly appreciated,
The text was updated successfully, but these errors were encountered: