Hello:
We designed a customized board which use external MCU to control AWR1243P through SPI.
I modified the mmwavelink_example in mmwave_DFP to run it on our MCU, now it can download the firmware, however,
the app stuck in the "while" loop after the MMWL_fileDownload function:
printf("\nWaiting for firmware update response from mmWave device \n");
while (mmwl_bInitComp == 0)
{
osiSleep(1); /*Sleep 1 msec*/
timeOutCnt++;
if (timeOutCnt > MMWL_API_INIT_TIMEOUT)
{
retVal = RL_RET_CODE_RESP_TIMEOUT;
break;
}
}
It seem that mmwl_bInitComp never become 1 so the app times out.
I checked that the mmwl_bInitComp can only be set to 1 in two sync events:
case RL_DEV_AE_MSSPOWERUPDONE_SB:
{
mmwl_bInitComp = 1U;
}
break;
case RL_DEV_AE_MSS_BOOTERRSTATUS_SB:
{
mmwl_bInitComp = 1U;
}
break;
, which is the mss power up and boot event.
I wonder if firmware download finish will trigger any of the two event?
Best
Tim
