Issue in debug envirement

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

Issue in debug envirement

跳至解决方案
2,250 次查看
e_v_spronsen
Contributor III

I have a very annoying issue. When I (re)start the debug environment.

If I have this line in the expression window:

CAN2->MB[5].CS

 I got this error message:

pastedImage_1.png

It basically stops working. I have to power cycle the device, remove this line form the expression window And restart the debugger and that is really frustrating when you try to figure out why the canbus still doesn't work.

标记 (1)
0 项奖励
回复
1 解答
2,131 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi Ernst,

This is because the FlexCAN module is not initialized at that time. The register in FlexCAN is not readable.

Regards,

Jing

在原帖中查看解决方案

0 项奖励
回复
5 回复数
2,131 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Ernst van Spronsen 

Please add your chip part number, thus we can have the right support for your issue. Thanks

Jun Zhang

0 项奖励
回复
2,131 次查看
e_v_spronsen
Contributor III

RT1060

0 项奖励
回复
2,132 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi Ernst,

This is because the FlexCAN module is not initialized at that time. The register in FlexCAN is not readable.

Regards,

Jing

0 项奖励
回复
2,131 次查看
e_v_spronsen
Contributor III

Jing,

I understand, but throwing a fatal exception and terminate the program  is really annoying and not necessary.

So every time I have to remove the parameters for debug. Start the program rewrite the parameters and remove them again when I'm terminate or restart the session.  When I forgot to remove the parameter on time. The program terminate and I have to restart over again. That is not really a workable situation.

Some error handling should be nice.

0 项奖励
回复
2,131 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi Ernst,

Yes, this is a bit boring. But read unaccessable address will cause hardfault. To avoid this problem, you can right click CAN2->MB[5].CS in Expressions window and select "disable". 

Regards,

Jing

0 项奖励
回复