In the main.c file of the demo provided by the S32K3 Safety Peripheral Drivers version 1.0.3 Design : Product Download : Files (flexnetoperations.com), I noticed that the first highlighted area clears the reset flags. Doesn't that mean the BIST section will never be executed?
1. Is this a design flaw or do users need to manually modify certain code?
Solved! Go to Solution.
Hello,
yes the highlighted code (Mcu_GetResetReason function) clears the reset flags but the function will also store the reset reason into a global variable for later use. So then when the Mcu_GetResetReason() is called for a second time it will still return the correct reset reason remembered in a global variable of Mcu driver.
Best Regards,
Frantisek
Hello,
yes the highlighted code (Mcu_GetResetReason function) clears the reset flags but the function will also store the reset reason into a global variable for later use. So then when the Mcu_GetResetReason() is called for a second time it will still return the correct reset reason remembered in a global variable of Mcu driver.
Best Regards,
Frantisek