lpcware

UART DMA works as intended when debugging, but doesn't when not?

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by jackandrews on Tue Oct 22 11:39:42 MST 2013
Hi,

I have a strange problem.  I am reading data over UART and placing into memory using DMA, with data being alternatively written to two different buffers after 1000 bytes have been read (ping-pong).  When debugging the target, the software works fine - data goes into each buffer correctly.  However, if I reset the target and no longer debug, data is getting corrupted.  Are there any registers which change behaviour when debugging?  E.g. changes the timing of DMA or something else to ease debugging?

Any thoughts on what could be changing the behaviour greatly appreciated!

Thanks,

Jack

Outcomes