SPD demo question

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SPD demo question

Jump to solution
595 Views
Pusoy
Contributor III

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?
Pusoy_0-1702979284121.png

 

0 Kudos
Reply
1 Solution
566 Views
frantisekdobes
NXP Employee
NXP Employee

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

View solution in original post

0 Kudos
Reply
1 Reply
567 Views
frantisekdobes
NXP Employee
NXP Employee

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

0 Kudos
Reply