MaJerle / stm32-ws2811-ws2812-ws2812b-ws281x-tim-pwm-dma-timer

WS2811, WS2812, WS2812B or compatible leds driver with STM32, TIM, PWM and DMA with minimum RAM required
211 stars 44 forks source link

Stm32u5 port. #11

Open Sazerac4 opened 5 months ago

Sazerac4 commented 5 months ago

Hello, I tried to port the library to a stm32u5 and I haven't managed to get the library to control the LEDs at the moment. I prepared a branch: stm32u5 (WIP)

I have no signal on the output. DMA interrupts are occurring as expected. Anyone have any clues as to what's wrong or missing for this family? Regards

MaJerle commented 5 months ago

I didn't check the details, would be good I tried porting to U5 too, but GPDMA IP accepts number of "BYTES" to transmit, and not number of "elements".

In GPDMA, if you have word data size (4 bytes) and you want to transfer 2 words, your length is set to 8 -> 8 is number of bytes. If non-GPDMA STM32 products, if you have a word data size (4 bytes) and you want to transfer 2 words, your length is set to 2.