I'm currently working with UARTDriver, and I have a question on how to access the "live" value of DMA NDTR.
My idea is using a virtual timer that checks the NDTR value for a fixed interval, e.g. 1uS.
I'm using STM32F4-Discovery and currently trying to access the value via:
Code: Select all
UARTD2.dmarx->stream->NDTR
However, everytime I printed the value to the console, I always get the maximum value (it never showed the value went down).
Can someone point me to how to properly access the "live" value?
Thank you.
- Sam