Hi All
I would like to do ping-pong DMA with CRC, ie.,
USART6 -> buffer1 -> CRC -> USART6 -> buffer0 ->CRC.
UM11126 user manual chapter has provided instruction on how to do chain DMA.
Nonetheless, I followed the instructions and demo codes from LPC55S69 but I am not able to configure to the ping-pong USART6 with CRC
The reason that I am not able to do the ping-pong DMA with USART + CRC is that
in order to do ping-pong config, dma_xfercfg_t needs reload=true, clrtrig=false, whereas for
chain DMA to work, clrtrig=true, but this breaks ping-pong config.
Can someone help to see if this is something that is fundamental limitation to the LPC55S66 MCU. If not, can I get help in how to configure it properly?
I have attached the code. The macro definition #define TRY_CRC 1 will work for single uart+crc transfer but not in ping-pong config. Setting TRY_CRC 0 will do ping-pong but not CRC transfer.
Thank you in advance for all the help.
Ping.