Release Notes for PICkit® 2 Development Tool

MPLAB® IDE v8.20

Firmware Version 2.32.00

Software DLL Version 0.0.3.61

January 15, 2009

Table of Contents

1      Device Support

2      Operating System Support

3      Reference Documents

4      What's New in v8.20

5      Repairs and Enhancements Made in v8.20

6      Known Problems

1         Device Support

Click the link below to see device support for “PICkit 2 Debugging” (PK2D) and “PICkit 2 Programming” (PK2P).

·         Device Support List

1.1        Debugging Considerations

For low pin-count devices (8 to 28 pins), a Header board is usually required. See the Header Board Specification (DS51292) or Header help file (hlpHeader.chm) for a list of available headers by device.

For high pin-count devices (40 to 100 pins), a Header board may be available, but is not required. See the Header Board Specification (DS51292) or Header help file (hlpHeader.chm) for a list of available headers for a particular device.

PICkit 2 does not support the optional header for the following devices at this time:

dsPIC33F

PIC24F/H

NOTE: To connect PICkit 2 to a debug header board requires the AC164110 RJ-11 to ICSP Adapter.

NOTE: PICkit 2 reserves 64 bytes less flash memory than the MPLAB ICD 2 for the following devices:

PIC18F2682

PIC18F2685

PIC18F4682

PIC18F4685

 

 

2         Operating System Support

This tool has been tested under the following operating systems:

Windows® 2000 SP4, Windows XP SP2, and Windows Vista™ (32-bit and 64-bit) OSs

NOTE: Windows NT® and Windows 98/ME OSs are NOT supported.

IMPORTANT NOTICE: Beginning with MPLAB IDE v7.51, MPLAB IDE and PICkit 2 will no longer be tested on Windows 98, Windows ME, or Windows NT® OSs. MPLAB IDE and PICkit 2 may continue to work under these operating systems, but their operation will no longer be verified through testing.

3         Reference Documents

The following documents may be found on our website or MPLAB IDE CD-ROM:

·         PICkit 2 Development Programmer/Debugger User's Guide - DS51553

·         Low Pin Count User's Guide - DS51556

·         44-Pin Demo Board User’s Guide – DS41296

·         Header Specification - DS51292

·         Programming Specifications for devices - various DS numbers

·         Development Tool Selector

4         What's New in v8.20

·         Device EEPROM Data contents may optionally be preserved during programming.  When using this option, during programming the contents of the device EEPROM memory is read into the MPLAB IDE before the device is erased and then reprogrammed back into the device.  This causes a Program operation to update the MPLAB IDE EEPROM memory buffer with the contents of the device EEPROM memory, at which time the previous buffer content will be lost.  To enable this feature when using PICkit 2, select Programmer > Settings or Debugger > Settings.  On the Settings tab, check the checkbox for the setting “Preserve device EEPROM”.  Uncheck this option to overwrite the device EEPROM memory with the MPLAB IDE EEPROM memory buffer when programming.

·         Debug support for the PIC18F1330-ICD header, dsPIC33FJxxGSxxx family devices, PIC18F46J11 and PIC18F46J50 devices, and the PIC18F14K22.

·         Custom user setting of the PICkit 2 VDD voltage output is now possible in the MPLAB IDE.  To change the PICkit 2 VDD voltage, select Programmer > Settings or Debugger > Settings when PICkit 2 is selected, and go to the “Settings” tab.  A textbox allows the user to specify a VDD voltage within the supported voltage range of the current device.  If the checkbox “Set VDD Voltage to:” is checked, the specified voltage will be applied instead of the device default voltage.  If the check box is unchecked, the default voltage will be used for VDD regardless of the textbox value.
If the PICkit 2 option “Use target power always” is checked, then the VDD Voltage checkbox and value are ignored.

·         The MPLAB IDE will now warn the user (PKWarn0010) with a popup dialog if it needs to download new PICkit 2 OS firmware, giving the user the ability to abort the download process.  Note that MPLAB will not connect to a PICkit 2 unit until it has been upgraded to the require OS firmware version or later.  This popup and warning may be disabled in Programmer > Settings or Debugger > Settings on the “Warnings” tab by unchecking the PKWarn0010 checkbox.  PICkit 2 warnings PKWarn0001 and PKWarn0002 have been deprecated and are no longer used.

·         The MPLAB IDE now properly recognizes and downloads OS firmware to a PICkit 2 unit already in Bootloader mode.

·         PIC16F886 and PIC16F887 reserved file registers when debugging were changed from file registers 0x165-0x170 to 0x1E5-0x1F0 since v8.15.

5         Repairs and Enhancements Made in v8.20

·         An issue preventing the use of a small portion of flash at the end of Program Memory in PIC18 J-series and PIC24, dsPIC30, and dsPIC33 devices in Debugger mode has been fixed.  The entire flash memory space is available for user code in these devices during Debugging.

·         Fixed an issue with some Midrange (PIC12, PIC16) devices where a target issue preventing entry in Debug Mode (PKError0028) would cause Program Memory address 0 to be set to a “GOTO 0” instruction requiring rebuilding the program.

·         The option “Reset device to the beginning of main function” in Configure > Settings dialog “Debugger” tab now works correctly with devices where program memory breakpoints were previously set with non-zero pass counts.

·         MPLAB IDE PICkit 2 now has more robust VDD and VPP error detection and recovery.

·         The error “Unable to set VDD” has been fixed for some PICkit 2 supported devices.

·         The VDD range checking when using target power has been loosened slightly to account for some PICkit 2 VDD measurement errors.

·         An issue with displaying PICkit 2 Unit IDs of 14 or 15 characters has been corrected.  MPLAB IDE now displays up to 14 character Unit IDs.

6         Known Problems

The following is a list of known problems. For more information on operation, please see the online help file for the PICkit 2 (hlpPICkit2.chm). Bolded prefix represents internal tracking numbers.

6.1        General Issues

·         Do not change the selected device (Configure > Select Device…) when PICkit 2 is actively selected as the Debugger.  Doing so may cause PICkit 2 to hang at the next debug operation.  Deselect PICkit 2 as the debugger (Debugger > Select Tool > None) before changing the device, and then reselect PICkit 2 as the debugger afterwards to ensure proper operation.

·         The Programming Executive (PE) for PIC24H and dsPIC33F parts may fail on certain programming ports of certain 44-Pin devices. Known problems exist with using the PGC3/PGD3 port on the following devices:

PIC24HJ16GP304, PIC24HJ32GP204, dsPIC33FJ16GP304, dsPIC33FJ32GP204, dsPIC33FJ16MC304, dsPIC33FJ32MC204

If a “PE Error” is frequently encountered in the MPLAB IDE Output Window, try using a different PGC/PGD programming port pair on the device.

·         To use the PICkit 2 as a debugger, two 4.7KW pull-down resistors are needed on pins ICSPDAT and ICSPCLK for units with a black pushbutton.  Units with a red pushbutton have the pull-down resistors already internal to the unit.

·         Freeze Peripherals for PIC16F devices are not supported at this time.

6.2        System Service Requests

PK2-17: 

When the PIC18F8680 Oscillator Config bits are set for "HS - hardware enabled 4x PLL", the first attempted ICSP communication after VDD is applied fails. Suggested work-around:

PICkit 2 Programmer Application

If powering from PICkit 2:

1) Check the VDD PICkit 2 "On" checkbox under the Microchip logo.

2) Select Device Family > PIC18F until the PIC18F8680 is detected.

3) It should now program properly as long as VDD is not interrupted.

 

If powering externally:

1) Select Device Family > PIC18F until the PIC18F8680 is detected.

2) It should now program properly as long as VDD is not interrupted.

 

PICkit 2 from MPLAB IDE

If powering from PICkit 2:

1) This only needs be done after first selecting PICkit 2 as the programmer, or after PICkit 2 is first connected to the target.

2) Select Programmer > Verify - it doesn't matter the results; this is just to the 8680 out of the problem state.

3) It should now program properly as long as VDD is not interrupted.

 

If powering externally:

1) This only needs be done after first applying power and connecting PICkit 2 to the target board.

2) Select Programmer > Verify - it doesn't matter the results; this is just to the 8680 out of the problem state.

3) It should now program properly as long as VDD is not interrupted.

PK-26

Download OS operation brings MCLR to VDD when PICkit 2 is selected as programmer.

PK2-46:

PICkit 2 may not enter debug mode when 32 KHz LP oscillator is selected as clock source for PIC16F505, PIC12F508, PIC12F509.

ICD2-81

MPLAB PICkit 2 fails to program/verify the PIC24FJ128GA010 device when user code does runtime flash erase /write operation. It appears the device is executing code before the full programming cycle is complete.

For PIC24F devices during a programming/verify operation (or subsequent verification operation) of user code that performs self-writes and/or self-erases to program space, a verify sequence may fail if the code execution occurs within the first execution cycles following reset.

Workaround: Place a delay in your code before the code section that performs the self-write and/or self-erase.

The specific delay value may need to be adjusted, but 100 ms would be a conservative value to start

out with. Here is a C language example that illustrates the workaround:

 

int main (void)

{

 

    // Place 100 ms delay here before any self-write/self-erase code

 

        .       .       .

        .       .       .

        .       .       .

 

}

.