• slider image 514
  • slider image 516
  • slider image 517
  • slider image 518
  • slider image 519
:::


Browsing this Thread:   1 Anonymous Users






Re: ICD2 中 Debug 和 Release编译选项的区别
#4
新會員
新會員


查看用戶資訊
版主解释果然不一样。
多谢了,
我用的是30F,在编程时,,用的是DEBUG模式,
参考WATCH里的地址,于是对寄存器用汇编写入值,用了常数直接寻址,后来release时候发现程序有点不对,就看到了原来DEBUG和RELEASE分配有区别,以前也没有注意过。

版主,以后还有好多问题向你请教

發表於: 2009/5/12 9:53
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: ICD2 中 Debug 和 Release编译选项的区别
#3
版主
版主


查看用戶資訊
因為 Debug Mode 下,MCU 需將一些資源分配給 Bebug OS 用,所以會佔用掉一些RAM 及一些 Flash Memory。這種佔用的現象在比較小的ROM Size 元件就比較有差異,對較大容量的MCU 就比較顯現不出來。

Release Mode 會將 MCU 所有的資源讓給User使用,也就是說 MCU 這時是處在 Stand Alone Mode 下自行運作。

不管選擇了Debug or Release Mode 都要再進行一次Build All 的重新編譯動作,Linker 需再重新安排記憶位址給 MCU。

發表於: 2009/5/5 13:12
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: ICD2 中 Debug 和 Release编译选项的区别
#2
高級會員
高級會員


查看用戶資訊
參考 : C:\Program Files\Microchip\MPLAB IDE\ICD2\hlpMPLABICD2.chm & hlpMPLABIDE.chm

the Debugger>Run function or the Run icon (forward arrow) is usually pressed from MPLAB IDE. MPLAB ICD 2 will raise the Vpp/MCLR line to allow the target to run, the target will start from address zero and execute until the program counter reaches the breakpoint address previously stored in the internal debug registers.


Once the code has been debugged and the application is running as designed, the device can be programmed without the debugger enabled.

When you have finished debugging your code, selecting "Release" will release debug resources for regular operation.

To set up language tools for debug, select "Debug". When your code is debugged and you are ready to release it (program the finished code into a device), select "Release".

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


ICD2 中 Debug 和 Release编译选项的区别
#1
新會員
新會員


查看用戶資訊
RT,
我只看到,编译后会有寄存器分配地址不同的区别

希望高手给出具体解释

Thank you...

發表於: 2009/5/5 11:12
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... ]

教育訓練中心

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