T32로 Aurix의 SafeTpack 리셋 Reason 테스트 방법

Posted at 2024/05/09 20:56 // in Programming // by Daniel

Warm reset

- CPU-> In Target Reset 실행

Cold Reset

Flash SW
Put a break point in “HtxLbist_Test” function in
HtxLbist.c File.

Apply Breakpoint at “HtxFwCheck_Test” function in
HtxFwCheck.c” file.

Apply following changes to “LBIST (LBIST Support">SCU” )
LBISTREQRED → Request
LBISTRES → Restart
LBISTREQ → Request

System reset

Enable the Mcu_PerformReset() function in the code below and Flash.

Enable the Watchdog using T32 : SYStem.Option.WDTSUS ON.
Apply Break point BEFORE below function in HtxFwCheck_Test function-

Change the following registers before Reset reason function call in FWCheck.
SCU_RSTCON : SW = System reset
SCU_RSTCON : SMU = System reset

Run using Go.

Application Reset

Enable the Mcu_PerformReset() function in the code below and Flash.

Enable the Watchdog using T32 : SYStem.Option.WDTSUS ON.
WdgM_Tester.cmm . Modify the highlighted testval as 1

Application reset will be triggered after ~2sec.

Standby Exit Mode

Enable the following 6 Registers in the PMS(Power Management System, Standby and Reset Control Registers.

Perform In target reset once and apply breakpoints to respective function of SafeTPack and then perform a second reset.

Note : Revert these manual changes in PMS register explicitly for the normal operation .

크리에이티브 커먼즈 라이센스
Creative Commons License

이 글에는 트랙백을 보낼 수 없습니다