Skip to content
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

Stm32u5 port. #11

Open
Sazerac4 opened this issue May 6, 2024 · 1 comment
Open

Stm32u5 port. #11

Sazerac4 opened this issue May 6, 2024 · 1 comment

Comments

@Sazerac4
Copy link

Sazerac4 commented May 6, 2024

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

@MaJerle
Copy link
Owner

MaJerle commented May 6, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants