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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

178 次查看
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 项奖励
1 回复

144 次查看
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 项奖励