S32K3-HSE

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

S32K3-HSE

880 Views
ALXY_WANG1
Contributor II

当前我们使用S32K344设计VCU控制器,该项目首次使用HSE模块满足信息安全要求,使用的RTD为1.0.0,HSE为0.2.1.0版本。目前项目已进入小批量验证阶段,当前出现一个问题:偶发性出现上电后VCU无法启动,台架测试发现SBC供电均正常,REST引脚一直出现周期性的复位信号,周期约为200ms,拉低时长约8ms,目前怀疑大概率为上电后软件卡在HSE内核,应用核未运行起来,导致的喂狗超时复位,针对该现象是否有排查方式及相关验证方法

0 Kudos
Reply
2 Replies

740 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @ALXY_WANG1 

The RTD and HSE versions are quite outdated, I would consider to upgrade the software. Latest RTD version is currently 7.0.0 and HSE firmware version is currently 0.2.55.0.

Is it possible to attach your debugger to the MCU? If so, could you read FES and DES registers in MC_RGM module? These registers contain the status of functional and destructive reset sources, so it should help to find the source of resets.

What kind of debugger do you use? In case of Trace32, I would try to use simple script like this to attach to a running target and stop the execution in order to see the current state or where it hangs:

sys.attach

break

To check if it is related to HSE, please provide content of HSE GPR register at 0x4039_C028 and also FSR and GSR registers from MU_0.

Regards,

Lukas

0 Kudos
Reply

559 Views
ALXY_WANG1
Contributor II

使用的调试器是PE,接上调试器后控制器就恢复正常了,可能是接上调试器让SBC处于调试模式,当控制器启动超过256ms后不会反复复位,然后软件就正常运行

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2327536%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3ES32K3-HSE%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2327536%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3E%3CP%3ECurrently%20we%20use%20S32K344%20to%20design%20the%20VCU%20controller%2C%20this%20project%20is%20the%20first%20time%20to%20use%20the%20HSE%20module%20to%20meet%20the%20information%20security%20requirements%2C%20the%20RTD%20used%20is%201.0.0%2C%20HSE%20is%20version%200.2.1.0.%20At%20present%2C%20the%20project%20has%20entered%20the%20small%20batch%20verification%20stage%2C%20there%20is%20currently%20a%20problem%3A%20occasional%20power-up%20VCU%20can%20not%20start%2C%20bench%20test%20found%20that%20the%20SBC%20power%20supply%20are%20normal%2C%20the%20REST%20pin%20has%20been%20appearing%20periodic%20reset%20signals%2C%20the%20cycle%20of%20about%20200ms%2C%20pull%20down%20the%20length%20of%20about%208ms%2C%20currently%20suspected%20of%20probability%20of%20powering%20up%20the%20software%20is%20stuck%20in%20the%20HSE%20kernel%2C%20the%20application%20of%20the%20core%20is%20not%20running%2C%20resulting%20in%20the%20feeding%20of%20the%20dog%20timeout!%20reset%2C%20for%20the%20phenomenon%20whether%20there%20is%20a%20way%20to%20troubleshoot%20and%20related%20verification%20methods%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2328988%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K3-HSE%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2328988%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F233082%22%20target%3D%22_blank%22%3E%40ALXY_WANG1%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20RTD%20and%20HSE%20versions%20are%20quite%20outdated%2C%20I%20would%20consider%20to%20upgrade%20the%20software.%20Latest%20RTD%20version%20is%20currently%207.0.0%20and%20HSE%20firmware%20version%20is%20currently%200.2.55.0.%3C%2FP%3E%0A%3CP%3EIs%20it%20possible%20to%20attach%20your%20debugger%20to%20the%20MCU%3F%20If%20so%2C%20could%20you%20read%20FES%20and%20DES%20registers%20in%20MC_RGM%20module%3F%20These%20registers%20contain%20the%20status%20of%20functional%20and%20destructive%20reset%20sources%2C%20so%20it%20should%20help%20to%20find%20the%20source%20of%20resets.%3C%2FP%3E%0A%3CP%3EWhat%20kind%20of%20debugger%20do%20you%20use%3F%20In%20case%20of%20Trace32%2C%20I%20would%20try%20to%20use%20simple%20script%20like%20this%20to%20attach%20to%20a%20running%20target%20and%20stop%20the%20execution%20in%20order%20to%20see%20the%20current%20state%20or%20where%20it%20hangs%3A%3C%2FP%3E%0A%3CP%3Esys.attach%3C%2FP%3E%0A%3CP%3Ebreak%3C%2FP%3E%0A%3CP%3ETo%20check%20if%20it%20is%20related%20to%20HSE%2C%20please%20provide%20content%20of%20HSE%20GPR%20register%20at%200x4039_C028%20and%20also%20FSR%20and%20GSR%20registers%20from%20MU_0.%3C%2FP%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3ELukas%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2330972%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K3-HSE%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2330972%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3EThe%20debugger%20used%20is%20PE%2C%20after%20connecting%20the%20debugger%20the%20controller%20is%20back%20to%20normal%2C%20probably%20because%20connecting%20the%20debugger%20puts%20the%20SBC%20in%20debugging%20mode%2C%20and%20when%20the%20controller%20starts%20up%20more%20than%20256ms%20it%20doesn't%20reset%20repeatedly%2C%20and%20then%20the%20software%20runs%20normally%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2333147%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32K3-HSE%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2333147%22%20slang%3D%22zh-CN%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3EThe%20debugger%20used%20is%20PE%2C%20after%20connecting%20the%20debugger%20the%20controller%20is%20back%20to%20normal%2C%20probably%20because%20connecting%20the%20debugger%20puts%20the%20SBC%20in%20debugging%20mode%2C%20and%20when%20the%20controller%20starts%20up%20more%20than%20256ms%20it%20doesn't%20reset%20repeatedly%2C%20and%20then%20the%20software%20runs%20normally%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E