I have been working on firmware for the C5506 using the CSL. Since the 5506 is not directly supported, I must use 5509A in CCS. Things are working quite well with my existing frmware, but I would like to add the Watchdog Timer to catch any potential failures.
Has anyone successfully used the WDTIM Module in the CSL for the 5509A or 5506 processor?
Can anyone explain the compile errors below?
Unfortunately, including csl_wdtim.h results in a failed compile. It seems that the code is inconsistent, and appears to have never been tested for the 'A' variation of the hardware headers. Here are the complaints from the compiler:
"/Program Files/C55xxCSL/include/csl_wdtimA.h", line 247: error: struct "<unnamed>" has no field "wdtim"
Config->wdtim = WDTIM_RGET(WDTIM);
^
"/Program Files/C55xxCSL/include/csl_wdtimA.h", line 276: warning: expression has no effect
((old_wdtcr2 & _WDTIM_WDTCR2_WDKEY_CLR) | _WDTIM_WDTCR2_WDEN_MK(WDTIM_WDTCR2_WDEN_ENABLE) |
^
"/Program Files/C55xxCSL/include/csl_wdtimA.h", line 277: error: expected a ";"
_WDTIM_WDTCR2_WDKEY_MK(WDTIM_WDTCR2_WDKEY_ACTIVE)));
^
2 errors detected