General Setup
5.5
BUILDING THE PROJECT
After the project is created, the application needs to be built. This will create object
(hex) code for the application that can be programmed into the target by the MPLAB
REAL ICE in-circuit emulator.
To set build options, select Project>Build Options>Project .
Note:
On the Project Manager toolbar, select “Debug” from the drop-down list.
When done, choose Project>Build All to build the project.
5.6
5.7
SETTING CONFIGURATION BITS
Although device Configuration bits may be set in code, they also may be set in the
MPLAB IDE Configuration window. Select Configure>Configuration Bits . By clicking on
the text in the “Settings” column, these can be changed.
Some Configuration bits of interest are:
? Oscillator – Make sure the correct mode and other oscillator features are set to
match the physical setup on the target board.
? Watchdog Timer Enable – On most devices, the Watchdog Timer is enabled
initially. It is usually a good idea to disable this bit.
? Comm Channel Select – For some devices, you will need to select the communi-
cations channel for the device, e.g., PGC1/EMUC1 and PGD1/EMUD1. Make
sure the pins selected here are the same ones physically connected to the device.
? Code Protect/Table Read Protect – Disable these settings. If the emulator
cannot write to program memory or read from a table, it cannot operate properly.
? JTAG Port Enable – For PIC32MX devices, this port may need to be disabled to
prevent conflicts when using trace and other ICE features where pin conflicts can
result.
SETTING THE EMULATOR AS THE DEBUGGER OR PROGRAMMER
Select Debugger>Select Tool>MPLAB REAL ICE to choose the MPLAB REAL ICE
in-circuit emulator as the debug tool. The Debugger menu and MPLAB IDE toolbar will
change to display debug options once the tool is selected. Also, the Output window will
open and messages concerning ICE status and communications will be displayed on
the MPLAB REAL ICE tab. For more information, see Section 11.2 “Debugging
Select Programmer>Select Programmer>MPLAB REAL ICE to choose the MPLAB
REAL ICE in-circuit emulator as the programmer tool. The Programmer menu and
MPLAB IDE toolbar will change to display programmer options once the tool is
selected. Also, the Output window will open and messages concerning ICE status and
communications will be displayed on the MPLAB REAL ICE tab. For more information,
Select Debugger>Settings or Programmer>Settings to open the Settings dialog
( Section 11.5 “Settings Dialog” ) and set up options as needed.
If errors occurs, see:
?
?
?
?
Section 10.3.6 “Debug Failure Actions” (Top Reasons Why You Can’t Debug)
? 2008 Microchip Technology Inc.
DS51616B-page 63
相关PDF资料
AC244006 KIT MPLAB REAL ICE TRACE
AC2626M6 PROBE TEMP 6" GENERAL PURP
AC300024 MOTOR STEPPER 2PHASE 8WIRE
AC300030 KIT ACOUSTIC ACCESSORY
ACM-16 CABLE MODULE FR3 16BIT 40-DIP
ACM-2X8 ACTIVE CABLE MODULE DUAL 8 BIT
ACM-8 CABLE MODULE FR3 8BIT 28/32-DIP
ACS9510EVB EVALUATION BOARD FOR ACS9510
相关代理商/技术参数
AC244005-2 功能描述:处理器配件 MPLAB REAL ICE w/ Performace Pak RoHS:否 制造商:Olimex Ltd. 产品:Cable 用于:
AC244006 功能描述:仿真器/模拟器 MPLAB REAL ICE TRACE INTERFACE Brd KIT RoHS:否 制造商:Blackhawk 产品:System Trace Emulators 工具用于评估:C6000, C5000, C2000, OMAP, DAVINCI, SITARA, TMS470, TMS570, ARM 7/9, ARM Cortex A8/R4/M3 用于:XDS560v2
AC244007 制造商:Microchip Technology Inc 功能描述:MPLAB REAL ICE JTAG ADAPTER - Boxed Product (Development Kits) 制造商:Microchip Technology Inc 功能描述:ADAPTER MPLAB REAL ICE JTA 制造商:Microchip Technology Inc 功能描述:ADAPTER, MPLAB, REAL, ICE, JTAG 制造商:Microchip Technology Inc 功能描述:ADAPTER, MPLAB, REAL, ICE, JTAG; Accessory Type:JTAG adaptor Board; For Use With:Microchip PIC32MX devices; SVHC:No SVHC (19-Dec-2012) ;RoHS Compliant: Yes
AC244008 功能描述:处理器配件 MPLAB REAL ICE Power Monitor RoHS:否 制造商:Olimex Ltd. 产品:Cable 用于:
AC244022 功能描述:插座和适配器 Procs Extnsn Pak for PIC24FJ128GA010-ICE RoHS:否 制造商:Silicon Labs 产品:Adapter 用于:EM35x
AC244022 制造商:Microchip Technology Inc 功能描述:Processor Extension Pak for PI
AC244023 功能描述:插座和适配器 PROCESSOR EXTNSN PAK FOR PIC18F1xK50 RoHS:否 制造商:Silicon Labs 产品:Adapter 用于:EM35x
AC244024 功能描述:插座和适配器 Processor Ext Pak for PIC18LF14K50 RoHS:否 制造商:Silicon Labs 产品:Adapter 用于:EM35x