Cold/warm PowerUp Detection without MC_RGM DES/FES registers

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Cold/warm PowerUp Detection without MC_RGM DES/FES registers

51 次查看
Chris_Cs
Contributor I

I have a S32K312 (with SCB FS26) software, which should detect a cold/warm powerup. Due to HW layouts, the DES /FES registers cannot be used. Therefore, a memory mapped variable in the standby ram is used, which contains a magic number in case of warm powerups and undefined values in case of cold powerups. To preserve the magic number, this memory area isn’t initialized during startup (otherwise the information would be lost). But a read access on this variable leads to a HardFault.


What is the official nxp way to detect cold/hot powerups, if DES/FES cannot be used?


What needs to be done to handle the hardfault in that way, that there is a safe return to the function, which reads the uninitialized variable, and continue code execution?

0 项奖励
回复
2 回复数

3 次查看
Chris_Cs
Contributor I

Hello Peter, thank you for reply.

A functional reset of the MCU asserts the RSTB signal, which triggers the circuit outside of the MCU. The circuit then holds the reset for a longer time. Unfortunately this causes a destructive reset and DES=1. That's why DES/FES cannot be used.

 

Best regards,
Christopher

0 项奖励
回复

13 次查看
petervlna
NXP TechSupport
NXP TechSupport

Hello,

What is the official nxp way to detect cold/hot powerups, if DES/FES cannot be used?

Official way is always DES/FES. I cannot imagine the situation where these are not available for analyzes.

Can you explain why DES/FES cannot be used? Are the registers inaccessible, cleared before the application can read them, or are you trying to determine something different than the reset source?

Best regards,

Peter

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2400042%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E6%97%A0%E9%9C%80%20MC_RGM%20DES%2FFES%20%E5%AF%84%E5%AD%98%E5%99%A8%E5%8D%B3%E5%8F%AF%E6%A3%80%E6%B5%8B%E5%86%B7%E5%90%AF%E5%8A%A8%2F%E7%83%AD%E5%90%AF%E5%8A%A8%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2400042%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%88%91%E6%9C%89%E4%B8%80%E5%8F%B0%20S32K312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D%86%E6%98%AF%EF%BC%8C%E5%AF%B9%E8%AF%A5%E5%8F%98%E9%87%8F%E8%BF%9B%E8%A1%8C%E8%AF%BB%E5%8F%96%E6%93%8D%E4%BD%9C%E4%BC%9A%E5%AF%BC%E8%87%B4%20HardFault%20%E9%94%99%E8%AF%AF%E3%80%82%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%E5%A6%82%E6%9E%9C%E4%B8%8D%E8%83%BD%E4%BD%BF%E7%94%A8%20DES%2FFES%EF%BC%8CNXP%20%E5%AE%98%E6%96%B9%E6%A3%80%E6%B5%8B%E5%86%B7%E5%90%AF%E5%8A%A8%2F%E7%83%AD%E5%90%AF%E5%8A%A8%E7%9A%84%E6%96%B9%E6%B3%95%E6%98%AF%E4%BB%80%E4%B9%88%EF%BC%9F%3C%2FP%3E%3CP%3E%3CBR%20%2F%3E%E4%B8%BA%E4%BA%86%E5%A4%84%E7%90%86%E8%BF%99%E7%A7%8D%E7%A1%AC%E6%95%85%E9%9A%9C%EF%BC%8C%E9%9C%80%E8%A6%81%E5%81%9A%E4%BA%9B%E4%BB%80%E4%B9%88%E6%89%8D%E8%83%BD%E5%AE%89%E5%85%A8%E5%9C%B0%E8%BF%94%E5%9B%9E%E5%88%B0%E8%AF%BB%E5%8F%96%E6%9C%AA%E5%88%9D%E5%A7%8B%E5%8C%96%E5%8F%98%E9%87%8F%E7%9A%84%E5%87%BD%E6%95%B0%EF%BC%8C%E5%B9%B6%E7%BB%A7%E7%BB%AD%E6%89%A7%E8%A1%8C%E4%BB%A3%E7%A0%81%EF%BC%9F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2400374%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Cold%2Fwarm%20PowerUp%20Detection%20without%20MC_RGM%20DES%2FFES%20registers%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2400374%22%20slang%3D%22en-US%22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