Re: C30 ConfigBit 設定問題
|
||||
---|---|---|---|---|
高級會員
|
我找到答案了
我參考以下鏈結 http://www.microchip.com/forums/tm.as ... &key=_FGS%2cCODE_ 所以我更新 c30 compiler 到 v3.20b 就 ok了 ps. 原來為 3.02 版
發表於: 2009/11/17 1:35
|
|||
Austin
|
||||
|
Re: C30 ConfigBit 設定問題
|
||||
---|---|---|---|---|
版主
|
我在 dsPIC30F Peripheral Module Training 的教材裡所寫的 Configuration 的設定:
//--------------------------------------------------------------------------- // Regarding the Configuration bits declaration // Please refer to p30F4011.h for more //--------------------------------------------------------------------------- _FOSC(CSW_FSCM_OFF & XT); // XT oscillator, Failsafe clock off _FWDT(WDT_OFF); // Watchdog timer disabled _FBORPOR(PBOR_OFF & MCLR_EN); // Brown-out reset disabled, MCLR reset enabled _FGS(CODE_PROT_OFF); // Code protect disabled 這是沒有 Code Protected 的設定,在除錯的過程中為什麼要設定 Code Protected 呢? 有點沒事找事做的感覺。 要保護也要到整個程式確定完成要交出去時在保護吧!
發表於: 2009/11/5 11:56
|
|||
|
Re: C30 ConfigBit 設定問題
|
||||
---|---|---|---|---|
高級會員
|
well,
首先,您提供的rar檔案我載了,但無法解壓縮! 我想,你是否在[Configure]的晶片型號沒有選對?? 還有,你的.lkr的設定是否與你的記憶體規劃有衝突?(Debug or Release mode..)這也是有可能的!!不過我真的不懂_FGS(CODE_PROT_ON)這function. 忘了說,我沒用過C30,我還在用C18,若回答是錯的answer,請見諒囉! Attach file: (0.00 KB)
發表於: 2009/11/3 13:39
|
|||
|
Re: C30 ConfigBit 設定問題
|
||||
---|---|---|---|---|
資深會員
|
參照:
這應該是在Debug模式下才會出現的警告吧~~~ 如果在Program模式下 應該不會出現這個~~~ 只是提醒你 使用Debug設定進入Debug ~~
發表於: 2009/11/3 9:20
|
|||
|
Re: C30 ConfigBit 設定問題
|
||||
---|---|---|---|---|
高級會員
|
這次我附上我在電腦上作的 Demo Project
請大家有空幫忙試試看 選Debug 時,不會有初向上述畫面 選Relase則會出現 我找不出來是甚麼原因 Attach file: Link only for registered users
發表於: 2009/11/2 14:18
|
|||
Austin
|
||||
|
C30 ConfigBit 設定問題
|
||||
---|---|---|---|---|
高級會員
|
請問
我的設定語法是從 p30f4013.h 內複製過來的 _FGS(CODE_PROT_ON) 為什麼會出現警告 [img]<a href=http://photo.pchome.com.tw/xf89023/125514011158/><img src=http://link.photo.pchome.com.tw/s10/xf89023/1/125514011158/ border=0></a>[/img] 謝謝 Attach file: (0.00 KB)
發表於: 2009/10/10 10:10
|
|||
Austin
|
||||
|