博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
how to disable watchdog
阅读量:4045 次
发布时间:2019-05-24

本文共 1268 字,大约阅读时间需要 4 分钟。

Feature phone 的production release 版本上存在(1)死机无法抓取得memory dump或是(2)用JTAG分析问题时watchdog timeout了, 可以关闭watchdog去debug 问题,关闭方法如下:

 

11A before关闭 watchdog方法是将WDT_Enable()这个函数中的参数变为kal_FALSE。如下

Application_Initialize() (init\src\init.c) like this:

#ifdef __PRODUCTION_RELEASE__

#ifdef __MULTI_BOOT__

   if ( system_boot_mode!=FACTORY_BOOT )

#endif  /* __MULTI_BOOT__ */

     // WDT_Enable(KAL_TRUE);

      WDT_Enable(KAL_FALSE);

#endif /* __PRODUCTION_RELEASE__ */

 

11A after(包括11A)关闭 watchdog方法是将wdt_data.fgEnable = kal_TRUE 改为 KAL_FALSE。如下

Application_Initialize() (hal\system\init\src\init.c) like this:

#ifdef __PRODUCTION_RELEASE__

#ifdef __MULTI_BOOT__

   if ( system_boot_mode!=FACTORY_BOOT )

#endif  /* __MULTI_BOOT__ */

         //wdt_data.fgEnable=KAL_TRUE;

         wdt_data.fgEnable=KAL_FALSE;

    init_dcl_wdt_handle=DclWDT_Open(DCL_WDT,0);       

         DclWDT_Control(init_dcl_wdt_handle,WDT_CMD_ENABLE,(DCL_CTRL_DATA_T*)&wdt_data);

         DclWDT_Close(init_dcl_wdt_handle);        

#endif /* __PRODUCTION_RELEASE__ */

 

如果在Application_Initialize() (hal\system\init\src\init.c) 沒有上面所述內容,但是有WDT_SetValue(255)函数,

关闭watch dog 方法为: WDT_SetValue(255);替换为WDT_Enable(KAL_FALSE);

 

在w12.36 11B起增加了两个feature option ,FORCE_MEMORY_DUMP & FORCE_WATCHDOG_MUTE以加速打开或者关闭watch dog and memory dump。修改project make file中的feature option, 然后remake system即可有效。

转载地址:http://wqgdi.baihongyu.com/

你可能感兴趣的文章
flutter-实现圆角带边框的view(android无效)
查看>>
android 代码实现圆角
查看>>
flutter-解析json
查看>>
android中shader的使用
查看>>
java LinkedList与ArrayList迭代器遍历和for遍历对比
查看>>
drat中构造方法
查看>>
JavaScript的一些基础-数据类型
查看>>
JavaScript基础知识(2)
查看>>
转载一个webview开车指南以及实际项目中的使用
查看>>
android中对于非属性动画的整理
查看>>
一个简单的TabLayout的使用
查看>>
ReactNative使用Redux例子
查看>>
Promise的基本使用
查看>>
coursesa课程 Python 3 programming 统计文件有多少单词
查看>>
coursesa课程 Python 3 programming 输出每一行句子的第三个单词
查看>>
Returning a value from a function
查看>>
coursesa课程 Python 3 programming Functions can call other functions 函数调用另一个函数
查看>>
coursesa课程 Python 3 programming The while Statement
查看>>
course_2_assessment_6
查看>>
coursesa课程 Python 3 programming course_2_assessment_7 多参数函数练习题
查看>>