SPD demo question

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

SPD demo question

跳至解决方案
1,088 次查看
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 项奖励
回复
1 解答
1,059 次查看
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 项奖励
回复
1 回复
1,060 次查看
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 项奖励
回复