I successfully ran the example called srx_fast_dma_mpc5744p, and then I created an empty S32DS project.Then I completely copied the code of srx_fast_dma_mpc5744p to the empty project, but during runtime, once it receives data from the sensor, the program will continue to enter SWT0_ IRQHandler(). Is there an error somewhere?
Hello,
Looks like your SWT is triggering the interrupt.
Are you running the SW or you are debugging it. As if you the step in debugger then the IRQ from SWT will be called immediately. therefore the SWT is in most debuggers disabled by default.
If you disable/service the SWT in your code, then the IRQ handler from SWT should never be called in ideal situation.
Best regards,
Peter