The program is constantly running the SWT0_IRQHandler() and cannot jump out

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

The program is constantly running the SWT0_IRQHandler() and cannot jump out

170 Views
gsr007
Contributor I

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?

gsr007_0-1701005664076.jpeg

 

0 Kudos
1 Reply

136 Views
petervlna
NXP TechSupport
NXP TechSupport

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

0 Kudos