• slider image 442
  • slider image 483
  • slider image 484
  • slider image 485
  • slider image 486
  • slider image 487
:::


Browsing this Thread:   1 Anonymous Users






Re: Address Error
#5
版主
版主


查看用戶資訊
]參照:

cc_chi 寫到:
請教各位高手

程式已進入Address Error Trap 該如何進行 DEBUG 呢??

!謝謝!

寫一段如下的trap service routine.
在nop處設一break點。
當程式在nop處停住後,再單步執行過retfie之後,就可看到程式在何處產生address trap,再設法解決。
在美國網站的software modem/dtmf 程式庫中,有trap處理程序的寫法,可以參考。

__AddressError:
AddErr
        
nop       
         bclr  INTCON1
#ADDRERR   
        
retfie

發表於: 2007/7/30 13:47
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: Address Error
#4
版主
版主


查看用戶資訊
看不出來哪裡有問題耶!

發表於: 2007/7/30 11:50
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: Address Error
#3
新會員
新會員


查看用戶資訊
感謝版主回應!
我是用dspic5011做兩組半雙工通訊,( 兩組通訊使用中斷處理 ,19200 Bps,Priority 都是 5),一個是Timer3中斷( Priority 也是 5,2ms中斷一次),另外一個是外部中斷Int0( 8ms中斷一次,Priority 7 ) 如果外部中斷Int0不接程式Run一天也不會進入Address Error Trap ,打開中斷Int0 後不到1小時就掛了。
可是Int0也沒寫什麼東東
void _ISRFAST _INT0Interrupt(void)
{
IFS0bits.INT0IF=0;
_T_RD7=!_T_RD7;
AD.Pt=0;
AD.Max=0;
AD.Min=9999;
AD.Sum=0;
}
真不知bug如何抓出

發表於: 2007/7/28 18:08
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: Address Error
#2
版主
版主


查看用戶資訊
如果是使用ICD4000就可以使用Real-Time Trace找。
ICD2 就必須配合中斷點的設定來慢慢找,既然是 Address Error 就有一些方向: 是不是用WORD模式抓到奇數RAM的 Address , 使用 PSV 卻忘記開PSV功能,鈔過RAM的記憶範圍。

發表於: 2007/7/27 13:25
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Address Error
#1
新會員
新會員


查看用戶資訊
請教各位高手

程式已進入Address Error Trap 該如何進行 DEBUG 呢??

!謝謝!

發表於: 2007/7/27 12:52
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部







You can view topic.
不可以 發起新主題
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.

[進階搜尋]


:::

Microchip連結

https://www.facebook.com/microchiptechnologytaiwan/
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=13
https://mu.microchip.com/page/tmu
http://elearning.microchip.com.tw/modules/tad_link/index.php?cate_sn=1
https://page.microchip.com/APAC-PrefCenters-TW.html
http://www.microchip.com/
http://www.microchip.com/treelink
http://www.microchipdirect.com/
http://www.microchip.com.cn/newcommunity/index.php?m=Video&a=index&id=103
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=2
http://www.microchip.com.tw/Data_CD/eLearning/index.html
http://www.microchip.com.tw/RTC/RTC_DVD/
https://www.microchip.com/development-tools/
https://www.youtube.com/user/MicrochipTechnology
[ more... ]

教育訓練中心

!開發工具購買
辦法說明 [業界客戶] [教育單位]
----------------------------------
!校園樣品申請
辦法說明 [教師資格] [學生資格]
----------------------------------