UART DMA Issue

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

UART DMA Issue

1,022件の閲覧回数
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 件の賞賛
返信
1 返信

767件の閲覧回数
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 件の賞賛
返信