在用AURIX Development Studio 调试TC397的时候,进入了IfxCpu_Trap_busError。
void IfxGtm_Tom_Ch_setClockSource(Ifx_GTM_TOM *tom, IfxGtm_Tom_Ch channel, IfxGtm_Tom_Ch_ClkSrc clock)
{
Ifx_GTM_TOM_CH *tomCh = IfxGtm_Tom_Ch_getChannelPointer(tom, channel);
tomCh->CTRL.B.CLK_SRC_SR = clock;
}
void IfxCpu_Trap_busError(uint32 tin)
{
volatile IfxCpu_Trap trapWatch;
trapWatch = IfxCpu_Trap_extractTrapInfo(IfxCpu_Trap_Class_bus, tin);
IFX_CFG_CPU_TRAP_BE_HOOK(trapWatch);
IFX_CFG_CPU_TRAP_DEBUG;
__asm(“rslcx”); /* Restore lower context before returning. lower context was stored in the trap vector */
__asm(“rfe”);
}
软件卡死,无法运行
trapWatch struct { tAddr = 2147491494; tId = 2 ‘’; tClass = 4 ‘’; tCpu = 0 ‘\0’; }
tAddr unsigned int 0x80001ea6 (Hex)
tId unsigned char 0x02 (Hex)
tClass unsigned char 0x04 (Hex)
tCpu unsigned char 0x00 (Hex)
......