Hard Fault after unlocking watchdog (KEA128)

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

Hard Fault after unlocking watchdog (KEA128)

跳至解决方案
1,338 次查看
pranav_prabhu
Contributor III

After coming out of stop, I am unlocking watchdog and reconfiguring it in the very next line. However, while unlocking MCU gets a hard fault. How do I prevent hard fault from occurring?

标签 (1)
0 项奖励
回复
1 解答
1,136 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @pranav_prabhu 

Please do not set breakpoints when configuring the Watchdog. Run the program at full speed for testing.

 

BR

Alice

在原帖中查看解决方案

0 项奖励
回复
6 回复数
1,266 次查看
pranav_prabhu
Contributor III

Hello @Alice_Yang 

Currently when I try to put mcu in stop mode, it gets a hard reset.

0 项奖励
回复
1,313 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @pranav_prabhu 

0 项奖励
回复
1,309 次查看
pranav_prabhu
Contributor III

After waking up from stop mode, I need to configure the watchdog refresh again. At this point, I am getting a hard fault. This isn't seen when I configure before entering stop mode.

0 项奖励
回复
1,304 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @pranav_prabhu 

Thanks for your reply. I understand what you mean. Could you please first test by disabling the watchdog code after waking up from stop mode? Can it work properly then? We're doing this to narrow down the issue and confirm whether it's a watchdog configuration problem.

 

BR

Alice

0 项奖励
回复
1,236 次查看
pranav_prabhu
Contributor III

Hello @Alice_Yang 

I am in debug and put a breakpoint at the point where unlock is taking place. Is it because the clock cycles for unlock got elapsed.

0 项奖励
回复
1,137 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @pranav_prabhu 

Please do not set breakpoints when configuring the Watchdog. Run the program at full speed for testing.

 

BR

Alice

0 项奖励
回复