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.

MCU-PLUS-SDK-AM243X: Jump from App to back to SBL

Part Number: MCU-PLUS-SDK-AM243X

Hi, I have a use case where I have two different user apps pre-loaded at different addresses on a bootflash and based on a control variable, I can jump to either app from the SBL. This is all working. My question is what is the best way to jump back to the SBL directly from the either of the apps -- I have a need to do this and am looking to programatically do this without having to power-cycle the launchpad. In other words, how can I achieve a POR reset of the SOC without physically removing power?

Thanks in advance.

  • Hi Kumud,

    Try the following register:

    Write 0x00020fff to 0x04518170 

    Best regards,

    Ming

  • Hi Ming, That doesn't look right. The value you suggested is the reset value of the register and not the value we'd need to write to cause a warm or POR, correct? I havent played with direct value writes (or read-modify-writes) yet, but using the SDK provided SOC_generateSwWarmResetMcuDomain() API, I was able to do this. I think the value to write is not 0xF but 0x6, to fields 11:8, 7:4, and 3:0 depending on what reset you want, is that right?

  • Hi Kumud,

    You are correct. You should use the following APIs to do the resets (warm or POR) in soc.h:

    void SOC_generateSwWarmResetMainDomain(void);

    void SOC_generateSwPORResetMainDomain(void);

    for MAIN domain

    void SOC_generateSwWarmResetMcuDomain(void);

    for MCU domain

    Best regards,

    Ming