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


Browsing this Thread:   1 Anonymous Users






Re: dsPIC30f2010組譯完成後ㄉ問題...
#3
版主
版主


查看用戶資訊
dsPIC30F6014是80-pin的IC,而dsPIC30F2010只有28-pin所以你的程式就必須修改以符合I/O及週邊的需求。所以先修改PORTD,PORTA的腳位以符合30F2010的腳位需求吧!

發表於: 2004/7/7 13:40
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: dsPIC30f2010組譯完成後ㄉ問題...
#2
高級會員
高級會員


查看用戶資訊
這位老兄 , 看看你project的設定 ! 6014和2010有都一樣? 很多暫存器的定義好像不一樣!稍微對照一下再組譯!
而且你的header file名稱也不是2010 ,

發表於: 2004/7/7 11:52
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


dsPIC30f2010組譯完成後ㄉ問題...
#1
新會員
新會員


查看用戶資訊
如題..為什麼同樣一個程式..30F6014用C組譯器可以通過..而用30F2010就會出現以下的錯誤呢?
Lab1 Flash LED with timer delay.c:7:57: p30f2014.h: No such file or directory
Lab1 Flash LED with timer delay.c:12: error: syntax error before '&' token
Lab1 Flash LED with timer delay.c:12: warning: data definition has no type or storage class
Lab1 Flash LED with timer delay.c:13: warning: parameter names (without types) in function declaration
Lab1 Flash LED with timer delay.c:13: warning: data definition has no type or storage class
Lab1 Flash LED with timer delay.c:14: error: syntax error before '&' token
Lab1 Flash LED with timer delay.c:14: warning: data definition has no type or storage class
Lab1 Flash LED with timer delay.c:15: warning: parameter names (without types) in function declaration
Lab1 Flash LED with timer delay.c:15: warning: data definition has no type or storage class
Lab1 Flash LED with timer delay.c: In function `main':
Lab1 Flash LED with timer delay.c:31: error: `LATD' undeclared (first use in this function)
Lab1 Flash LED with timer delay.c:31: error: (Each undeclared identifier is reported only once
Lab1 Flash LED with timer delay.c:31: error: for each function it appears in.)
Lab1 Flash LED with timer delay.c:32: error: `TRISD' undeclared (first use in this function)
Lab1 Flash LED with timer delay.c:33: error: `TRISA' undeclared (first use in this function)
Lab1 Flash LED with timer delay.c:38: error: `T1CON' undeclared (first use in this function)
Lab1 Flash LED with timer delay.c:39: error: `TMR1' undeclared (first use in this function)
Lab1 Flash LED with timer delay.c:40: error: `PR1' undeclared (first use in this function)
Lab1 Flash LED with timer delay.c:48: error: `IFS0bits' undeclared (first use in this function)
Lab1 Flash LED with timer delay.c:51: error: `LATDbits' undeclared (first use in this function)
Lab1 Flash LED with timer delay.c:53: error: `PORTAbits' undeclared (first use in this function)

這是什麼問題呢...除了標頭檔要更換成30F2010.H外,linker檔要使用30F2010.gld,還有什麼需要注意的嗎?謝謝...

發表於: 2004/7/6 9:39
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... ]

教育訓練中心

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