Part Number: TDA2P-ACD
Tool/software: TI-RTOS
Hello,
I am working with TDA2Px based custom board and PSDK3.5
I am facing issues in booting my application (usecase) in QSPI boot mode. The application works fine in SD boot mode but when I flashed the MLO and AppImage_BE in QSPI flash, the booting halts just before the usecase menu appears on the console. I tried to find out the issue and found that one of the links used in my usecase is causing this QSPI boot issue.
I have created a CANLink which uses mcan driver API's available in Vision SDK "ti_components\drivers\pdk_01_10_01_06\packages\ti\csl\src\ip\mcan\V0\priv\mcan.c". The calls to following low level functions are causing the QSPI boot issue,
#if 0
/* Enable Auto wakeup */
fdoe = MCAN_isFDOpEnable(MCAN_MODULE);
if ((UInt32)TRUE != fdoe)
{
configStatus = STW_EFAIL;
}
/* wait for memory initialization to happen */
while (FALSE == MCAN_isMemInitDone(MCAN_MODULE))
{}
/* Put MCAN in SW initialization mode */
MCAN_setOpMode(MCAN_MODULE, MCAN_OPERATION_MODE_SW_INIT);
while (MCAN_OPERATION_MODE_SW_INIT != MCAN_getOpMode(MCAN_MODULE))
{}
/* Initialize MCAN module */
MCAN_init(MCAN_MODULE, mcan_initParams);
/* Configure MCAN module */
MCAN_config(MCAN_MODULE, &configParams);
/* Configure Bit timings */
MCAN_setBitTime(MCAN_MODULE, &bitTimes);
/* Set Extended ID Mask */
MCAN_setExtIDAndMask(MCAN_MODULE, MCAN_EXT_ID_AND_MASK);
/* Configure Message RAM Sections */
MCAN_msgRAMConfig(MCAN_MODULE, mcan_msgRAMConfigParams);
/* Configure Standard ID filter element */
MCAN_addStdMsgIDFilter(MCAN_MODULE, 0U, mcan_stdFiltelem);
/* Configure Extended ID filter element */
MCAN_addExtMsgIDFilter(MCAN_MODULE, 0U, mcan_extIdFiltelem);
/* Take MCAN out of the SW initialization mode */
MCAN_setOpMode(MCAN_MODULE, MCAN_OPERATION_MODE_NORMAL);
while (MCAN_OPERATION_MODE_NORMAL != MCAN_getOpMode(MCAN_MODULE))
{}
#endif
If I comment the calls to these functions, the QSPI boot works and my usecase also executes but the CAN module does not work.
I am not able to get find out the exact cause of this issue. Can anyone please point out what could be the issue in QSPI boot when MCAN driver API's are called.
Regards,
Abhay