| 
  |||||||||||
| 技術(shù)交流 | 電路欣賞 | 工控天地 | 數(shù)字廣電 | 通信技術(shù) | 電源技術(shù) | 測(cè)控之家 | EMC技術(shù) | ARM技術(shù) | EDA技術(shù) | PCB技術(shù) | 嵌入式系統(tǒng) 驅(qū)動(dòng)編程 | 集成電路 | 器件替換 | 模擬技術(shù) | 新手園地 | 單 片 機(jī) | DSP技術(shù) | MCU技術(shù) | IC 設(shè)計(jì) | IC 產(chǎn)業(yè) | CAN-bus/DeviceNe  | 
  
ARm程序不斷重啟 | 
  
| 作者:chq0097 欄目:ARM技術(shù) | 
請(qǐng)問周工 lpc程序不斷重啟,間隔不到一分鐘,但好像不是電源(測(cè)量沒有問題),也不是看門狗(關(guān)閉)。 系統(tǒng)是lpc2214  | 
  
| 2樓: | >>參與討論 | 
| 作者: zlgarm 于 2006/6/12 17:59:00 發(fā)布:
         re: 建議先使用一個(gè)簡(jiǎn)單的程序(比如開發(fā)板配套的基礎(chǔ)實(shí)驗(yàn)程序),測(cè)試是硬件還是軟件問題。檢查系統(tǒng)電源、復(fù)位電路。  | 
  |
| 3樓: | >>參與討論 | 
| 作者: high 于 2006/6/12 21:53:00 發(fā)布:
         先用個(gè)簡(jiǎn)單程序測(cè)試。 參考: 如果是程序原因造成重啟很多情況是緩沖溢出導(dǎo)致,也比較難找。 碰到多次,要么會(huì)重啟,要么會(huì)到undef異常。  | 
  |
| 4樓: | >>參與討論 | 
| 作者: reddragon 于 2006/6/13 9:16:00 發(fā)布:
         LZ找到問題了嗎? 我的也是不斷重啟。但同樣的程序有些產(chǎn)品又很好,不知到是芯片問題還是程序問題。 CPU是LPC2136,有時(shí)幾分鐘,有時(shí)幾小時(shí)出現(xiàn)。批量中約有10%有這種問題。慘。。!  | 
  |
| 5樓: | >>參與討論 | 
| 作者: high 于 2006/6/14 5:13:00 發(fā)布:
         標(biāo)準(zhǔn)c的異常處理機(jī)制。 我看了下ads的c庫(kù)。里面有支持以下的異常處理。我沒有時(shí)間,您們自己可以試一下。要include到signal.h 和 setjmp.h兩個(gè)頭文件。搜索一下標(biāo)準(zhǔn)c的異常處理機(jī)制。 或者來(lái)我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 */  | 
  |
  | 
    
 
  | 
  
| 免費(fèi)注冊(cè)為維庫(kù)電子開發(fā)網(wǎng)會(huì)員,參與電子工程師社區(qū)討論,點(diǎn)此進(jìn)入 | 
Copyright © 1998-2006 udpf.com.cn 浙ICP證030469號(hào)  |