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


Browsing this Thread:   1 Anonymous Users




(1) 2 »


Re: 為何MCC產生的CODE會造成ICD4在Debug時自動退出?
#11
版主
版主


查看用戶資訊
不知道在使用 MCC 之前是唪看過幾分教育訓練的教材:
在網站右邊有教育訓練光碟的連結:

8-Bits MCU 相關課程下有幾個課程可參考:
PIC101 X IDE & MCC & XC8 基礎課程
XC8T v1.0
MCC201 v1.00 MCC201 v3.0x MPLABC® Code Configurator
CIP102v2.00 進階獨立式週邊(Adv. CIP)的應用

發表於: 2020/11/18 13:55
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 為何MCC產生的CODE會造成ICD4在Debug時自動退出?
#10
資深會員
資深會員


查看用戶資訊
Dear Ryang :

最後I2C及UART的程式自己寫,就都沒問題了...
所以MCC的Code很有問題!造成debug及program都有問題!
是否?

謝謝.

發表於: 2020/11/16 17:04
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 為何MCC產生的CODE會造成ICD4在Debug時自動退出?
#9
版主
版主


查看用戶資訊
這就要追蹤一下為何 eusart2TxBufferRemaining 會一直等於零,造成 while( ) 的判斷一直為 True 無法離開這個判斷迴圈。

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


Re: 為何MCC產生的CODE會造成ICD4在Debug時自動退出?
#8
資深會員
資深會員


查看用戶資訊
為何會當在這裡? while(0 == eusart2TxBufferRemaining){}
該如何離開?

謝謝.

Attach file:



jpg  141334 (4).jpg (127.24 KB)
3751_5fa9e8fec247e.jpg 706X603 px

發表於: 2020/11/10 9:12
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 為何MCC產生的CODE會造成ICD4在Debug時自動退出?
#7
版主
版主


查看用戶資訊
1. 你是使用 Global Variable 還是 Local Variable? Local Variable 離開函數後勢看不到值的。
2. PICKit4 的 Firmware 必須更新與 MPLAB X IDE v5.40 同一版本,PICKit4 功能才會正常。
3. 進到 Project 內容設定,暫時將 PICKit4 改成 Software Simulation 看看。

發表於: 2020/11/5 10:38
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 為何MCC產生的CODE會造成ICD4在Debug時自動退出?
#6
資深會員
資深會員


查看用戶資訊
Ryang 你好:

PIC18F-K_DFP : V1.4.87
XC8 : V2.3

才對.

現在的狀況是一團亂,完全不知該如何Debug,
且watchs及variables在未debug時可看得到變數名稱,
而在Debug時就看不到到變數名稱!

使用ICD4及Pickit3皆一樣.

謝謝.

發表於: 2020/11/5 10:03
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 為何MCC產生的CODE會造成ICD4在Debug時自動退出?
#5
版主
版主


查看用戶資訊
MCU PIC18F66K40
MPLABX 
V5.4
XC8 
V1.4.87


換一下新一點的 XC8 compiler, 建議使用 XC8 v2.30.

xc8 v1.4 是好幾年前的版本。

發表於: 2020/11/5 9:54
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 為何MCC產生的CODE會造成ICD4在Debug時自動退出?
#4
資深會員
資深會員


查看用戶資訊
且PC為何在程式後段?

Attach file:



jpg  擷取-PC.JPG (17.05 KB)
3751_5fa25b51ed8a1.jpg 749X85 px

發表於: 2020/11/4 15:42
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 為何MCC產生的CODE會造成ICD4在Debug時自動退出?
#3
資深會員
資深會員


查看用戶資訊
大家好 :

為何會超出位址?PC

1. MPLABX及XC8的問題?
2. ICD4的問題?
3. MCU本身的Bug?

謝謝.

Attach file:



jpg  擷取-over_address.JPG (30.47 KB)
3751_5fa25b04635a9.jpg 636X268 px

發表於: 2020/11/4 15:40
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 為何MCC產生的CODE會造成ICD4在Debug時自動退出?
#2
資深會員
資深會員


查看用戶資訊
大家好 :

1.為何會有這訊息?
2.為何資料夾沒有(不是MPLABX提供)?
3.該如何解決?

謝謝.

Attach file:



jpg  擷取-No_SG40X (3).jpg (48.92 KB)
3751_5fa1fd216670e.jpg 790X265 px

發表於: 2020/11/4 9:00
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... ]

教育訓練中心

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