2021-10-15 08:44 AM
Hi,
I am developing an application on SPC58EC that uses the serial with DMA for reading.
I'd like to know if there is a way to know and get the position where it's writing in the buffer. I mean something like the corresponding "__HAL_DMA_GET_COUNTER(...)" or to the "...->CNDTR" register of the STM32.
I already use the receive callback that trigger at the end, but it's not enough for my purpose.
Thanks,
Rob
Solved! Go to Solution.
2021-10-19 12:21 PM
Hi
Try to look at word4 (TCDn_DADDR) field in used TCD of eDMA. It's updated after minor iteration is completed. It's incremented by the size of the minor tranfer. If minor loop size is 1 byte, it's inceremented on each byte transfer.
Pavel
2021-10-19 12:21 PM
Hi
Try to look at word4 (TCDn_DADDR) field in used TCD of eDMA. It's updated after minor iteration is completed. It's incremented by the size of the minor tranfer. If minor loop size is 1 byte, it's inceremented on each byte transfer.
Pavel
2021-10-27 05:59 AM
Thanks for the answer, I'll check it out.