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.

CCS/AWR1642BOOST: Watchdog application problem

Part Number: AWR1642BOOST
Other Parts Discussed in Thread: SYSBIOS, AWR1642

Tool/software: Code Composer Studio

Thank you very much for your answer to the watchdog question. I have successfully compiled it and understood the general content.

For project needs, we want to have the ability to restart the board over time, how do I set the preloaded value and feed the dog, or if I need to change the guard dog mode.

In addition, how can I observe the phenomenon of watchdog reset overtime? I tried but did not observe.

I am looking forward to your reply.

  • Hi,

    Here you can find the watchdog source code to implement in your application.

    https://e2e.ti.com/support/tools/ccs/f/81/p/835932/3091964#3091964

    Watchdog preload value will define the window duration and you can define the windowsize within which you need to clear the watchdog to avoid it to expired.

        watchdogParams.windowSize = Watchdog_WINDOW_100_PERCENT;
        /* T-expire = (preloadValue+1) x 2 ^ 13 / RTICLK1 ; RTICLK1=20MHz */
        watchdogParams.preloadValue = 1954; /* 80.03 mSec */
    So in the application you need to set sysbios timer so that at every fixed interval watchdog gets cleared.
    Watchdog reset at it expire will cause a warm reset which will move control to bootloader where it again reads content from flash and load the application.
    So if you have flashed the application (having watchdog implemented) then at every watchdog expire & reset, application will be restarting again.
    This you can do with mmw demo with watchdog feature implemented, where at every WDT expire you see UART banner is getting printed back to back again.
    Regards,
    Jitendra

  • Thank you for your answer. According to your answer, I realized the function of watchdog.

    In order to achieve better implementation, we want to change the watchdog preload time. After checking the code, we found that the default value is 0XFFF. We would like to ask whether there is any limit on the preload value that can be changed。

    We tried changing it to 195400 and found that the watchdog would not work

  • Hi,

    Preload value can have the range 0 to 4095 ( RTIDWDPRLD:12bit value).

    Please refer AWR1642 TRM (Technical reference manual) to check this register detail.

    And there you will find the formula for WDT timer [ T-expire = (preloadValue+1) x 2 ^ 13 / RTICLK1 ; RTICLK1=20MHz ]

    Hope this clears your query.

    Regards,

    Jitendra