HseFwInstall

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

HseFwInstall

116 Views
ZQinXXX
Contributor I

我下载了官方的HSE安装示例,运行后发现HSE没有安装成功,程序会一直卡在while ( FALSE == HSE_CheckStatus(HSE_STATUS_INIT_OK) );我现在没有什么方向,求帮助,如何才能成功安装HSE。附件是官方的例子,我下载后修改了.project为S32K312,屏蔽了链接脚本中的baf文件,其他没有修改了。

0 Kudos
Reply
1 Reply

69 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

我建议你通过代理商FAE获取最新的s32k3_hse_lib_rtd400hf01_20260427.7z 再测试一次。新版本修复了一些老版本发现的bug.

根据SBAF_S32K312_0_0_15_0_ReleaseNotes.pdf的“2.2 Version Number Details”章节以及你截图显示 0x4039C020 - - 0x4039C027 处的值是010D0000 000F0005。看起来曾经安装过 AB_SWAP 固件? 如果安装FULL_MEM 的话,0x4039C020 - - 0x4039C027 处的值应该是 000D0000 000F0006

但我在你附件工程里看到的是 S32K312_0_2_40_0_HSE_FULL_MEM。 我有些困惑你到底需要安装FULL_MEM还是AB_SWAP的HSE FW? 请检查你为HseLib_HseFwInstall_Rtd400工程选择的哪种Build选项。

请注意无法从AB_SWAP退回FULL_MEM。

你提供的截图里看出 0x4039C028=0xC0 bit0=0意味着SBAF没有将HSE FW启动起来。看起来HSE FW固件被破坏了。恐怕需要参考MU Restore FW_EN.pdf 使用MU恢复HSE FW。

另外请参考s32k3_hse_lib_rtd400hf01_20260427\Doc\S32K3_HSE_LIB_UserGuide.pdf手册。我没理解"屏蔽了链接脚本中的baf文件" ,请问是指该文档 19/51页 "3.3 .3 Build configuration - Settings of Linker"章节的 s32k3xx_flash_full_mem_0_2_40_0.ld ? 安装SBAF_S32K312_0_0_15_0.exe后路径是 C:\NXP\SBAF_S32K312_0_0_15_0\bin\s32k312_Secure_Baf_0.13.0_0.15.0.6_pb230804.bin.pink 不用屏蔽该文件。

Best Regards,
Robin

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2416552%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3EHseFwInstall%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2416552%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20downloaded%20the%20official%20HSE%20installation%20example%2C%20but%20after%20running%20it%2C%20I%20found%20that%20HSE%20failed%20to%20install.%20The%20program%20gets%20stuck%20in%20the%20%60while%20(%20FALSE%20%3D%3D%20HSE_CheckStatus(HSE_STATUS_INIT_OK)%20)%3B%60%20loop.%20I'm%20at%20a%20loss%20and%20need%20help%20on%20how%20to%20successfully%20install%20HSE.%20The%20attached%20file%20is%20the%20official%20example%3B%20I%20downloaded%20it%2C%20changed%20the%20%60.project%60%20file%20to%20%60S32K312%60%2C%20and%20disabled%20the%20%60baf%60%20file%20in%20the%20linker%20script.%20I%20didn't%20modify%20anything%20else.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2416655%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20HseFwInstall%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2416655%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%3C%2FP%3E%0A%3CP%3EI%20suggest%20you%20obtain%20the%20latest%20%3CSTRONG%3Es32k3_hse_lib_rtd400hf01_20260427.7z%3C%2FSTRONG%3E%20from%20the%20distributor%20FAE%20and%20test%20it%20again.%20The%20new%20version%20fixes%20some%20bugs%20found%20in%20older%20versions.%3C%2FP%3E%0A%3CP%3EAccording%20to%20section%20%22%20%3CSTRONG%3E2.2%20Version%20Number%20Details%3C%2FSTRONG%3E%20%22%20of%20%3CSTRONG%3ESBAF_S32K312_0_0_15_0_ReleaseNotes.pdf%3C%2FSTRONG%3E%20and%20the%20value%20shown%20in%20your%20screenshot%20at%200x4039C020%20-%200x4039C027%2C%20it%20appears%20that%20AB_SWAP%20firmware%20was%20previously%20installed%3F%20If%20FULL_MEM%20was%20installed%2C%20the%20value%20at%200x4039C020%20-%200x4039C027%20should%20be%20000D0000%20000F0006.%3C%2FP%3E%0A%3CP%3EHowever%2C%20what%20I%20see%20in%20your%20attached%20project%20is%20S32K312_0_2_40_0_HSE_FULL_MEM.%20I'm%20a%20bit%20confused%20about%20whether%20you%20need%20to%20install%20FULL_MEM%20or%20the%20HSE%20FW%20for%20AB_SWAP%3F%20Please%20check%20which%20build%20option%20you%20selected%20for%20the%20HseLib_HseFwInstall_Rtd400%20project.%3C%2FP%3E%0A%3CP%3EPlease%20note%20that%20it%20is%20not%20possible%20to%20revert%20from%20AB_SWAP%20to%20FULL_MEM.%3C%2FP%3E%0A%3CP%3EThe%20screenshot%20you%20provided%20shows%200x4039C028%3D0xC0%20bit0%3D0%2C%20meaning%20SBAF%20failed%20to%20boot%20HSE%20FW.%20It%20appears%20the%20HSE%20FW%20firmware%20is%20corrupted.%20You'll%20likely%20need%20to%20refer%20to%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fpwmxy87654%2Fattachments%2Fpwmxy87654%2FS32K%2F19042%2F1%2FMU%2520Restore%2520FW_EN.pdf%22%20target%3D%22_blank%22%3EMU%20Restore%20FW_EN.pdf%3C%2FA%3E%20to%20restore%20HSE%20FW%20using%20MU.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3EPlease%20also%20refer%20to%20the%20manual%20s32k3_hse_lib_rtd400hf01_20260427%5CDoc%5C%20%3CSTRONG%3ES32K3_HSE_LIB_UserGuide.pdf%3C%2FSTRONG%3E%20.%20I%20didn't%20understand%20%22%20%3CSPAN%3Eblocked%20the%20baf%20file%20in%20the%20linker%20script%3C%2FSPAN%3E%20%22.%20Does%20it%20refer%20to%20page%2019%2F51%2C%20section%203.3%20of%20that%20document%3F%20.3In%20the%20%22Build%20configuration%20-%20Settings%20of%20Linker%22%20section%2C%20what%20about%20the%20file%20s32k3xx_flash_full_mem_0_2_40_0.ld%3F%20After%20installing%20SBAF_S32K312_0_0_15_0.exe%2C%20the%20path%20is%20C%3A%5CNXP%5CSBAF_S32K312_0_0_15_0%5Cbin%5Cs32k312_Secure_Baf_0.13.0_0.15.0.6_pb230804.bin.pink.%20This%20file%20does%20not%20need%20to%20be%20commented%20out.%3C%2FP%3E%0A%3CP%3EBest%20Regards%2C%3CBR%20%2F%3E%20Robin%3C%2FP%3E%3C%2FLINGO-BODY%3E