共3条
1/1 1 跳转至页
问
请问周工
lpc程序不断重启,间隔不到一分钟,但好像不是电源(测量没有问题),也不是看门狗(关闭)。
系统是LPC2214 答 1: re:建议先使用一个简单的程序(比如开发板配套的基础实验程序),测试是硬件还是软件问题。检查系统电源、复位电路。 答 2: 先用个简单程序测试。参考:
如果是程序原因造成重启很多情况是缓冲溢出导致,也比较难找。
碰到多次,要么会重启,要么会到undef异常。 答 3: LZ找到问题了吗?我的也是不断重启。但同样的程序有些产品又很好,不知到是芯片问题还是程序问题。
CPU是LPC2136,有时几分钟,有时几小时出现。批量中约有10%有这种问题。惨啊!!! 答 4: 标准c的异常处理机制。我看了下ads的c库。里面有支持以下的异常处理。我没有时间,您们自己可以试一下。要include到signal.h 和 setjmp.h两个头文件。搜索一下标准c的异常处理机制。
或者来我blog:
http://www.blog.com.cn/user85/chenyq2000/index.shtml
ADS支持的异常:在signal.h中定义。
------------------------
#define SIGABRT 1 /* abort */
#define SIGFPE 2 /* arithmetic exception */
#define SIGILL 3 /* illegal instruction */
#define SIGINT 4 /* attention request from user */
#define SIGSEGV 5 /* bad memory access */
#define SIGTERM 6 /* termination request */
/* (these following macros are not part of the ANSI standard,
* but private to this implementation)
*/
#define SIGSTAK 7 /* stack overflow */
#define SIGRTRED 8 /* run-time redirection error */
#define SIGRTMEM 9 /* run-time memory error */
/* Signal numbers 10 and 11 are available for the user */
#define SIGUSR1 10
#define SIGUSR2 11
#define SIGPVFN 12 /* pure virtual function called */
#define SIGCPPL 13 /* exception from C++ library */
lpc程序不断重启,间隔不到一分钟,但好像不是电源(测量没有问题),也不是看门狗(关闭)。
系统是LPC2214 答 1: re:建议先使用一个简单的程序(比如开发板配套的基础实验程序),测试是硬件还是软件问题。检查系统电源、复位电路。 答 2: 先用个简单程序测试。参考:
如果是程序原因造成重启很多情况是缓冲溢出导致,也比较难找。
碰到多次,要么会重启,要么会到undef异常。 答 3: LZ找到问题了吗?我的也是不断重启。但同样的程序有些产品又很好,不知到是芯片问题还是程序问题。
CPU是LPC2136,有时几分钟,有时几小时出现。批量中约有10%有这种问题。惨啊!!! 答 4: 标准c的异常处理机制。我看了下ads的c库。里面有支持以下的异常处理。我没有时间,您们自己可以试一下。要include到signal.h 和 setjmp.h两个头文件。搜索一下标准c的异常处理机制。
或者来我blog:
http://www.blog.com.cn/user85/chenyq2000/index.shtml
ADS支持的异常:在signal.h中定义。
------------------------
#define SIGABRT 1 /* abort */
#define SIGFPE 2 /* arithmetic exception */
#define SIGILL 3 /* illegal instruction */
#define SIGINT 4 /* attention request from user */
#define SIGSEGV 5 /* bad memory access */
#define SIGTERM 6 /* termination request */
/* (these following macros are not part of the ANSI standard,
* but private to this implementation)
*/
#define SIGSTAK 7 /* stack overflow */
#define SIGRTRED 8 /* run-time redirection error */
#define SIGRTMEM 9 /* run-time memory error */
/* Signal numbers 10 and 11 are available for the user */
#define SIGUSR1 10
#define SIGUSR2 11
#define SIGPVFN 12 /* pure virtual function called */
#define SIGCPPL 13 /* exception from C++ library */
共3条
1/1 1 跳转至页
回复
我要赚赏金打赏帖 |
|
|---|---|
| 【S32DS】S32K3 RTD7.0.1 HSE 组件配置报错问题解决被打赏¥27元 | |
| 【S32K3XX】MCME 启动 CORE1被打赏¥23元 | |
| AG32VH407下温度大气压传感器及其检测被打赏¥20元 | |
| AG32VH407下光照强度传感器BH1750及其检测被打赏¥22元 | |
| AT32VH407下使用温湿度传感器DHT22进行检测被打赏¥20元 | |
| DIY一个婴儿澡盆温度计被打赏¥34元 | |
| 【FreeRtos】FreeRtos+MPU region 配置规则被打赏¥23元 | |
| 【分享开发笔记,赚取电动螺丝刀】三分钟快速上手驱动墨水屏(ArduinoIDE)被打赏¥28元 | |
| 【S32K3XX】LIN 通讯模块使用被打赏¥31元 | |
| 【FreeRtos】FreeRtos + MPU模块的配置使用被打赏¥32元 | |
我要赚赏金
