HSE安装后,SWAP切面成功后 运行10s左右程序会发生 HSE_SWT_RST ,是什么原因

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

HSE安装后,SWAP切面成功后 运行10s左右程序会发生 HSE_SWT_RST ,是什么原因

253 Views
1446311191
Contributor I

After HSE is installed and the SWAP section is successfully executed, the program will encounter HSE_SWT_RST after running for about 10 seconds. What is the reason?

 

S32K312

 

HSE clock 60M

Tags (3)
0 Kudos
Reply
1 Reply

227 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

1. Please tell me the RTD version and HSE version and sBAF version (0x4039C020). We recommend updating to the latest versions: HSE_FW_S32K312_0_2_55_0_D2502.exe and SBAF_S32K312_0_0_15_0.exe.

2. This is a known behavior of the HSE, typically caused by an incorrect clock configuration. Please refer to the following community post: S32K312 HSE_SWT_RST issue. It contains helpful information that should assist in solving your issue.

3. Please check the HSE_STATUS_INIT_OK status before MCU_Init/Mcu_InitClock. Otherwise, it may trigger issue.

#define HSE_STATUS_INIT_OK_BIT                                  (1U << 24U)

while ( FALSE == HSE_CheckStatus(HSE_STATUS_INIT_OK) )
or baremetal codes:
while ( FALSE == ((*(uint32_t *)(0x4038C104)) & HSE_STATUS_INIT_OK_BIT) ) 
{
    ;
}
/* MU0 Base address:0x4038C000, FSR offset address: 0x104, 
Bit24 in FSR:HSE_STATUS_INIT_OK */

4. Please check if the clock configuration matches Table 158. Option B - Reduced Speed mode (CORE_CLK @ 120 MHz) of S32K3XXRM(Rev11).


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "ACCEPT AS SOLUTION" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2150460%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHSE%E5%AE%89%E8%A3%85%E5%90%8E%EF%BC%8CSWAP%E5%88%87%E9%9D%A2%E6%88%90%E5%8A%9F%E5%90%8E%20%E8%BF%90%E8%A1%8C10s%E5%B7%A6%E5%8F%B3%E7%A8%8B%E5%BA%8F%E4%BC%9A%E5%8F%91%E7%94%9F%20HSE_SWT_RST%20%EF%BC%8C%E6%98%AF%E4%BB%80%E4%B9%88%E5%8E%9F%E5%9B%A0%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2150460%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EAfter%20HSE%20is%20installed%20and%20the%20SWAP%20section%20is%20successfully%20executed%2C%20the%20program%20will%20encounter%20HSE_SWT_RST%20after%20running%20for%20about%2010%20seconds.%20What%20is%20the%20reason%3F%3C%2FP%3E%3CBR%20%2F%3E%3CP%3ES32K312%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EHSE%20clock%2060M%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2151278%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20HSE%E5%AE%89%E8%A3%85%E5%90%8E%EF%BC%8CSWAP%E5%88%87%E9%9D%A2%E6%88%90%E5%8A%9F%E5%90%8E%20%E8%BF%90%E8%A1%8C10s%E5%B7%A6%E5%8F%B3%E7%A8%8B%E5%BA%8F%E4%BC%9A%E5%8F%91%E7%94%9F%20HSE_SWT_RST%20%EF%BC%8C%E6%98%AF%E4%BB%80%E4%B9%88%E5%8E%9F%E5%9B%A0%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2151278%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%3C%2FP%3E%0A%3CP%3E1.%20Please%20tell%20me%20the%20RTD%20version%20and%20HSE%20version%20and%20sBAF%20version%20(0x4039C020).%20We%20recommend%20updating%20to%20the%20latest%20versions%3A%20HSE_FW_S32K312_0_2_55_0_D2502.exe%20and%20SBAF_S32K312_0_0_15_0.exe.%3C%2FP%3E%0A%3CP%3E2.%26nbsp%3B%3CSPAN%3EThis%20is%20a%20known%20behavior%20of%20the%20HSE%2C%20typically%20caused%20by%20an%20incorrect%20clock%20configuration.%20Please%20refer%20to%20the%20following%20community%20post%3A%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32K%2FS32K312-HSE-SWT-RST-issue%2Ftd-p%2F1889035%22%20target%3D%22_blank%22%20shape%3D%22rect%22%3ES32K312%20HSE_SWT_RST%20issue%3C%2FA%3E%3CSPAN%3E.%20It%20contains%20helpful%20information%20that%20should%20assist%20in%20solving%20your%20issue.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E3.%20Please%26nbsp%3Bcheck%20the%20HSE_STATUS_INIT_OK%20status%20before%20MCU_Init%2FMcu_InitClock.%20Otherwise%2C%20it%20may%20trigger%20issue.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%23define%20HSE_STATUS_INIT_OK_BIT%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20(1U%20%26lt%3B%26lt%3B%2024U)%0A%0Awhile%20(%20FALSE%20%3D%3D%20HSE_CheckStatus(HSE_STATUS_INIT_OK)%20)%0Aor%20baremetal%20codes%3A%0Awhile%20(%20FALSE%20%3D%3D%20((*(uint32_t%20*)(0x4038C104))%20%26amp%3B%20HSE_STATUS_INIT_OK_BIT)%20)%20%0A%7B%0A%20%20%20%20%3B%0A%7D%0A%2F*%20MU0%20Base%20address%3A0x4038C000%2C%20FSR%20offset%20address%3A%200x104%2C%20%0ABit24%20in%20FSR%3AHSE_STATUS_INIT_OK%20*%2F%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E4.%20Please%20check%20if%20the%20clock%20configuration%20matches%26nbsp%3B%3CSTRONG%3ETable%20158.%20Option%20B%20-%20Reduced%20Speed%20mode%20(CORE_CLK%20%40%20120%20MHz)%3C%2FSTRONG%3E%20of%20S32K3XXRM(Rev11).%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3ERobin%3CBR%20%2F%3E-------------------------------------------------------------------------------%3CBR%20%2F%3ENote%3A%3CBR%20%2F%3E-%20If%20this%20post%20answers%20your%20question%2C%20please%20click%20the%20%22ACCEPT%20AS%20SOLUTION%22%20button.%20Thank%20you!%3C%2FP%3E%0A%3CP%3E-%20We%20are%20following%20threads%20for%207%20weeks%20after%20the%20last%20post%2C%20later%20replies%20are%20ignored%3CBR%20%2F%3EPlease%20open%20a%20new%20thread%20and%20refer%20to%20the%20closed%20one%2C%20if%20you%20have%20a%20related%20question%20at%20a%20later%20point%20in%20time.%3CBR%20%2F%3E-------------------------------------------------------------------------------%3C%2FP%3E%3C%2FLINGO-BODY%3E