Re: EEPROM讀寫副程式,編譯後出現警告
|
||||
---|---|---|---|---|
版主
|
是的。
發表於: 2008/11/7 17:31
|
|||
|
Re: EEPROM讀寫副程式,編譯後出現警告
|
||||
---|---|---|---|---|
資深會員
|
程式裡頭我有將W6,W7 push起來,執行完後再pop出來,若有做這兩個動作,應該可以不用理會這警告吧!
發表於: 2008/11/7 17:01
|
|||
|
Re: EEPROM讀寫副程式,編譯後出現警告
|
||||
---|---|---|---|---|
版主
|
建議這種 Access EEPROM 的動作可以先用 MPLAB SIM 來做,帶程式 OK 後在用 ICD2 檢驗。
發表於: 2008/11/7 16:57
|
|||
|
EEPROM讀寫副程式,編譯後出現警告
|
||||
---|---|---|---|---|
資深會員
|
我用網站上所提供的EEPROM讀寫的副程式,因為程式中有直接對W6,W7做資料存取,compiler之後出現以下的警告
auto_master_controller.c:406: warning: 'WREG6' access is not safe to use within C auto_master_controller.c:406: warning: 'WREG6' is deprecated (declared at C:/pic30_tools/support/dsPIC30F/h/p30f5011.h:72) auto_master_controller.c:407: warning: 'WREG7' access is not safe to use within C auto_master_controller.c:407: warning: 'WREG7' is deprecated (declared at C:/pic30_tools/support/dsPIC30F/h/p30f5011.h:73) 請問這有沒有關係,是不理它還是怎麼做可以避免出現這樣的訊息?
發表於: 2008/11/7 16:44
|
|||
|