Hard Fault after unlocking watchdog (KEA128)

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

Hard Fault after unlocking watchdog (KEA128)

跳至解决方案
1,637 次查看
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,435 次查看
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,565 次查看
pranav_prabhu
Contributor III

Hello @Alice_Yang 

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

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

Hello @pranav_prabhu 

0 项奖励
回复
1,608 次查看
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,603 次查看
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,535 次查看
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,436 次查看
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 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2037550%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E8%A7%A3%E9%94%81%E7%9C%8B%E9%97%A8%E7%8B%97%E5%90%8E%E5%8F%91%E7%94%9F%E7%A1%AC%E6%95%85%E9%9A%9C%EF%BC%88KEA128%EF%BC%89%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2037550%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E5%81%9C%E6%AD%A2%E5%90%8E%EF%BC%8C%E6%88%91%E5%B0%86%E8%A7%A3%E9%94%81%E7%9C%8B%E9%97%A8%E7%8B%97%E5%B9%B6%E5%9C%A8%E4%B8%8B%E4%B8%80%E8%A1%8C%E9%87%8D%E6%96%B0%E9%85%8D%E7%BD%AE%E5%AE%83%E3%80%82%E7%84%B6%E8%80%8C%EF%BC%8C%E8%A7%A3%E9%94%81%20MCU%20%E6%97%B6%E5%87%BA%E7%8E%B0%E7%A1%AC%E6%95%85%E9%9A%9C%E3%80%82%E5%A6%82%E4%BD%95%E9%98%B2%E6%AD%A2%E5%8F%91%E7%94%9F%E7%A1%AC%E6%95%85%E9%9A%9C%EF%BC%9F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2037550%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EKinetis%20EA%E7%B3%BB%E5%88%97MCU%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2039063%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E8%A7%A3%E9%94%81%E7%9C%8B%E9%97%A8%E7%8B%97%E5%90%8E%E5%87%BA%E7%8E%B0%E7%A1%AC%E6%95%85%E9%9A%9C%EF%BC%88KEA128%EF%BC%89%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2039063%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BB%8E%E5%81%9C%E6%AD%A2%E6%A8%A1%E5%BC%8F%E5%94%A4%E9%86%92%E5%90%8E%EF%BC%8C%E6%88%91%E9%9C%80%E8%A6%81%E5%86%8D%E6%AC%A1%E9%85%8D%E7%BD%AE%E7%9C%8B%E9%97%A8%E7%8B%97%E5%88%B7%E6%96%B0%E3%80%82%E6%AD%A4%E6%97%B6%EF%BC%8C%E6%88%91%E9%81%87%E5%88%B0%E4%BA%86%E4%B8%80%E4%B8%AA%E4%B8%A5%E9%87%8D%E6%95%85%E9%9A%9C%E3%80%82%E5%BD%93%E6%88%91%E5%9C%A8%E8%BF%9B%E5%85%A5%E5%81%9C%E6%AD%A2%E6%A8%A1%E5%BC%8F%E4%B9%8B%E5%89%8D%E8%BF%9B%E8%A1%8C%E9%85%8D%E7%BD%AE%E6%97%B6%EF%BC%8C%E6%B2%A1%E6%9C%89%E7%9C%8B%E5%88%B0%E8%BF%99%E7%A7%8D%E6%83%85%E5%86%B5%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E