Other Parts Discussed in Thread: HALCOGEN
Hi team,
Issue:
SCI sends data using DMA, which is configured to send data in 10 bytes at initial initialization. You want SCI to send 14 and 18 and 24 bytes of packets, respectively, while the program is running. Try modifying the transmit data length of the DMA control packet at this time; dmaRAMREG-> PCP[DMA_CH4].ITCOUNT = (14 << 16U) | 1; DmaSetChEnable(DMA_CH4, DMA_HW);
Then finds that transmit DMA of the SCI is out of operation. The customer guess is because the ITCOUNT parameter of the register dmaRAMREG is in privileged mode to be written, so this parameter should be modified in privileged mode.
Could you help figure out what is the reason SCI's transmit DMA stops working after modifying the SCI's DMA control packet.
Could you help check this case? Thanks.
Best Regards,
Cherry