Continuous Reset after Software Reset when using HSE FW on S32K311

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

Continuous Reset after Software Reset when using HSE FW on S32K311

590 Views
NewbieNerd
Contributor IV

Hello S32K3 Teams.
I hope you are doing well.
I’m currently facing the issue described below and would appreciate your guidance on how to handle it properly.


Platform

- MCU: S32K311
- HSE FW: Full-Memory variant installed using the HSE Demo
- App: my original application reflashed after installing HSE FW

Symptom

- On power-up (or after reconnecting the battery), the app boots and runs normally.
- When my app calls a software reset, the MCU enters a continuous reset loop.
- If I disconnect the battery and reconnect it, the device starts and works normally again until I call SW reset.

Questions

- When HSE FW (Full-Memory) is installed, do I need to explicitly reset/terminate HSE or perform any HSE-specific shutdown/hand-off before triggering a software reset?
- If yes, what is the correct API sequence?
- Example: is there an HSE service (via MU) that should be called to gracefully stop/soft-reset HSE, or to clear pending services, watchdog, or FCCU-related conditions before SW reset?
- Could you please point me to the official HSE API names and usage examples I should call from my main application (non-AUTOSAR project)?
- Are there any known causes for repeated resets after SW reset with HSE installed on S32K3 devices (e.g., required SRAM reservation, MU/HSE status that persists across resets, watchdog, FCCU, or boot flow interactions)? want to see (e.g., MC_RGM FES/DES, MU FSR/GPR, etc.), please advise.

Documentation request

- Please share or grant access to the HSE Firmware Reference Manual and the HSE Service API Reference Manual for S32K3/S32K311.
- If there’s an app note or training slide that describes the reset/boot interplay with HSE and any required SRAM reservation or API calls prior to reset, I’d appreciate links.

Thanks in advance for your guidance!

Best regards,

Tags (3)
0 Kudos
Reply
1 Reply

558 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

According to your description it is not clear whether you are doing some HSE related application or it happens only because of presence of HSE FW itself. If not, then the difference may be different memory layout and different booting time.

Question is what is causing repeated reset, whether it is just SW reset itself (after reset and boot, code execution reach the same point resetting it again) – in such case for such experiments it is suitable at least to condition SW reset with something. Or whether it is different cause, for instance watchdog - some operation of HSE takes up to 1s, for instance AB_SWAP, what may prolong boot time.

I am not aware of specific requirement for graceful termination of HSE module. Asynchronous reset may always happen externally and it should not affect MCU behavior significantly.

At first you should investigate  RGM_FES/DES registers to understand periodic reset reason.

The HSE-B FW RM is a secure file, so following procedure is needed to follow unless you have already done it before:

https://www.nxp.com/docs/en/user-guide/nxp-secure-access-rights-registration.pdf

For better understanding you may also see following link:

https://www.nxp.com/support/support/secure-access-rights:SEC-ACCESS

HSE Service API Reference Manual is included in installation folder of particular HSE FW, for instance as follows:

c:\NXP\HSE_FW_S32K312_0_2_40_0\docs\S32K312_HSE_Service_API_Reference_Manual.pdf

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2190453%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EContinuous%20Reset%20after%20Software%20Reset%20when%20using%20HSE%20FW%20on%20S32K311%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2190453%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20S32K3%20Teams.%3CBR%20%2F%3EI%20hope%20you%20are%20doing%20well.%3CBR%20%2F%3EI%E2%80%99m%20currently%20facing%20the%20issue%20described%20below%20and%20would%20appreciate%20your%20guidance%20on%20how%20to%20handle%20it%20properly.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EPlatform%3C%2FP%3E%3CP%3E-%20MCU%3A%20S32K311%3CBR%20%2F%3E-%20HSE%20FW%3A%20Full-Memory%20variant%20installed%20using%20the%20HSE%20Demo%3CBR%20%2F%3E-%20App%3A%20my%20original%20application%20reflashed%20after%20installing%20HSE%20FW%3C%2FP%3E%3CP%3ESymptom%3C%2FP%3E%3CP%3E-%20On%20power-up%20(or%20after%20reconnecting%20the%20battery)%2C%20the%20app%20boots%20and%20runs%20normally.%3CBR%20%2F%3E-%20When%20my%20app%20calls%20a%20software%20reset%2C%20the%20MCU%20enters%20a%20continuous%20reset%20loop.%3CBR%20%2F%3E-%20If%20I%20disconnect%20the%20battery%20and%20reconnect%20it%2C%20the%20device%20starts%20and%20works%20normally%20again%20until%20I%20call%20SW%20reset.%3C%2FP%3E%3CP%3EQuestions%3C%2FP%3E%3CP%3E-%20When%20HSE%20FW%20(Full-Memory)%20is%20installed%2C%20do%20I%20need%20to%20explicitly%20reset%2Fterminate%20HSE%20or%20perform%20any%20HSE-specific%20shutdown%2Fhand-off%20before%20triggering%20a%20software%20reset%3F%3CBR%20%2F%3E-%20If%20yes%2C%20what%20is%20the%20correct%20API%20sequence%3F%3CBR%20%2F%3E-%20Example%3A%20is%20there%20an%20HSE%20service%20(via%20MU)%20that%20should%20be%20called%20to%20gracefully%20stop%2Fsoft-reset%20HSE%2C%20or%20to%20clear%20pending%20services%2C%20watchdog%2C%20or%20FCCU-related%20conditions%20before%20SW%20reset%3F%3CBR%20%2F%3E-%20Could%20you%20please%20point%20me%20to%20the%20official%20HSE%20API%20names%20and%20usage%20examples%20I%20should%20call%20from%20my%20main%20application%20(non-AUTOSAR%20project)%3F%3CBR%20%2F%3E-%20Are%20there%20any%20known%20causes%20for%20repeated%20resets%20after%20SW%20reset%20with%20HSE%20installed%20on%20S32K3%20devices%20(e.g.%2C%20required%20SRAM%20reservation%2C%20MU%2FHSE%20status%20that%20persists%20across%20resets%2C%20watchdog%2C%20FCCU%2C%20or%20boot%20flow%20interactions)%3F%20want%20to%20see%20(e.g.%2C%20MC_RGM%20FES%2FDES%2C%20MU%20FSR%2FGPR%2C%20etc.)%2C%20please%20advise.%3C%2FP%3E%3CP%3EDocumentation%20request%3C%2FP%3E%3CP%3E-%20Please%20share%20or%20grant%20access%20to%20the%20HSE%20Firmware%20Reference%20Manual%26nbsp%3Band%20the%20HSE%20Service%20API%20Reference%20Manual%20for%20S32K3%2FS32K311.%3CBR%20%2F%3E-%20If%20there%E2%80%99s%20an%20app%20note%20or%20training%20slide%20that%20describes%20the%20reset%2Fboot%20interplay%20with%20HSE%20and%20any%20required%20SRAM%20reservation%20or%20API%20calls%20prior%20to%20reset%2C%20I%E2%80%99d%20appreciate%20links.%3C%2FP%3E%3CP%3EThanks%20in%20advance%20for%20your%20guidance!%3C%2FP%3E%3CP%3EBest%20regards%2C%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2190631%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Continuous%20Reset%20after%20Software%20Reset%20when%20using%20HSE%20FW%20on%20S32K311%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2190631%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EAccording%20to%20your%20description%20it%20is%20not%20clear%20whether%20you%20are%20doing%20some%20HSE%20related%20application%20or%20it%20happens%20only%20because%20of%20presence%20of%20HSE%20FW%20itself.%20If%20not%2C%20then%20the%20difference%20may%20be%20different%20memory%20layout%20and%20different%20booting%20time.%3C%2FP%3E%0A%3CP%3EQuestion%20is%20what%20is%20causing%20repeated%20reset%2C%20whether%20it%20is%20just%20SW%20reset%20itself%20(after%20reset%20and%20boot%2C%20code%20execution%20reach%20the%20same%20point%20resetting%20it%20again)%20%E2%80%93%20in%20such%20case%20for%20such%20experiments%20it%20is%20suitable%20at%20least%20to%20%3CSPAN%3Econdition%20SW%20reset%20with%20something%3C%2FSPAN%3E.%20Or%20whether%20it%20is%20different%20cause%2C%20for%20instance%20watchdog%20-%20some%20operation%20of%20HSE%20takes%20up%20to%201s%2C%20for%20instance%20AB_SWAP%2C%20what%20may%20prolong%20boot%20time.%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EI%20am%20not%20aware%20of%20specific%20requirement%20for%20graceful%20termination%20of%20HSE%20module.%20Asynchronous%20reset%20may%20always%20happen%20externally%20and%20it%20should%20not%20affect%20MCU%20behavior%20significantly.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EAt%20first%20you%20should%20investigate%20%26nbsp%3BRGM_FES%2FDES%20registers%20to%20understand%20periodic%20reset%20reason.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThe%20HSE-B%20FW%20RM%20is%20a%20secure%20file%2C%20so%20following%20procedure%20is%20needed%20to%20follow%20unless%20you%20have%20already%20done%20it%20before%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fuser-guide%2Fnxp-secure-access-rights-registration.pdf%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fuser-guide%2Fnxp-secure-access-rights-registration.pdf%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EFor%20better%20understanding%20you%20may%20also%20see%20following%20link%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fsupport%2Fsupport%2Fsecure-access-rights%3ASEC-ACCESS%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.nxp.com%2Fsupport%2Fsupport%2Fsecure-access-rights%3ASEC-ACCESS%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EHSE%20Service%20API%20Reference%20Manual%20is%20included%20in%20installation%20folder%20of%20particular%20HSE%20FW%2C%20for%20instance%20as%20follows%3A%3C%2FP%3E%0A%3CP%3Ec%3A%5CNXP%5CHSE_FW_S32K312_0_2_40_0%5Cdocs%5CS32K312_HSE_Service_API_Reference_Manual.pdf%3C%2FP%3E%3C%2FLINGO-BODY%3E