MPLAB ? REAL ICE ? In-Circuit Emulator User’s Guide
4. After rebuilding, a Warning dialog will ask, “File has been modified. Do you want
to reload?”. Click Yes . When you examine your code, you will find that the log id
has been replaced with a unique number.
Note:
To disable this warning and automatically reload, select
Configure>Settings , Other tab, and check “Automatically reload files
that were modified outside of the IDE”. Then click OK .
5. Reprogram the device ( Debugger>Program ).
6. Double-click on the following line to place a breakpoint there:
PORTA = counter;
//display on port LEDs
7. Reset and run the program until it halts at the breakpoint. Repeat this three times.
8. Select View>Trace to view the trace data ( Section 11.3.11 “Trace Window” ) or
right click and in the Trace window and select “Reload”. You should see variable
values logged in this window. To see the related code in the lower portion of the
window, you may need to click on a logged value in the upper portion of the win-
dow.
4.15.2
Using I/O Port Trace
You may choose to modify the Explorer 16 demo board or use a target board of your
own design to allow for access to the desired port pins. Either way, a hardware
connection between the target device’s port and the emulator ’s logic probe connector
is required. See Section 2.5.3 “I/O Port Trace Connections” for details.
If you design your own board, you will also need to a connector for regular debug pins,
i.e., for either standard or high-speed communications. See Section 2.3 “Emulator
Communications with the PC and Target” for connection information.
4.15.2.1
HARDWARE SETUP
To set up the hardware to use I/O Port Trace, do the following:
1. Modify or create a target board, as specified above, so that it accommodates a
connection between the emulator and the device port.
2. Using an unpowered emulator and target board, connect the two using either
standard or high-speed communications.
3. Connect the emulator ’s logic probe pins to the target device’s port pins using
logic probes or other connectors.
4. Power the emulator, and then the target board.
4.15.2.2
MPLAB IDE SETUP
To set up MPLAB IDE software to use I/O Port Trace, do the following:
1. Launch MPLAB IDE and open the project from this tutorial, if it is not already
open.
2. If the MPLAB REAL ICE in-circuit emulator is selected as the programmer, dis-
able it by selecting Programmer>Select Programmer>None .
3. Enable the MPLAB REAL ICE in-circuit emulator as the debug tool by selecting
Debugger>Select Tool>REAL ICE .
4. On the Project toolbar, select “Debug” from the Build Configuration drop-down
list. (For some devices, an i version of the linker script is also necessary for
debugging, e.g., 18F8722i.lkr .)
DS51616B-page 54
? 2008 Microchip Technology Inc.
相关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