How to detect PMC LVR reset.

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

How to detect PMC LVR reset.

Jump to solution
418 Views
Pusoy
Contributor III

hi,
According to the reference manual, PMC will trigger an LVR event after detecting an under-voltage condition in the monitored power supply and initiate a reset by default.
Furthermore, the LVR event will be combined with the POR event into a single POR event.
Pusoy_0-1704874462313.png

Pusoy_1-1704875201935.png

 

Supposing that the previous reset was caused by an LVR event:
1. When invoking the function Mcu_GetResetReason(), will it return MCU_POWER_ON_RESET?
2. If MCU_POWER_ON_RESET is returned, does the SW32K3_RTD_4.4_2.0.1 provide a method to identify which voltage source anomaly caused the reset?

Tags (3)
0 Kudos
Reply
1 Solution
396 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Pusoy,

1. Yes, any of the below LVR sources set DES[F_POR] which is read is MCU_POWER_ON_RESET in Mcu_GetResetReason().

danielmartynek_0-1705052266246.png

 

2. There is no RTD API that would return PMC_LVSC.

 

Regards,

Daniel

View solution in original post

0 Kudos
Reply
1 Reply
397 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Pusoy,

1. Yes, any of the below LVR sources set DES[F_POR] which is read is MCU_POWER_ON_RESET in Mcu_GetResetReason().

danielmartynek_0-1705052266246.png

 

2. There is no RTD API that would return PMC_LVSC.

 

Regards,

Daniel

0 Kudos
Reply