If PDO bit is on, ECU is entering into low power mode
Now, i can able to debug from trace32. After disabling the PDO bit.
I have a few questions regarding the clock behavior in SAFE mode:
I configured MC_CGM.AC5_SC[SELCTL] = FXOSC to use a stable external clock source. However, when the software enters SAFE mode, the system automatically switches to the FIRC clock as controlled by the MC_ME module. Even after entering SAFE mode, MC_CGM.AC5_SC[SELCTL] still reports FXOSC as the selected source.
So my questions are:
Do I need to manually reconfigure the clock source to FIRC after the device enters SAFE mode?
Or is this unnecessary since SAFE mode automatically forces the internal RC oscillator regardless of the CGM settings?
Additionally, I noticed that MC_CGM.SC_SS[SWTRG] = 0b100, meaning:
“Switch to 16 MHz internal RC oscillator due to SAFE mode request or reset succeeded.”
Also, During SAFE mode why CAN communication is not working when it enters safe mode. Does this is the default action from microcontroller..?