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.

RTOS/LAUNCHXL-CC1310: Watchdog timer

Part Number: LAUNCHXL-CC1310
Other Parts Discussed in Thread: CC1310

Tool/software: TI-RTOS

I would like to add Watchdog timer to CC1310 code.

I copy code sample code from RTOS User guide :

Watchdog_Params params;

Watchdog_Handle watchdog;

Board_initWatchdog();

/* Create and enable a Watchdog with resets enabled */

Watchdog_Params_init(&params);

params.resetMode = Watchdog_RESET_ON;

params.callbackFxn = UserCallbackFxn;

watchdog = Watchdog_open(Board_WATCHDOG, &params);

if (watchdog == NULL) {

/* Error opening watchdog */

}

then I defined my function:

#define Board_WATCHDOG 1

static Watchdog_Callback UserCallbackFxn()

{

System_printf("WatchDOG \n");

}

What this function should return ?

I also got linker error for Watchdog_config unresolved symbol when I compile this code.

I noticed that CC1301_LAUNCXL.c does not have any Watchdog objects included.

How to resolve all those problems ? Is there running sample available for Watchdog Timer used in TI RTOS on this micro ?

Andrew

 

  • Hi Andrew,

    What version of TI-RTOS are you using?

    -- Emmanuel
  • Hi,
    version of RTOS is 2.20.00.06

    Linker error message was.

    Description Resource Path Location Type
    unresolved symbol Watchdog_config, first referenced in C:/ti/tirtos_cc13xx_cc26xx_2_20_00_06/products/tidrivers_cc13xx_cc26xx_2_20_00_08/packages/ti/drivers/lib/drivers_cc13xxware.aem3<Watchdog.oem3> WIRELESS_TAKOVER_TI_CC1310F64    C/C++ Problem

    I added empty Watchdog_config() {} but it only helps linker.

    Code hungs in Watchdog_Open function when it cannot reference Watchdog_config structure that probably needs to be defined somwere else ?

    Board.h file has

    #define Board_initWatchdog() Watchdog_init()

    but I cannot find this implemented anywhere ?

    Also I see in WahdogCC26XX.h comments "

    The board

    * file will define the device specific config, and casting in the general API

    * will ensure that the correct device specific functions are called."

    Why watchdog configuration is not available with CC1300 LAUNCH files?



     Andrew