How to Trigger a Functional Reset on S32G

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

How to Trigger a Functional Reset on S32G

跳至解决方案
2,067 次查看
Jeff-CF-Huang
Contributor III

Hi Sir,

Could you please let me know how to trigger a FUNCTIONAL_RESET?
If I run reboot, it will be DESTRUCTIVE_RESET.

Best regards,

Jeff Huang

0 项奖励
回复
1 解答
2,042 次查看
carlos_o
NXP TechSupport
NXP TechSupport

Hi @Jeff-CF-Huang,

Thanks for your questions.

Are you trying to run the Functional Reset on M7 core or A53? 

At the reference manual of the S32G2 you could find the following:

carlos_o_0-1742495471349.png

 

[page 1144, S32G2 Reference Manual, Rev. 8, February 2024]

The software functional reset can be trigger at the following register:

carlos_o_1-1742495601485.png

carlos_o_2-1742495637789.png

[page 1311, S32G2 Reference Manual, Rev. 8, February 2024]

 

From the Linux BSP side I found the following at the BSP 42 User Manual:

carlos_o_3-1742495967978.png

 

Let me know if this information helps, otherwise please give a more detail information of your setup and what you want to accomplish. 

在原帖中查看解决方案

0 项奖励
回复
3 回复数
2,043 次查看
carlos_o
NXP TechSupport
NXP TechSupport

Hi @Jeff-CF-Huang,

Thanks for your questions.

Are you trying to run the Functional Reset on M7 core or A53? 

At the reference manual of the S32G2 you could find the following:

carlos_o_0-1742495471349.png

 

[page 1144, S32G2 Reference Manual, Rev. 8, February 2024]

The software functional reset can be trigger at the following register:

carlos_o_1-1742495601485.png

carlos_o_2-1742495637789.png

[page 1311, S32G2 Reference Manual, Rev. 8, February 2024]

 

From the Linux BSP side I found the following at the BSP 42 User Manual:

carlos_o_3-1742495967978.png

 

Let me know if this information helps, otherwise please give a more detail information of your setup and what you want to accomplish. 

0 项奖励
回复
2,032 次查看
Jeff-CF-Huang
Contributor III

Hi Carlos,

We are working with the S32G3 platform using a multi-core (A53 running Linux and M7 running RTOS).
Is there an easier way to trigger a functional reset?
The reboot command mentioned in the user manual triggers a destructive reset, not a functional reset.

Best regards,
Jeff Huang

0 项奖励
回复
1,994 次查看
carlos_o
NXP TechSupport
NXP TechSupport

Hi @Jeff-CF-Huang,

I'm assuming that you refer to the BSP User Manual with the reboot command to run on the Linux terminal. 

Another way to run a functional reset is to request it to the registers I share before. At your M7 core using the RTDs you can request the functional reset with the fuctions at Power_IP or Mcu.

Some functions you can review to run the fuctional reset can be:

Power_Ip_PerformReset (definition at Power_Ip.c)
Power_Ip_MC_RGM_PerformReset (definition at Power_Ip_MC_RGM.c)
Mcu_Ipw_PerformReset (definition at Mcu_Ipw.c)
Mcu_PerformReset (definition at Mcu.c)
 
Those function are from RTD 4.4 4.0.2 the names can vary in the different versions. 
0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2065489%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%A6%82%E4%BD%95%E5%9C%A8S32G%E4%B8%8A%E8%A7%A6%E5%8F%91%E5%8A%9F%E8%83%BD%E9%87%8D%E7%BD%AE%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2065489%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%82%A8%E5%A5%BD%EF%BC%8C%E5%85%88%E7%94%9F%EF%BC%8C%3C%2FP%3E%3CP%3E%E6%82%A8%E8%83%BD%E5%91%8A%E8%AF%89%E6%88%91%E5%A6%82%E4%BD%95%E8%A7%A6%E5%8F%91%3CSPAN%3EFUNCTIONAL_RESET%3C%2FSPAN%3E%E5%90%97%EF%BC%9F%3CBR%20%2F%3E%E5%A6%82%E6%9E%9C%E6%88%91%E8%BF%90%E8%A1%8C%E9%87%8D%E5%90%AF%EF%BC%8C%E5%AE%83%E5%B0%86%E6%98%AF%3CSPAN%3EDESTRUCTIVE_RESET%E3%80%82%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E9%A1%BA%E7%A5%9D%E5%95%86%E7%A5%BA%EF%BC%81%3C%2FP%3E%3CP%3E%E9%BB%84%E6%9D%B0%E5%A4%AB%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2067547%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%A6%82%E4%BD%95%E5%9C%A8S32G%E4%B8%8A%E8%A7%A6%E5%8F%91%E5%8A%9F%E8%83%BD%E9%87%8D%E7%BD%AE%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2067547%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F218967%22%20target%3D%22_blank%22%3E%40Jeff-CF-Huang%3C%2FA%3E%20%EF%BC%8C%3C%2FP%3E%0A%3CP%3E%E6%88%91%E5%81%87%E8%AE%BE%E6%82%A8%E5%8F%82%E8%80%83%20BSP%20%E7%94%A8%E6%88%B7%E6%89%8B%E5%86%8C%E5%B9%B6%E4%BD%BF%E7%94%A8%E9%87%8D%E5%90%AF%E5%91%BD%E4%BB%A4%E5%9C%A8%20Linux%20%E7%BB%88%E7%AB%AF%E4%B8%8A%E8%BF%90%E8%A1%8C%E3%80%82%3C%2FP%3E%0A%3CP%3E%E8%BF%90%E8%A1%8C%E5%8A%9F%E8%83%BD%E9%87%8D%E7%BD%AE%E7%9A%84%E5%8F%A6%E4%B8%80%E7%A7%8D%E6%96%B9%E6%B3%95%E6%98%AF%E5%90%91%E6%88%91%E4%B9%8B%E5%89%8D%E5%85%B1%E4%BA%AB%E7%9A%84%E5%AF%84%E5%AD%98%E5%99%A8%E8%AF%B7%E6%B1%82%E5%AE%83%E3%80%82%E5%9C%A8%E4%BD%BF%E7%94%A8%20RTD%20%E7%9A%84%20M7%20%E6%A0%B8%E5%BF%83%E4%B8%8A%EF%BC%8C%E6%82%A8%E5%8F%AF%E4%BB%A5%E4%BD%BF%E7%94%A8%20Power_IP%20%E6%88%96%20Mcu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80%E4%B8%8D%E5%90%8C%E3%80%82%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2065913%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9A%E5%A6%82%E4%BD%95%E5%9C%A8S32G%E4%B8%8A%E8%A7%A6%E5%8F%91%E5%8A%9F%E8%83%BD%E9%87%8D%E7%BD%AE%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2065913%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E5%97%A8%EF%BC%8C%E5%8D%A1%E6%B4%9B%E6%96%AF%EF%BC%8C%3CBR%20%2F%3E%3CBR%20%2F%3E%E6%88%91%E4%BB%AC%E6%AD%A3%E5%9C%A8%E4%BD%BF%E7%94%A8%E5%A4%9A%E6%A0%B8%EF%BC%88%E8%BF%90%E8%A1%8C%20Linux%20%E7%9A%84%20A53%20%E5%92%8C%E8%BF%90%E8%A1%8C%20RTOS%20%E7%9A%84%20M7%EF%BC%89%E7%9A%84%20S32G3%20%E5%B9%B3%E5%8F%B0%E3%80%82%3CBR%20%2F%3E%E6%9C%89%E6%B2%A1%E6%9C%89%E6%9B%B4%E7%AE%80%E5%8D%95%E7%9A%84%E6%96%B9%E6%B3%95%E6%9D%A5%E8%A7%A6%E5%8F%91%E5%8A%9F%E8%83%BD%E9%87%8D%E7%BD%AE%EF%BC%9F%3CBR%20%2F%3E%E7%94%A8%E6%88%B7%E6%89%8B%E5%86%8C%E4%B8%AD%E6%8F%90%E5%88%B0%E7%9A%84%E9%87%8D%E5%90%AF%E5%91%BD%E4%BB%A4%E4%BC%9A%E8%A7%A6%E5%8F%91%E7%A0%B4%E5%9D%8F%E6%80%A7%E9%87%8D%E7%BD%AE%EF%BC%8C%E8%80%8C%E4%B8%8D%E6%98%AF%E5%8A%9F%E8%83%BD%E6%80%A7%E9%87%8D%E7%BD%AE%E3%80%82%3CBR%20%2F%3E%3CBR%20%2F%3E%E6%AD%A4%E8%87%B4%EF%BC%8C%3CBR%20%2F%3E%E9%BB%84%E6%9D%B0%E5%A4%AB%3C%2FP%3E%3C%2FLINGO-BODY%3E