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.

CC3200: Application Bootloader + Watchdog after Sl_Start

Part Number: CC3200


Hello,

I want to implement a Watchdog in my application.

I have followed the "watchdog system demo" example. In my application it works fine if I flash it without the application bootloader... but for obvious reasons I need the application bootloader...

But when I flash application bootloader + my application, the watchdog is no longer triggering.

To be exact the watchdog does not trigger once Sl_Start(0,0,0) is called.

The code is working well if flashed alone but not if flashed along with application bootloader.

I'm aware that the WDT does not reset the NWP but here the WDT is not even restarting the application processor.

Any help is welcome.

Thanks :).

  • More infos:

    If I monitor the current consumption, I can see that when the WDT should trigger the consumption drops, indicating that something is happening but the application does not restart... does the bootloader get stuck or something ?
  • Well After more investigation, the bootloader were stuck at Sl_Start()

    If found some infos here:
    e2e.ti.com/.../2289449

    I did not want to modify the bootloader application as suggested in the above post because devices are already deployed therefore only wanted to update the OTA image...

    here is my workaround:

    I created the following WDT handler:
    void WatchdogIntHandler(void)
    {
    Message("\n\r WDT triggered Rebooting \n\r");


    HWREG(0x400F70B8) = 1;
    UtilsDelay(800000/5);
    HWREG(0x400F70B0) = 1;
    UtilsDelay(800000/5);

    HWREG(0x4402E16C) |= 0x2;
    UtilsDelay(800);
    HWREG(0x4402F024) &= 0xF7FFFFFF;

    MAP_PRCMOCRRegisterWrite(0,1);
    MAP_PRCMHibernateWakeupSourceEnable(PRCM_HIB_SLOW_CLK_CTR);
    MAP_PRCMHibernateIntervalSet(330);
    MAP_PRCMHibernateEnter();
    }

    So it clears boot setup before rebooting.. now the application restart correctly.
  • Glad you got it figured out, Thomas. Thank you for sharing your workaround for others to see if they were to run into similar issues.

    BR,
    Seong