stm32-ws2811-ws2812-ws2812b-ws281x-tim-pwm-dma-timer icon indicating copy to clipboard operation
stm32-ws2811-ws2812-ws2812b-ws281x-tim-pwm-dma-timer copied to clipboard

Stm32u5 port.

Open Sazerac4 opened this issue 1 year ago • 1 comments

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)

  • Timer 2, channel 4
  • GPDMA channel 0

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

Sazerac4 avatar May 06 '24 09:05 Sazerac4

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.

MaJerle avatar May 06 '24 09:05 MaJerle