Tool/software: Code Composer Studio
Hi,
I'm working with AWR1642.
I'm still using mmWave SDK 2.1.0.4 because it's LTS version.
I'm considering applying a new function below in 3.3.0.3 to my project.
// C:\ti\mmwave_sdk_02_01_00_04\packages\ti\drivers\soc\src\soc.c
static void SOC_waitAPLLCalibration(SOC_DriverMCB* ptrSOCDriverMCB)
{
TOPRCMRegs* ptrTopRCMRegs;
/* Get the TOP RCM registers: */
ptrTopRCMRegs = ptrSOCDriverMCB->ptrTopRCMRegs;
/* Wait until APLL clock calibration is done successfully */
while (CSL_FEXTR(ptrTopRCMRegs->SPARE0, 17U, 16U) != 0x3);
}
However, I think the bold line would loop infinitely if APLL clock calibration were not done.
I wonder if BSS always ensures the successful APLL clock calibration.
If not, should I add some code to escape the line in a few ms.
Please, somebody give some advice to me.
Thank you.
Best regards.