Hi,
I meet a problem of DMA on S32K312 chip. The application scenario is moving the ADC sampling data to a fixed buffer by DMA.
The ADC1 channel data register address is set as the source address of DMA TCD1 channel, and the buffer address is set as the DMA destination address. But once the ADC sampling is triggered, the DMA source address changes (from 0x400A4118 to 0x400a117), and the CHE_ES register indicates the SAE and DAE errors.
The source address of DMA is configured as fixed address, and there is no place to change the SADDR register, it just changes actumatically. Please see the attached pictures.
解決済! 解決策の投稿を見る。
Hi Aaron,
After checked the project and called, a preliminary conclusion is as follows:
But there is a potential issue that the S32K3 RM don`t mentioned DMA behavior pattern like this.
BR
Frank
Hi Aaron,
After checked the project and called, a preliminary conclusion is as follows:
But there is a potential issue that the S32K3 RM don`t mentioned DMA behavior pattern like this.
BR
Frank
Hi, Frank
Thank you so much. The issue has been fixed after trying your method. It's really weird the NBYTES setting can impact the SADDR register.