Try to post your complete code...it'll give a clear indication of what exactly is happening!!!
Also, do you want your UART to remain in sleep mode........how & when do you want it to come out of sleep mode?
Furthermore you may post the complete project here, so we all can have a look at. To do so, use the "Create Workspace Bumdle" function of Creator 2.2 and upload the resulting .zip-file,
Something need to ask.
1) How much Tx buffer size? Is it enough for DMA transfer?
2) Use UART_TX_STS_FIFO_EMPTY instead of UART_TX_STS_COMPLETE?
3) How about programming without DMA, before use DMA?
4) Would you mind of Build Setting / Compiler / Optimization,
highest size reduce setting is effective to communication program,
I don't know the reson but from my experience anyway.
Hi, Your design is temporarily working.
Wave1 is DMA and 2 is UART.
It seems UART work once, sleep, wakeup, work again and sleep forever.
Maybe UART can't wakeup again.
Cheers ! Please think and do again yourself.
Can't help you, because my mom say.
Do not take away the fun of debugging, It's a sin.
dma_uart.jpg 148.2 K