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.

IWR1642BOOST: Software-way to reset SOFTSYSRST

Part Number: IWR1642BOOST
Other Parts Discussed in Thread: IWR6843ISK-ODS

I am looking for a way to soft-reset IWR6843ISK-ODS. I guess the same technique applies to other mmwave chips as well. 

This is in continuation of https://e2e.ti.com/support/sensors/f/1023/t/759919. Nitin has said "The socHandle has references to the SOC register layout, including TOPRCM regs so you can write to the SOFTSYSRST using this structure directly". I don't see any samples of such register writes using socHandle. If TI can provide such a software reset handler, that will be of great use during development phase. 

I'd like to have a quick solution. So, in the same thread Greg said he hard-coded it. Is the following the right way to hard-code it? In pCount3D_cli.c 

    ...
    cliCfg.tableEntry[cnt].cmd            = "softReset";
    cliCfg.tableEntry[cnt].helpString     = "";
    cliCfg.tableEntry[cnt].cmdHandlerFxn  = Pcount3DDemo_CLISoftReset;
    cnt++;
    ...
static int32_t Pcount3DDemo_CLISoftReset (int32_t argc, char* argv[])
{
    I need to write the value 0x0000_00AD to the address 0xFFFF_E11C; How do I write to this register?
}

  • Hi Philips,

    Please follow the code for the SOC_init call in mss_main.c as shown below. Using this you can understand how to access the required register access from the returned SOC_Handle. You can also write to the register using direct register access as given below

    *(volatile uint32_t*)(0xFFFFE11C) = 0x000000AD. 

    Regards

    -Nitin

  • Thank you so much, Nitin. You have been careful in answering both the questions I posed. I'll mark the problem as resolved.

    I guess we might also have to take care of some state variables before we do the reset. For a beginner like me, it will take time to understand the flow/state of the firmware. For now, what you suggested will serve my purpose. But, in future releases of TI code, it would be good, if you can add a  handler to reset.

    Thanks again for your excellent reply. It was indeed a big leg up.