My processor is MPC5748G and the compiler is S32.
I want to use eDMA to transfer the data collected by ADC0 to the array. I hope that the DMA operation will be performed automatically after each AD conversion, and the infinite loop will not stop. But in fact, no matter how I set the eDMA parameter and the ADC0 parameter, eDMA can only be transmitted once.
After each startup of the software, the simulation finds that the conversion value of ADC0 has been transferred to the corresponding position of the target array; changing the input of the ADC, it can be seen that the sample value of the ADC has changed, but the data of the eDMA target array has not changed. Looking at the values of each Register did not reveal a problem.
Trying to connect to this channel itself after completing the eDMA major loop is also not successful.
The relevant code is attached.
Can you help me solve it?