• slider image 442
  • slider image 477
  • slider image 479
  • slider image 480
  • slider image 481
  • slider image 482
:::


Browsing this Thread:   1 Anonymous Users






Re: [dsPIC33CK]-dsPIC33CK _HardTrapError
#4
版主
版主


查看用戶資訊
AddressError 和 Stack Error 是不同的向量今入點。
通常抓這種 Error 可以試著用消去法方式將涵數和部份懷疑的程式先註解掉後再編譯執行,看看是否還會發生錯誤。

Address Error 發生原因常是:程式抓到奇數位的程式碼,抓取PSV資料但 PSV 功能確沒有開啟,程式的提取的空間不存在。

發表於: 2021/10/23 10:09
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: [dsPIC33CK]-dsPIC33CK _HardTrapError
#3
新會員
新會員


查看用戶資訊
版主好:

後續追蹤為Address Error 想詢問下有甚麼方式能夠追蹤到錯誤呢?

有參考這篇的方式
https://stackoverflow.com/questions/24633622/address-error-isr
但好像都沒辦法找出錯誤發生的函數

有沒有甚麼更好的建議呢?

謝謝

發表於: 2021/10/20 22:46
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: [dsPIC33CK]-dsPIC33CK _HardTrapError
#2
版主
版主


查看用戶資訊
一般會出現 TrapError 是指進入了 NMI 中斷,當然原因很多可以參考 Data Sheet 裡的說明。
一般常見的是 Address Error 及 Math Error, 也就是出現了不該有的為指存取動作及輸學運算的錯誤例如像是除零、Overflow等錯誤。

參考一下以前的回文,底下的網友是因為看門狗沒有關閉造成的錯誤。

http://www.microchip.com.tw/modules/n ... st_id=81795&keywords=trap

發表於: 2021/10/20 11:28
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


[dsPIC33CK]-dsPIC33CK _HardTrapError
#1
新會員
新會員


查看用戶資訊
想詢問下在MCU型號:dsPIC33CK64MP105,主要框架是使用mcc產生的
,在運行過程中會觸發traps.c中的HardTrapError,想問一下要如何找出問題發生點。

謝謝

發表於: 2021/10/19 17:40
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... ]

教育訓練中心

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