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

論壇索引


Board index » All Posts (zasd)




PICkit4 燒錄問題
#1
新會員
新會員


你好
目前在使用PICkit4燒錄時會出現警告不能燒錄,用Snap又正常,請問這該如何處理,
謝謝,
警告資訊如下:
Connecting to MPLAB PICkit 4...

Currently loaded versions:
Application version............00.05.41
Boot version...................01.00.00
Script version.................00.03.33
Script build number............0540a22e50

WARNING: Tool is detecting the target VDD as 1.3 volts. It may not be able to program the device successfully at target VDD less than 2.3 volts. On a programming failure increase the target VDD and try again.
Target voltage detected
Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the Target Device.

發表於: 2021/7/2 9:39
頂部


Re: 程式執行時,暫存器被清除的問題
#2
新會員
新會員


我又搞錯圖了,XD
但數值確實是被清除為0,
我斷點是設定CH_NUM 數值有被寫入時,才會中斷!
而中斷時剛好停留在FOR迴圈上!
目前先把那些暫存器不要用結構式的寫法,值就沒有被清為0的問題
但又遇到別一個問題!
當程式執行一段幾十分鐘後,會跳到這程式,然後就卡住了
void __attribute__((naked, noreturn, weak)) TRAPS_halt_on_error(uint16_t code)
{
TRAPS_error_code = code;
#ifdef __DEBUG
__builtin_software_breakpoint();
/* If we are in debug mode, cause a software breakpoint in the debugger */
#endif
while(1);

}

TRAPS_error_code 這數值等於2,
請問,這種問題大部份題如何引起的

發表於: 2020/6/2 11:43
頂部


Re: 程式執行時,暫存器被清除的問題
#3
新會員
新會員


我有用你的方法去設定斷點條件,當中斷產生時,我有去看暫存器值也變為0,但程式斷點的地方,也與這暫存器無關!真是奇怪!

Attach file:



jpg  (0.00 KB)


發表於: 2020/5/29 14:56
頂部


Re: 程式執行時,暫存器被清除的問題
#4
新會員
新會員


不好意思,貼錯圖了!更新一下

Attach file:



jpg  (0.00 KB)


發表於: 2020/5/28 15:03
頂部


程式執行時,暫存器被清除的問題
#5
新會員
新會員


想請教大家一下,我是用PICFJ128FGA系列的,目前寫了一支程式,平常10秒做一次uart read & write ,再去做數值的判斷,但有遇到一個奇怪問題,當我執行約幾十分後,會發現我一些用結構體包的暫存器數值會被清為0,因之前沒遇過,所以有什麼方向可以去抓這問題嗎?謝謝

Attach file:



jpg  (0.00 KB)


jpg  (0.00 KB)


發表於: 2020/5/28 14:14
頂部


PIC24F ADC 參考電壓問題
新會員
新會員



發表於: 2020/2/17 13:14
頂部






:::

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... ]

教育訓練中心

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