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:
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.
Solved! Go to Solution.
Hi Ernst,
This is because the FlexCAN module is not initialized at that time. The register in FlexCAN is not readable.
Regards,
Jing
Please add your chip part number, thus we can have the right support for your issue. Thanks
Jun Zhang
RT1060
Hi Ernst,
This is because the FlexCAN module is not initialized at that time. The register in FlexCAN is not readable.
Regards,
Jing
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.
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