This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

IWR6843AOP: Is there a way to make soft reset command (resetDevice) bypass the SBL (secondary boot loader).

Part Number: IWR6843AOP

Hi everyone

I'm looking for a way to use the soft reset command resetDevice to bypass the SBL. 

Right now here is the SBL booting process :

Press CR key or Space key to stop auto boot and Update Meta Image...<\r><\n>
Loading existing Meta Image from Flash in 5 4 3 2 1<\r><\n>
Debug: Device info: Manufacturer: 0, Device type = 0, Capacity = 0<\r><\n>
<\r><\n>
Debug: Loading application metaImage from Flash address: c0040000<\r><\n>
Error: Meta header absent!!!<\r><\n>
<\r><\n>
Error: Could not download the metaimage to RAM. Trying to boot the backup factory default image.<\r><\n>
<\r><\n>
Debug: Loading backup factory default image from Flash address: c0100000<\r><\n>
Debug: Parsing completed<\r><\n>
***********************************<\n><\r>IWR68xx Indoor people counting demo***********************************<\n><\r>mmwDemo:/>

If the resetDevice command is sent it will boot again in the SBL (do a count down and boot in the backup factory default image)

I want to send the resetDevice command and boot directly in the factory default image.

Is it possible to modify the address in the resset function to boot directly in the image? 

/**
 *  @b Description
 *  @n
 *      This is the CLI Handler for issuing a device soft reset
 *
 *  @param[in] argc
 *      Number of arguments
 *  @param[in] argv
 *      Arguments
 *
 *  @retval
 *      Success -   0
 *  @retval
 *      Error   -   <0
 */
static int32_t Pcount3DDemo_CLIResetDevice(int32_t argc, char *argv[])
{
    uint32_t *resetAddr = (uint32_t *)0xFFFFE11C;
    CLI_write("Resetting Device... \n\n");
    Task_sleep(100);
    *resetAddr = 0xAD;
    return 0;
}

  • Hi

    Thank you for your query. Please allow us a couple of days to respond

    Regards

  • Hello,

    With the way it is implemented in 6843, it is on a firmware level that the soft reset is done. Writing 0xAD to that address is simply prompting the soft reset procedure.

    If you are looking for a way to restart the sensor to send a new configuration or something like that, perhaps you can look into sensorStop

    Best Regards,

    Pedrhom

  • Hi,

    You are correct; I am looking to restart the sensor in order to reset the configuration. However, the issue is that after the initial configuration is sent, there is no way to resend a configuration using the sensorStop and flushCfg commands because the radar crashes (using 3D_people_track_6843_demo.bin and radar_toolbox_1_30_01_03). This might be a topic for another thread that I could start.

    The problem I'm currently facing is that the Secondary Boot Loader (SBL) is causing some overhead, and I need to change configurations quickly. Therefore, I am exploring ways to perform a soft reset without engaging the SBL.

  • Hello,

    There is not a quick and easy solution to do this, as the SBL was not designed to be "bypassed". Are you not able to have the 3D people tracking demo be the main image while you do your development?

    Best Regards,

    Pedrhom