2024-08-18 02:35 AM
I used DMA to read from USART, how can i know how many bytes are currently received by this and from which register i should read this number
Solved! Go to Solution.
2024-08-18 03:00 AM
Hello @mbagh.1
For such a use case, you have to use the DMA_SxNDTR register, more details available on the 1.1.12 part of the AN4031.
Best Regards.
STTwo-32
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.
2024-08-18 02:55 AM
NDTR register is key.
2024-08-18 03:00 AM
Hello @mbagh.1
For such a use case, you have to use the DMA_SxNDTR register, more details available on the 1.1.12 part of the AN4031.
Best Regards.
STTwo-32
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.