patchAVR Downloader/UploaDEr - Patches: patch #7184, Support for PICKit2 programmer


You are not allowed to post comments on this tracker with your current authentication level.

patch #7184: Support for PICKit2 programmer

Submitted by:  Doug <dougy83>
Submitted on:  Tue 04 May 2010 02:29:38 PM UTC  
Category: NonePriority: 5 - Normal
Status: Ready For TestPrivacy: Public
Assigned to: Rene Liebscher <rliebscher>Open/Closed: Closed

(Jump to the original submission Jump to the original submission)

Mon 03 Dec 2012 08:54:23 PM UTC, comment #7:

Changed in svn revision 1122

Rene Liebscher <rliebscher>
Project MemberIn charge of this item.
Sat 01 Dec 2012 06:55:10 AM UTC, comment #6:

pickit2.c Does not compile without USB support because the necessary headers are not included for the dummy pickit2_initpgm and pickit2_nousb_open. Attached patch fixes it by moving #if after the includes.

(file #27008)

Kirill Levchenko <kirill_levchenko>
Wed 15 Aug 2012 06:38:17 PM UTC, comment #5:

Integrated in svn revision 1102.
Tested on Windows XP and Ubuntu 11.10 with ATmega32 and ATtiny2313.

Rene Liebscher <rliebscher>
Project MemberIn charge of this item.
Sun 18 Mar 2012 12:01:55 PM UTC, comment #4:

Here's a full patch of the PICkit2 support that can be applied to version 1068 of the avrdude trunk.

(file #25391)

Paul <prowan69>
Wed 14 Mar 2012 11:15:30 AM UTC, comment #3:

Could you please update the whole patch so it can be used with the current svn revision.

Programmers are now added in pgm_type.[hc] instead patching the lexer and parser files. The interfaces of _paged_load and _paged_write have to be adapted. Most of the functions could be made static. And documentation should be patched too. (see avrdude.texi after line 720 and avrdude.1 after line 830)

Rene Liebscher <rliebscher>
Project MemberIn charge of this item.
Wed 14 Mar 2012 10:52:25 AM UTC, comment #2:

I discovered a bug in this patch and thought I would share. It appears that when writing to avr flash memory, the support code for pickit2 does not correctly compute the length of the final write sequence. As a result the final page commit never occurs. I'm not sure in what cases this was a problem, but it was causing my bootloader write operation to fail during verify. The last page of flash memory was always unwritten.

Uploaded avrdude_pickit2_page_commit_fix.patch

(file #25359)

Paul <prowan69>
Sun 13 Jun 2010 09:03:37 AM UTC, comment #1:

ISP Pinout (AVR - PICKit2 (pin)):
VDD - VDD Target (2) -- possibly optional if AVR self powered
GND - GND (3)
MISO - PGD (4)
SCLK - PDC (5)
MOSI - AUX (6)

Extended commandline parameters:
-x clockrate=<rate> # sets the SPI clocking rate in Hz (default is 100kHz). Alternately the -B or -i options can be used to set the period.
-x timeout=<usb-transaction-timeout> # sets the timeout for USB reads and writes in milliseconds (default is 1500 ms)

Doug <dougy83>
Tue 04 May 2010 02:29:38 PM UTC, original submission:

Only tested with ATMEGA48, windows (7) & linux (fedora)

Doug <dougy83>


Attached Files
file #27008:  pickit2_nousb.patch added by kirill_levchenko (569B - application/octet-stream)
file #20743: added by dougy83 (12KiB - application/x-zip-compressed - This patch doesn't have the absolute paths in it; all filenames are expressed without path.)
file #20426: added by dougy83 (12KiB - application/x-zip-compressed)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by kirill_levchenko (Updated the item)
  • -unavailable- added by rliebscher (Posted a comment)
  • -unavailable- added by prowan69 (Updated the item)
  • -unavailable- added by dougy83 (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 03 Sep 2013 08:03:23 PM UTCrliebscherOpen/ClosedOpen=>Closed
    Sat 01 Dec 2012 06:55:10 AM UTCkirill_levchenkoAttached File-=>Added pickit2_nousb.patch, #27008
    Wed 15 Aug 2012 06:38:17 PM UTCrliebscherStatusNone=>Ready For Test
      Assigned toNone=>rliebscher
    Sun 18 Mar 2012 12:01:55 PM UTCprowan69Attached File-=>Added avrdude_pickit2_support-svn-1068.patch, #25391
    Wed 14 Mar 2012 10:52:25 AM UTCprowan69Attached File-=>Added avrdude_pickit2_page_commit_fix.patch, #25359
    Sun 13 Jun 2010 08:57:00 AM UTCdougy83Attached File-=>Added, #20743
    Tue 04 May 2010 02:29:38 PM UTCdougy83Attached File-=>Added, #20426

    Back to the top

    Powered by Savane 3.1-cleanup1