SPD demo question

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,117件の閲覧回数
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,088件の閲覧回数
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,089件の閲覧回数
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 件の賞賛
返信