[FAQ] IWR6843AOPEVM: MMWAVE-SDK 3.2.x startup sequence needs to be updated for IWR6843 ES1.0 and IWR6843AOPEVM ES1.0

Mastermind 18155 points

Replies: 1

Views: 200

Part Number: IWR6843AOPEVM

MMWAVE-SDK 3.2.x startup sequence needs to be updated for IWR6843 ES1.0 and IWR6843AOP ES1.0 devices

NOTE: The following update will be included in future MMWAVE-SDK releases.

Devices affected: IWR6843 ES1.0, IWR6843AOP ES1.0

SW Versions affected: MMWAVE-SDK, MMWAVE-SDK

Description: The start-up sequence in the affected MMWAVE-SDK and MMWAVE-SDK AOP releases can fail causing the application to terminate during startup.

The ROM bootloader on IWR6843 ES1.0 devices performs APLL calibration during device boot-up and the status of this calibration is checked by MMWAVE-SDK initialization code. The APLL might not fully settle during ROM bootloader execution causing this SDK check to fail. This does not impact application code since APLL calibration is again performed by the BSS firmware during BSS (aka Radar SS) power-up and SDK checks BSS returned APLL calibration status before starting the application tasks.

In summary, the SDK startup code checks the APLL calibration status twice:

  1. The first check for ROM bootloader based APLL calibration in SOC_init. This check is redundant and needs to be removed.
  2. Second check for BSS based APLL calibration in MMWave_initMMWaveLink in mmwave_link.c

Solution: As mentioned above, the first check is redundant and needs to be removed. Please follow the steps given below to update the code in MMWAVE-SDK (if using IWR6843 ES1.0) and MMWAVE-SDK (if using IWR6843AOP ES1.0). The following updates will be included in future MMWAVE-SDK releases.

Instructions to update the start-up sequence in MMWAVE-SDK 3.2.x

Step-1. Make the following modifications in file: C:\ti\mmwave_sdk_03_02_00_xx\packages\ti\drivers\soc\src\soc.c

a) In function SOC_init(), delete/disable the section of code highlighted below (you can put this section inside #if 0 and #endif pre-processor directives to disable it):

if (ptrCfg->clockCfg == SOC_SysClock_INIT)
#if 0
            retVal = SOC_checkBLAPLLCalibration();
            if(retVal < 0)
                /* Error: Expect APLL calibration is done by BL without errors */
                *errCode = SOC_EBLERR;

                /* Free memory and return NULL handle */
                MemoryP_ctrlFree(ptrSOCDriverMCB, sizeof(SOC_DriverMCB));
                ptrSOCDriverMCB = (SOC_DriverMCB *)NULL;
                goto exit;

b) You will also need to disable the :exit label towards the end of this function to avoid an unused label compiler error.

c) Delete/disable both the function declaration and definition for SOC_checkBLAPLLCalibration() in the same file.

d) Add the new function call SOC_waitAPLLCalibration(…) after SOC_unhaltBCC(…) as highlighted below;

            /* YES: Unhalt the BSS: */
            SOC_unhaltBSS((SOC_Handle)ptrSOCDriverMCB, errCode);

            /* Wait until APLL calibration is done by BSS */

e) Add the following new code (function declaration and body for SOC_waitAPLLCalibration) in the same file, as shown below. This code can be added at the top of this file before other function declarations and definitions.

/* Function declaration */
static void SOC_waitAPLLCalibration(SOC_DriverMCB* ptrSOCDriverMCB); 

/* Function definition */
 *  @b Description
 *  @n
 *      This function checks APLL status and wait until APLL clock Calibration
 *      is done from BSS.
 *  @param[in] ptrSOCDriverMCB
 *      Pointer to the SOC Driver
 *  @retval
 *      Not Applicable
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);

Step-2Rebuild the soc lib using the steps provided below

a) Open a command window in C:\ti\mmwave_sdk_03_02_00_xx\packages\scripts\windows

b) Execute “setenv.bat”

c) In the same terminal session cd to C:\ti\mmwave_sdk_03_02_00_06_AOP\packages\ti\drivers\soc

d) Execute  “gmake clean” followed by “gmake all”.

e) The above steps are also shown in the following snapshots (all from the same command window):

Step-3. Rebuild the mmw demo for the Target device (68xx or 68xx AOP)

a) Either using the build instructions provided in the corresponding SDK user guide, section Building Demo


b) Using the mmWave SDK Demo lab for the target device (68xx or 68xx AOP) provided as part of mmWave Industrial Toolbox on TI Resource Explorer

Step-4. Flash the updated mmw demo binary on the target EVM.

Flash and execute the new demo binary on the target EVM as described in the mmWave SDK user’s guide or the mmWave SDK Demo Labs mentioned above.

1 Reply