Hello
When using the DS tool to configure the Reset function, set [Functional Reset Escalation Threshold] to 0 in the [Power] component, that is, turn off the Reset Escalation Threshold function. Call the interface Power_Ip_PerformReset in the code to execute the Reset action. After 8 consecutive Resets, the MCU cannot be powered on.
Why can't the Reset Escalation Threshold function be turned off? How can I turn off this function so that the MCU can be reset infinitely?
BestRegards
Simon
The information in the picture below is the version of RTD I am using, thanks.
BestRegards
Simon
Hi Simon,
In your setup, you probably see this behavior because you don't power cycle the MCU.
The driver clears the FRET register after POR or a desctructive reset only.
My test project is attached.
Once the project is loaded, power-cycle the MCU and attach the debugger back without reset.
It will be stuck in the while(stop){} loop.
The stop variable can be cleared via the debugger once attached.
You should see that the Power_Ip_Init() clears the FRET register if DES != 0.
Regards,
Daniel
I learned that the registers FRET and DRET are used to set the Reset Escalation Threshold, so I set these two registers to 0 before restarting to disable the Reset Escalation Threshold. When I set the Power Reset Type to FunctionalReset, the MCU can always reset by calling the Power_Ip_PerformReset interface; if I set the Power Reset Type to DestructiveReset, the MCU will be stuck and unable to operate after calling the Power_Ip_PerformReset interface Reset 8 times.
What is the reason for this?
Looking forward for your reply, thank you.
BestRegards
Simon
Hi Simon,
Your observation seems to be right.
The DRET register is cleared only after POR.
If you trigger a functional descructive reset, DES[F_POR] = 0.
But it should be cleared after any DES reset if the driver is configured with DRET = 0 (escallation disabled).
It has been reported to the RTD team,
Regards,
Daniel
Thank you for your answer.
I hope the RTD team can give the cause and solution of the problem as soon as possible.
BestRegards
Siomon
Hi @Simon-Liu,
I'm sorry for the delay.
It is going to be fixed in this RTD version: BLN_RTD_4.7_S32K3XX_S32M27x_4.0.0
BR, Daniel
Thank you for your reply, please let me know when this RTD is released.
BestRegards,
Simon
Thank you for your answer.
I checked your project and found that your code is the same as mine. In the Power_Ip_MC_RGM_ResetInit function in my project, there is also the processing of clears the FRET register if DES != 0. The attachment is my project. Please help to find out where the problem is.
BestRegards
Simon