rtwdog and debug mode - imxrt1021

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

rtwdog and debug mode - imxrt1021

1,091 次查看
estacey
Contributor III

I'm running the rtwdog example with the debug target trying to debug and the interrupt is set to not be enabled during debug mode.  It counts and even kicks off the debugger when it fires so I have to wonder is there a different sort of debug mode that I'm not aware of or is the watchdog  behaving incorrectly?  The user manual says something about debug mode in relation to JTAG.  Is debug mode not entered without JTAG?

Additionally, I'm not seeing the interrupt at all.  I set a break point in it and I put a printf statement there to see a message on the console from the interrupt vector.

---edit---Looking further into this, I think the demo project has some problems.  WDOG1 works fine, however.  Still runs when the debugger runs, so I would love to have an answer to that problem.  I'm also concerned the 0.5s granularity of WDOG1 won't suit our needs so if the other rtwdog watchdog issues can be identified, that would be much appreciated.

Thanks,
Ellen

标签 (1)
0 项奖励
回复
3 回复数

998 次查看
Alexis_A
NXP TechSupport
NXP TechSupport

Hello estacey@avg.net‌,

In the RTWDOG_GetDefaultConfig the structure is load with the configuration, to enable the debug mode in this MCU you need to modify the default value (disabled). Put the following line after the DefaultConfig API.

config->workMode.enableDebug = true;

I hope this helps you.

Best Regards,

Alexis Andalon

0 项奖励
回复

998 次查看
estacey
Contributor III

Setting enableDebug to true with disable the watchdog counter when I'm running the debug target?

0 项奖励
回复

998 次查看
Alexis_A
NXP TechSupport
NXP TechSupport

That's right Ellen, the WDOG should halt when you pause the debug session.

Best Regards,

Alexis Andalon

0 项奖励
回复