Re: ICD2 中 Debug 和 Release编译选项的区别
|
||||
---|---|---|---|---|
版主
|
因為 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
|
|||
|
Re: ICD2 中 Debug 和 Release编译选项的区别
|
||||
---|---|---|---|---|
高級會員
|
參考 : 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
|
|||
|
ICD2 中 Debug 和 Release编译选项的区别
|
||||
---|---|---|---|---|
新會員
|
RT,
我只看到,编译后会有寄存器分配地址不同的区别 希望高手给出具体解释 Thank you...
發表於: 2009/5/5 11:12
|
|||
|