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: How to change watchdog expiration time

Part Number: MCU-PLUS-SDK-AM243X

I'm using the watchdog on a AM243x and using the API calls from the 8.05 SDK. I'm setting it to several minutes and it works fine.

I would like to be able to change it during runtime to a lower value for testing purposes.

I'm using the following, but it doesn't seem to work.

Watchdog_clear(gWatchdogHandle[CONFIG_WDT0]);
Drivers_watchdogClose();
gWatchdogParams[0].expirationTime = ticks; // ticks in milliseconds
Drivers_watchdogOpen();

Is there another way to change the time after its already been running?

Thanks

  • Hi Jeff,

    It will not work, because of the way the watchdog is implemented. According to the RTI_DWDPRLD Register Field Descriptions in TRM:

    If the DWD is implemented such that the down counter is enabled
    by software: The DWD preload register can be configured only when
    the DWD is disabled. Therefore, the application can only configure
    the DWD preload register before it enables the DWD down counter.

    That means the DWD preload register can only be set one time after each system reset. Refer to the RTI_DWDCTRL Register in TRM for details.

    Best regards,

    Ming

  • Hello Ming,

    Based on your response, does it mean that we could not use the same watchdog timer (timer 8 for r5f core 0)  for SBL bootloader and appimage with different timeout values?

    Thanks,

    Hong 

  • Hi Hong,

    Yes, you can only set the watchdog timer once after each reset (Warm or POR reset)

    Best regards,

    Ming