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

論壇索引


Board index » All Posts (austin1211)




Re: MAX3089E RS 485問題
高級會員
高級會員



發表於: 2011/10/20 11:33
Austin
頂部


Re: Link step failed
#52
高級會員
高級會員


我想應該是 Library 沒有加入
Program Files\Microchip\MPLAB C30\lib\libp30F4011-coff.a

加入試試看

發表於: 2009/11/23 9:21
Austin
頂部


Re: C30 ConfigBit 設定問題
#53
高級會員
高級會員


我找到答案了

我參考以下鏈結
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 設定問題
#54
高級會員
高級會員


主要是下列這一段程式
他可以在我要選用 Build Option = Relase 時,自動將程式保護起來
Build Option = Debug 可以不用再修改code , 自動取消保護

重點是
我選擇用 dsPIC30F6010A 和 dsPIC30F4011 就可以,而且無任何警告訊息

而選擇 dsPIC30F4013 就有警告 , 就算是直接用 _FGS( CODE_PROT_ON ) 也會有警告 .

可以有一個合理的答案嗎
一定要使用 Configuration Bits 內設定才可以嗎

#if defined __DEBUG
_FGS( CODE_PROT_OFF ) ; /* Disable Code Protection */
#else
_FGS( CODE_PROT_ON ) ; /* Enable Code Protection */
#endif

發表於: 2009/11/5 18:24
Austin
頂部


Re: C30 ConfigBit 設定問題
#55
高級會員
高級會員


這次我附上我在電腦上作的 Demo Project
請大家有空幫忙試試看

選Debug 時,不會有初向上述畫面
選Relase則會出現

我找不出來是甚麼原因

Attach file:


Link only for registered users

發表於: 2009/11/2 14:18
Austin
頂部


C30 ConfigBit 設定問題
#56
高級會員
高級會員


請問
我的設定語法是從 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:



jpg  (0.00 KB)


發表於: 2009/10/10 10:10
Austin
頂部


Re: C30 變數型別轉換問題
#57
高級會員
高級會員


謝謝以上先進回覆
如 biko 所言
我好像也看過別的文件上有說明,
只是想試試看有沒有比較簡潔的寫法
我看也只好用一個暫存變數來處理了

我是在寫 Modbus RTU Slave 端程式
再30f4013內部開一塊 unsigned char 記憶體
可是我的資料也可能是 int or char or long
如果能用指標直接存取,或需是比較方便的多

發表於: 2009/10/3 2:20
Austin
頂部


Re: C30 變數型別轉換問題
#58
高級會員
高級會員


謝謝以上前輩的解答

p=(unsigned int*)&a[1];
c=*p;

會有問題嗎
我希望得到 c = 0x5634

發表於: 2009/10/2 2:58
Austin
頂部



« 1 ... 3 4 5 (6) 7 8 »



:::

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... ]

教育訓練中心

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