Part Number: TDA3XEVM
software is PROCESSOR_SDK_RADAR_03_06_00_00,I want to read data from outside by the DCan1. Reference sample code,
PlatformDcanClkConfig(0);
HW_WR_REG32(DRM_SUSPEND_CTRL_DCAN1, ((DRM_SUSPEND_SRC_IPU1_C0 << 4) | 0x1));
DCANAppInitCfgParams(&appDcanCfgPrms);
DCANAppInitTxParams(&appDcanTxCfgPrms, &appDcanTxPrms, dataLength, dataBuffer, msgIdType, msgIdentifier);
DCANAppInitRxParams(&appDcanRxCfgPrms, expectedMsgIdType, expectedMsgIdentifier);
PlatformDCAN1PrcmEnable();
PlatformDCAN1RXSetPinMux();
PlatformDcanMessageRamInit(0);
PlatformDCAN1SetPinMux();
DCANAppConfigIntr();
retVal = DCANReset(DCAN_APP_INST, timeOut);
static void DCANAppConfigIntr()
{
IRQXBARConnect(SOC_IRQ_DMARQ_CROSSBAR_REGISTERS_BASE, CPU_IPU1, XBAR_INST_IPU1_IRQ_28, DCAN1_IRQ_INT0);
Intc_Init();
Intc_IntEnable(0);
Intc_IntRegister(gIntrNum, (IntrFuncPtr) DCANAppTxIntIsr, (void *) 0);
Intc_IntRegister(gIntrNum, (IntrFuncPtr) DCANAppRxIntIsr, (void *) 0);
Intc_IntPrioritySet(gIntrNum, 1, 0);
Intc_SystemEnable(gIntrNum);
}
In the function Intc_Init(), When setting registers HW_WR_REG32 (SOC_IPU1_C0_INTC_BASE+IPU_M4_NVIC_VECTOR_TABLE_OFFSET, vTableOffset), the system stops running and the initialization of dcan1 fails.
Anyone can tell me how to solve it. thanks.