Skip to main content
Vkris.1
Associate II
May 4, 2023
Solved

we have implemented the serial terminal for stm32u575ziq nucleo board when we config UART with DMA fails to transmit data after some time. But when we use UART with interrupt then it works fine Anyone knows why it is happening like that?

  • May 4, 2023
  • 5 replies
  • 1671 views

..

This topic has been closed for replies.
Best answer by Vkris.1

got the solution it is because of thread priorities.

Thanks for the support :smiling_face_with_smiling_eyes:

5 replies

Tesla DeLorean
Guru
May 4, 2023

Congratulations I guess..​

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Vkris.1
Vkris.1Author
Associate II
May 4, 2023

nice one bro, But I want to know what the possible reason could be why it fails when I use DMA.

Tesla DeLorean
Guru
May 4, 2023

Your initial post made a declarative statement.

Not much detail still on code, status or errors reported by the peripherals or HAL.

Would guess relates to ignoring an error, perhaps a noise, framing, under/over run type thing on the reception that needs clearing on the UART side. Perhaps a fault or race condition on the DMA​ side.

Going to need to look at registers and unpack the failing state.​

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Foued_KH
ST Employee
May 4, 2023

Hello @Vkris.1​ ,

I recommend you to follow properly the steps as described in this wiki page in the 6.3 UART with DMA

section :Getting started with UART - stm32mcu

Hope my answer helped you!

Foued

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Vkris.1
Vkris.1AuthorBest answer
Associate II
May 5, 2023

got the solution it is because of thread priorities.

Thanks for the support :smiling_face_with_smiling_eyes: