Other Parts Discussed in Thread: HALCOGEN
Tool/software:
Hi,
I am trying to use Digital watchdog in the freertos build generated by halcogen and have following issues.
1. , I dont see any RTI module api's for initializing and petting the watchdog generated by halcogen. Just wanted to check if it is unavailable for freertos builds or am I missing something here?
2. I created my own watchdog api's since I couldn't find the halcogen generated ones. I am calling watchdogInit from main before starting the freertos scheduler but not petting the watchdog..Once I connect to the debugger and it boots up for the first time, the watchdog resets the system after the expected timeout (since we are not petting the watchdog), After this system reset due to watchdog timeout and system comes up again and it seems to enter data abort. Could anyone help me figure this out?
void watchdogInit(void)
{
// Load the preload value
portRTI_DWDPRLD_REG = 0xFFF;
// Enable Digital Watchdgo
portRTI_DWDCTRL_REG = DWDCTRL_INIT_VALUE;
}
void watchdogPet(void)
{
portRTI_DWDKEY_REG = DWD_KEY1;
portRTI_DWDKEY_REG = DWD_KEY1;
}
Thanks,
Ravi