MC56F837xx : Controller HALTs while feeding some GPIO

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

MC56F837xx : Controller HALTs while feeding some GPIO

2,007 次查看
Aman786
Contributor II

 

Hi,

I was debugging a code. It executes normally but after feeding some signal (gpio) the controller gets HLT and not able to continue.

Can you please help to identify the issue causing controller halt ?

PFA the attached imageerr1.png

@xiangjun_rong

@xiangjun_rong 

0 项奖励
回复
3 回复数

1,947 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

From your screenshot, we can see that an interrupt happened, but there is not ISR, even we do not know the interrupt source.

Pls refer to the INTC_CTRL[VAB], then you can know the interrupt source after the interrupt happened.

BTW, pls refer to the bits of INTC_IRQPx register to know the interrupt source, 0 means that the interrupt is pending.

 

xiangjun_rong_0-1731898867292.png

Hope it can help you

BR

XiangJun Rong

 

0 项奖励
回复

1,981 次查看
Aman786
Contributor II
Hi @xiangjun_rong ,
There is not interrupt enabled for that GPIO, since with same signal if we comment out some lines of code, this issue is not happening. The thing I noticed is even after HALT happened also the interrupts with priority 2 are still executed.

Are there any internally generated interrupt with priority less than 2, is it illegal instruction interrupt and if so what might be the reasons ?
0 项奖励
回复

1,991 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

I guess that you have configured the GPIO port interrupt enabled, so the GPIO pin rising or falling edge triggers an interrupt, but you do not have ISR for the port.

Can you tell us which GPIO pin makes the core to stop at the entry point? is it convenient for you to post the code?

For example, pls check the PORT and pin of the GPIO input, then check the GPIOx_IENR reg.

 

xiangjun_rong_0-1731638658570.png

Hope it can help you

BR

XiangJun Rong

 

0 项奖励
回复