tricore单片机的ecu reset的软件实现
在illd的库文件中,IfxCpu.h 文件中,
IFX_INLINE void IfxCpu_triggerSwReset(void)
{
MODULE_SCU.SWRSTCON.B.SWRSTREQ = 1;
/* Wait till reset */
while (1)
{}
}
调用形式为,
uint16 global_endinitSfty_pw; global_endinitSfty_pw = IfxScuWdt_getCpuWatchdogPassword(); IfxScuWdt_clearSafetyEndinit(global_endinitSfty_pw); // SCU_RSTCON.B.SW = 1; IfxCpu_triggerSwReset(); // IfxScuWdt_setSafetyEndinit(global_endinitSfty_pw);