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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-03 9:18 PM
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-05 2:37 AM
got the solution it is because of thread priorities.
Thanks for the support :smiling_face_with_smiling_eyes:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-03 9:27 PM
Congratulations I guess..​
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-03 9:34 PM
nice one bro, But I want to know what the possible reason could be why it fails when I use DMA.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-04 3:49 AM
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.​
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-04 6:26 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-05-05 2:37 AM
got the solution it is because of thread priorities.
Thanks for the support :smiling_face_with_smiling_eyes:
