cancel
Showing results for 
Search instead for 
Did you mean: 

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?

Vkris.1
Associate II
 
1 ACCEPTED SOLUTION

Accepted Solutions
Vkris.1
Associate II

got the solution it is because of thread priorities.

Thanks for the support :smiling_face_with_smiling_eyes:

View solution in original post

5 REPLIES 5

Congratulations I guess..​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Vkris.1
Associate II

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

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 Venmo
Up vote any posts that you find helpful, it shows what's working..
Foued_KH
ST Employee

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
Associate II

got the solution it is because of thread priorities.

Thanks for the support :smiling_face_with_smiling_eyes: