UART DMA Issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

UART DMA Issue

556 Views
josephchen
Contributor III

I'm using MQX 4.2 on MK70 MCU. I use UART driver in DMA mode to receiver GPS data. I've found that if I pause the program in debug mode and resume it, the DMA will stop to receive any data. When the program is paused, the GPS will keep send data and somehow overflow the DMA buffer. Is there any way to safely close DMA UART and restart it?

0 Kudos
1 Reply

301 Views
Carlos_Musich
NXP Employee
NXP Employee

Hi Joseph,

There are no examples about what you are asking for, but GDB has several scripting capabilities and I think it may be possible to modify UART register to disable it when a breakpoint is hit.

For example: https://mcuoneclipse.com/2015/07/14/automatic-variable-expression-and-memory-display-with-gdb-and-ec...

Otherwise see: http://stackoverflow.com/questions/6517423/do-specific-action-when-certain-breakpoint-hits-in-gdb

I hope this helps.


Regards,
Carlos

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos