Aug 16, 2018
05:45 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 16, 2018
05:45 PM
Hi I am using TC275 evaluation board and the sample code coming with the product.
at the below code, which is cpu0 start-up driver
as you can see, I remove those two lines that disable both CpuWatchdog and SafetyWatchdog.
So basically Watchdog function is enabled but whenever I downloaded the binary with Trace32 debugger and run it.
it does not trigger watchdog
there is no where to disable watchdog whatsoever.
what could be wrong with my thinking?
Sorry my english is not good but I tried to explain as much as I could
Thanks.
Best Regards,
Dongah Electric Componenet R&D Center Research Engineer, Korea
SIHUN, LEE
lsh9640@dongah.biz
82-10-4902-9640
at the below code, which is cpu0 start-up driver
as you can see, I remove those two lines that disable both CpuWatchdog and SafetyWatchdog.
So basically Watchdog function is enabled but whenever I downloaded the binary with Trace32 debugger and run it.
it does not trigger watchdog
there is no where to disable watchdog whatsoever.
what could be wrong with my thinking?
(...)
IfxCpu_initCSA((uint32 *)__CSA(0), (uint32 *)__CSA_END(0)); /*Initialize the context save area for CPU0 */
{
/*CPU and safety watchdogs are enabled by default, C initialization functions are not servicing the watchdogs */
uint16 safetyWdtPassword = IfxScuWdt_getSafetyWatchdogPassword();
//IfxScuWdt_disableCpuWatchdog(cpuWdtPassword);
//IfxScuWdt_disableSafetyWatchdog(safetyWdtPassword);
Ifx_C_Init(); /*Initialization of C runtime variables */
IfxScuWdt_enableCpuWatchdog(cpuWdtPassword);
IfxScuWdt_enableSafetyWatchdog(safetyWdtPassword);
}
IfxPort_setPinMode(&MODULE_P33, 8, IfxPort_Mode_outputPushPullGeneral);
IfxPort_setPinLow(&MODULE_P33, 8);
/*Initialize the clock system */
IFXCPU_CSTART_CCU_INIT_HOOK();
(...)
Sorry my english is not good but I tried to explain as much as I could
Thanks.
Best Regards,
Dongah Electric Componenet R&D Center Research Engineer, Korea
SIHUN, LEE
lsh9640@dongah.biz
82-10-4902-9640
2 Replies
Aug 16, 2018
07:08 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 16, 2018
07:08 PM
By default when a debugger is connected the watchdogs are disabled. To enable it on the Trace32 by using the following command:
SYStem.Option WDTSUS [ON | OFF]
SYStem.Option WDTSUS [ON | OFF]
Aug 17, 2018
02:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 17, 2018
02:45 AM
thanks man.