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


Browsing this Thread:   1 Anonymous Users






Re: MPLAB 編譯過不了
#7
新會員
新會員


查看用戶資訊
謝謝^.^

發表於: 2009/2/24 14:42
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: MPLAB 編譯過不了
#6
版主
版主


查看用戶資訊
Data Sheet 裡有提到 HS-PLL 何種作用用,自行查閱。
底下的設定可以參考一下,把它加到程式裡,對照一下 Oscillator
方塊圖。

使用內建的 8MHz RC 震盪器輸出至除頻器除成 1MHz 的輸出當做系統的主震盪頻率
OSCCON<6:4> 開機的初始設定值為 “100”,選擇 1MHz 輸出
可以在 RA6 (Pin 14) 量到除四的頻率輸出 (250KHz)
LIST     P=18F4520            ;directive to define processor 
            
#include <P18F4520.INC>    ;processor specific variable definitions

CONFIG         OSC INTIO7Internal oscillator blockCLKO function on RA6port function on RA7
CONFIG        FCMEN 
OFF,IESO OFF
CONFIG        PWRT 
ONBOREN OFFWDT OFF,MCLRE ON
CONFIG        PBADEN 
OFF PORTB<4:0pins are configured as digital I/O on Reset
CONFIG        CCP2MX 
PORTC CCP2 input/output is multiplexed with RC1
CONFIG        STVREN 
OFFLVP OFF
CONFIG        CPB 
OFFCP0 OFFCP1=OFFCP2 OFF,CP3 OFF

發表於: 2009/2/23 11:27
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: MPLAB 編譯過不了
#5
新會員
新會員


查看用戶資訊
感謝我找到了...因為不知要設哪一個震盪器我把每個都點一遍= = 請問HS-PLL 這個是什麼呢?我是選擇這個才可以燒入進去@@~

發表於: 2009/2/22 16:08
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: MPLAB 編譯過不了
#4
版主
版主


查看用戶資訊
一樣到右上角收詢一下"ICD0083"

發表於: 2009/2/22 15:20
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: MPLAB 編譯過不了
#3
新會員
新會員


查看用戶資訊
感謝...原來我忘記去設定它了...
在編譯完成之後我要燒到單晶片裡面他出現這樣的錯誤
Programming Target...
...Validating configuration fields
...Erasing Part
...Programming Program Memory (0x0 - 0xFF)
...Loading DebugExecutive
...Programming DebugExecutive
...Programming Debug Vector
...Programming RSBUG
Verifying...
...Program Memory
...Debug Executive
...Debug Vector
...Verify Succeeded
Programming Configuration Bits
.. Config Memory
Verifying configuration memory...
...Verify Succeeded
Connecting to debug executive

"ICD0083: Debug: Unable to enter debug mode. Please double click this message for more information."

MPLAB ICD 2 ready for next operation

請問要如何解決呢QQ
我是使用APP025的實驗版 18F4520的單晶片

發表於: 2009/2/22 15:17
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: MPLAB 編譯過不了
#2
版主
版主


查看用戶資訊
找一下以前的討論 : 可以看一下教育訓練 w401 第三章的對 c018i.o 的說明。

http://www.microchip.com.tw/modules/n ... t_id=22252#forumpost22252

到右上角輸入 c018i.o 找一下以前的討論。

發表於: 2009/2/22 14:27
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


MPLAB 編譯過不了
#1
新會員
新會員


查看用戶資訊
我是剛接觸單晶片和編程這些東西的新手
在寫完程式之後出現了 以下不管怎弄都編譯成功麻煩各位大大幫忙一下ˊˋ


----------------------------------------------------------------------
Debug build of project `D:\PICTEXT\18f4520\LEDtest2\LEDtest2.mcp' started.
Preprocessor symbol `__DEBUG' is defined.
Target debug platform is `__MPLAB_DEBUGGER_ICD2=1'.
Debug platform options are: `__ICD2RAM=1'.
Sun Feb 22 13:55:39 2009
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Deleted file "D:\PICTEXT\18f4520\LEDtest2\LED2.o".
Clean: Done.
Executing: "D:\MCC18\bin\mcc18.exe" -p=18F4520 "LED2.c" -fo="LED2.o" -D__DEBUG -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
MPLAB C18 v3.30 (evaluation)
Copyright 2000-2009 Microchip Technology Inc.
Days remaining until evaluation becomes feature limited: 60
Executing: "D:\MCC18\bin\mplink.exe" "..\..\..\MCC18\lkr\18f4520.lkr" "LED2.o" "D:\MCC18\lib\c018i.o" /u_CRUNTIME /u_DEBUG /u_DEBUGCODESTART=0x7dc0 /u_DEBUGCODELEN=0x240 /u_DEBUGDATASTART=0x5f4 /u_DEBUGDATALEN=0xc /z__MPLAB_BUILD=1 /z__MPLAB_DEBUG=1 /z__MPLAB_DEBUGGER_ICD2=1 /z__ICD2RAM=1 /o"LEDtest2.cof" /M"LEDtest2.map" /W
MPLINK 4.30.01, Linker
Copyright (c) 2009 Microchip Technology Inc.
Error - could not find file 'c018i.o'.
Errors : 1

Link step failed.
----------------------------------------------------------------------
Debug build of project `D:\PICTEXT\18f4520\LEDtest2\LEDtest2.mcp' failed.
Preprocessor symbol `__DEBUG' is defined.
Target debug platform is `__MPLAB_DEBUGGER_ICD2=1'.
Debug platform options are: `__ICD2RAM=1'.
Sun Feb 22 13:55:39 2009
----------------------------------------------------------------------
BUILD FAILED

'c018i.o'這個我有找到 可是卻說找不到不知為啥ˊˋ

發表於: 2009/2/22 14:06
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... ]

教育訓練中心

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