Why does the FS26 display the error message "WUEVENT = BATTERY FAIL" after booting?

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

Why does the FS26 display the error message "WUEVENT = BATTERY FAIL" after booting?

Jump to solution
691 Views
Allen_863
Contributor III

I am using the S32K3X4EVB-T172 for development.

I noticed that after booting up, if I try to read WUEVENT, a BATTERY FAIL error message appears.

WUEVENT4.png

This appears to be related to VSUPOV_I, VSUPUV6_I, and VSUPUVH_I, but no errors occurred with these error flags.

WUEVENT3.png

WUEVENT1.png

Then I used an ADC to read the VSUP voltage, which was approximately 11.925V, while my input voltage was 12V.

WUEVENT2.png

How can I prevent the "BATTERY FAIL" message from WUEVENT?

Tags (2)
0 Kudos
Reply
1 Solution
676 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Hello Allen,

BATTERY FAIL is reported every time POR or VSUP loss. Please write WU_CLR bit to clear wakeup source after device powerup. Those bits are always there if not cleared after device wakeup.

image001 (4).png

BRs, Tomas

View solution in original post

0 Kudos
Reply
2 Replies
677 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Hello Allen,

BATTERY FAIL is reported every time POR or VSUP loss. Please write WU_CLR bit to clear wakeup source after device powerup. Those bits are always there if not cleared after device wakeup.

image001 (4).png

BRs, Tomas

0 Kudos
Reply
634 Views
Allen_863
Contributor III

In my code, I wrote IF WUEVENT == 15 / BATTERY FAIL, which is then written to WU_CLR to clear the error. This is because if I execute WU_CLR every time I boot up, I won't see other wake-up notifications like GPIO1_I, GPIO2_I, etc.

However, I'm unsure if this is the correct usage.

Tags (2)
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2259808%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EWhy%20does%20the%20FS26%20display%20the%20error%20message%20%22WUEVENT%20%3D%20BATTERY%20FAIL%22%20after%20booting%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2259808%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20am%20using%20the%20S32K3X4EVB-T172%20for%20development.%3C%2FP%3E%3CP%3EI%20noticed%20that%20after%20booting%20up%2C%20if%20I%20try%20to%20read%20WUEVENT%2C%20a%20BATTERY%20FAIL%20error%20message%20appears.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22WUEVENT4.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22WUEVENT4.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F369488i3B0AB588454EF8E5%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22WUEVENT4.png%22%20alt%3D%22WUEVENT4.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThis%20appears%20to%20be%20related%20to%20VSUPOV_I%2C%20VSUPUV6_I%2C%20and%20VSUPUVH_I%2C%20but%20no%20errors%20occurred%20with%20these%20error%20flags.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22WUEVENT3.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22WUEVENT3.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F369489iD5808FC00A4450DD%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22WUEVENT3.png%22%20alt%3D%22WUEVENT3.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22WUEVENT1.png%22%20style%3D%22width%3A%20253px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22WUEVENT1.png%22%20style%3D%22width%3A%20253px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F369490i9C2204DA69E3C6C8%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22WUEVENT1.png%22%20alt%3D%22WUEVENT1.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThen%20I%20used%20an%20ADC%20to%20read%20the%20VSUP%20voltage%2C%20which%20was%20approximately%2011.925V%2C%20while%20my%20input%20voltage%20was%2012V.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22WUEVENT2.png%22%20style%3D%22width%3A%20406px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22WUEVENT2.png%22%20style%3D%22width%3A%20406px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F369491i3F17D09D520D3364%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22WUEVENT2.png%22%20alt%3D%22WUEVENT2.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EHow%20can%20I%20prevent%20the%20%22BATTERY%20FAIL%22%20message%20from%20WUEVENT%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2260623%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Why%20does%20the%20FS26%20display%20the%20error%20message%20%22WUEVENT%20%3D%20BATTERY%20FAIL%22%20after%20booting%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2260623%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EIn%20my%20code%2C%20I%20wrote%20IF%20WUEVENT%20%3D%3D%2015%20%2F%20BATTERY%20FAIL%2C%20which%20is%20then%20written%20to%20WU_CLR%20to%20clear%20the%20error.%20This%20is%20because%20if%20I%20execute%20WU_CLR%20every%20time%20I%20boot%20up%2C%20I%20won't%20see%20other%20wake-up%20notifications%20like%20GPIO1_I%2C%20GPIO2_I%2C%20etc.%3C%2FP%3E%3CP%3EHowever%2C%20I'm%20unsure%20if%20this%20is%20the%20correct%20usage.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2260212%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Why%20does%20the%20FS26%20display%20the%20error%20message%20%22WUEVENT%20%3D%20BATTERY%20FAIL%22%20after%20booting%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2260212%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20Allen%2C%3C%2FP%3E%0A%3CP%3EBATTERY%20FAIL%20is%20reported%20every%20time%20POR%20or%20VSUP%20loss.%20Please%20write%20WU_CLR%20bit%20to%20clear%20wakeup%20source%20after%20device%20powerup.%20Those%20bits%20are%20always%20there%20if%20not%20cleared%20after%20device%20wakeup.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image001%20(4).png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22image001%20(4).png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F369623iA4195AA1B2070629%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image001%20(4).png%22%20alt%3D%22image001%20(4).png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EBRs%2C%20Tomas%3C%2FP%3E%3C%2FLINGO-BODY%3E