LockedPICkit 3 Programmer Application Beta Download

Page: 12 > Showing page 1 of 2
Author
MichaelS
Moderator
  • Total Posts : 200
  • Reward points : 0
  • Joined: 2009/06/24 09:57:07
  • Location: Microchip Technology - Chandler, AZ
  • Status: offline
2010/05/16 16:10:28 (permalink)
3 (1)

PICkit 3 Programmer Application Beta Download

Hello PICkit 3 users,

I've posted a public beta version of the stand-alone programmer application for the PICkit 3. It is intended to be similar to the programmer application available for the PICkit 2. Anyone familiar with the PICkit 2's version should have no problem using this.

To install, simply download the ZIP file and run "setup.exe". Installation should work exactly like the PICkit 2. It requires Microsoft's .NET 2.0 runtime to be installed. If you already use the PICkit 2 application, you should have no problems running this.

Please remember that this is a beta release - it shouldn't cause any harm, but one never knows where the bugs are hiding. Please use accordingly.

Not all features are implemented yet. Anything not explicitly disabled should work, though.

Download here. Leave any comments, problems, suggestions etc. in this thread. Thank you in advance for any feedback. I will post new beta versions as new features or bug fixes are available.





Some notes:
  • The application supports all devices supported in MPLAB 8.50 except PIC32. This is not to say it has been tested on all devices. If you have any problems programming any devices, please leave a note here or send me a PM.
  • The application is developed on a Win XP (32-bit) machine but is also tested on Win 7 (32- and 64-bit).
  • The installer doesn't have the .NET 2.0 runtime packaged with it. If you need to install it (unlikely, as it should already be installed on the vast majority of Windows computers), you can download it from Microsoft's site, get it through Windows Update, or you can install the PICkit 2 application with .NET 2.0 already packaged.
  • Device information is currently pulled from a new database being developed internally. It is not perfect yet, so you may see issues from it. Generally these appear as configuration memory verify errors (since that's the most complicated portion of a device's memory).
  • There are still ways to get the application to throw and exception and shut down. Tracking these down is my biggest goal right now. Generally, they come when something goes wrong with the tool, such as unplugging it in the middle of an operation. No crash should be fatal to the system; you should be able to unplug and replug the tool and restart the app to get going again.
  • I've been noticing occasional delays when starting the application (the UI does not present itself). Unplugging the PICkit 3 seems to fix the issue (you can then use "Tools" > "Check Communication" to enable the tool).
  • Do not enable the PICkit 3 as a programmer or debugger in MPLAB while this application is running. They will both try sending messages to the programmer, causing it much confusion.
  • Checksum calculations are disabled in this version while I sort out mismatches with MPLAB. If you want to see them anyway, add the argument "/debug:checksum" (without quotes) to the command line when executing the app. Note that calculations might be different than PICkit 2; the PICkit 2 did not handle multiple code-protect regions or "Zero on CP" devices correctly.
post edited by DevMod1 - 2010/05/20 11:14:20
#1

32 Replies Related Threads

    xiaofan
    Super Member
    • Total Posts : 6247
    • Reward points : 0
    • Joined: 2005/04/14 07:05:25
    • Location: Singapore
    • Status: offline
    RE: PICkit 3 Programmer Application Beta Download 2010/05/16 18:24:38 (permalink)
    5 (1)
    I am glad to see the new development here.

    One missing feature I immediately noticed is the auto-detection of PICs. For example, I connected the PICkit 3 with the demo board with PIC18F45K20, I need to tell the utility that the PIC used is PIC18F45K20 (I even tried to choose the family to PIC18_K_).

    If I did not do that, it throws an exception like this. And the the "Device Family" menu option and the "Device" drop-down box will be disabled and you have to restart the application.

    All in all, a nice start! Thanks.


    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************
    System.NullReferenceException: Object reference not set to an instance of an object.
       at Microchip.PICkit3.Program.CheckAlg()
       at Microchip.PICkit3.FormPICkit3.PreOperationCheck()
       at Microchip.PICkit3.FormPICkit3.buttonRead_Click(Object sender, EventArgs e)
       at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
       at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
       at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
       at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
       at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
       at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
       at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
       at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at System.Windows.Forms.ToolStrip.WndProc(Message& m)
       at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


    ************** Loaded Assemblies **************
    mscorlib
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.3603 (GDR.050727-3600)
        CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    ----------------------------------------
    PICkit 3
        Assembly Version: 0.2.0.2
        Win32 Version: 0.2.0.2
        CodeBase: file:///C:/Program%20Files/Microchip/PICkit%203/PICkit%203.exe
    ----------------------------------------
    System.Windows.Forms
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Drawing
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    System.Configuration
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    ----------------------------------------
    System.Xml
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
        CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------

    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.

    For example:

    <configuration>
        <system.windows.forms jitDebugging="true" />
    </configuration>

    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.





      USB_Links and libusb
    #2
    xiaofan
    Super Member
    • Total Posts : 6247
    • Reward points : 0
    • Joined: 2005/04/14 07:05:25
    • Location: Singapore
    • Status: offline
    RE: PICkit 3 Programmer Application Beta Download 2010/05/16 18:31:44 (permalink)
    0
    ORIGINAL: MichaelS
    Note that calculations might be different than PICkit 2; the PICkit 2 did not handle multiple code-protect regions or "Zero on CP" devices correctly.


    Would you please elaborate a bit more? Thanks.

      USB_Links and libusb
    #3
    FunnyNYPD
    Super Member
    • Total Posts : 1553
    • Reward points : 0
    • Joined: 2007/09/28 20:06:59
    • Location: USA & Canada
    • Status: offline
    RE: PICkit 3 Programmer Application Beta Download 2010/05/16 20:19:35 (permalink)
    0
    Very good. Thanks.
    #4
    Dalpin
    New Member
    • Total Posts : 3
    • Reward points : 0
    • Joined: 2010/05/25 18:47:37
    • Location: 0
    • Status: offline
    RE: PICkit 3 Programmer Application Beta Download 2010/05/25 18:55:10 (permalink)
    0
    Hello everyone,
    I just installed the pickit 3 programmer application and got an "unhandled exception". It doesn't work anymore and I don't know what to do.
    I've tried uninstalling and reinstalling but the problem is still there. The pickit3 process appears but there's no window or anything.
    Does anyone know how to solve this, or how else can I program with the pickit 3?

    Thanks
    #5
    MichaelS
    Moderator
    • Total Posts : 200
    • Reward points : 0
    • Joined: 2009/06/24 09:57:07
    • Location: Microchip Technology - Chandler, AZ
    • Status: offline
    RE: PICkit 3 Programmer Application Beta Download 2010/05/26 10:37:33 (permalink)
    0
    You should see a crash dialog box open. Can you copy the text and put it in a reply here or send it to me in a private message, please?
    #6
    kombat
    New Member
    • Total Posts : 10
    • Reward points : 0
    • Joined: 2008/08/15 22:27:57
    • Location: 0
    • Status: offline
    RE: PICkit 3 Programmer Application Beta Download 2010/05/31 14:39:04 (permalink)
    0
    I'd like to suggest to keep oscilator calibration byte on PIC12 parts. In this version you have to manually read the part and take note of it.
    Cheers
    #7
    MichaelS
    Moderator
    • Total Posts : 200
    • Reward points : 0
    • Joined: 2009/06/24 09:57:07
    • Location: Microchip Technology - Chandler, AZ
    • Status: offline
    RE: PICkit 3 Programmer Application Beta Download 2010/06/01 15:03:53 (permalink)
    0
    I'd like to suggest to keep oscilator calibration byte on PIC12 parts. In this version you have to manually read the part and take note of it.

    Thanks, kombat. The PICkit3 handles oscillator calibration in a special way. Looks like my app doesn't quite deal with it correctly. I'll fix that for the next update.
    post edited by MichaelS - 2010/06/01 15:16:17
    #8
    MichaelS
    Moderator
    • Total Posts : 200
    • Reward points : 0
    • Joined: 2009/06/24 09:57:07
    • Location: Microchip Technology - Chandler, AZ
    • Status: offline
    RE: PICkit 3 Programmer Application Beta Download 2010/06/01 15:45:48 (permalink)
    0
    ORIGINAL: xiaofan

    ORIGINAL: MichaelS
    Note that calculations might be different than PICkit 2; the PICkit 2 did not handle multiple code-protect regions or "Zero on CP" devices correctly.


    Would you please elaborate a bit more? Thanks.

    Sure -

    The PICkit 2's checksum calculation routine understands code protection as "all" or "none". So, for devices with different code protect regions (boot block, etc) it wouldn't split the memory when summing the checksum.

    The checksum algorithm also doesn't handle variations in the calculation routine specified for some device families. The PIC24F04KA200, for example, specifies the checksum be zero if code protection is enabled (instead of summing the just configuration word).

    The PICkit3 app is trying to match MPLAB's checksum calculations, and thus match the programming spec. I'm open to the idea of including an option to show PICkit 2-style checksums if there is a compelling reason to do so.
    #9
    xiaofan
    Super Member
    • Total Posts : 6247
    • Reward points : 0
    • Joined: 2005/04/14 07:05:25
    • Location: Singapore
    • Status: offline
    RE: PICkit 3 Programmer Application Beta Download 2010/06/01 16:26:38 (permalink)
    0
    ORIGINAL: MichaelS
    The PICkit3 app is trying to match MPLAB's checksum calculations, and thus match the programming spec. I'm open to the idea of including an option to show PICkit 2-style checksums if there is a compelling reason to do so.


    I do not think you need to do that.

    But care to fix PICKit 2 PC application to match MPLAB? Smile

      USB_Links and libusb
    #10
    MichaelS
    Moderator
    • Total Posts : 200
    • Reward points : 0
    • Joined: 2009/06/24 09:57:07
    • Location: Microchip Technology - Chandler, AZ
    • Status: offline
    RE: PICkit 3 Programmer Application Beta Download 2010/06/01 16:37:06 (permalink)
    0
    ORIGINAL: xiaofan
    But care to fix PICKit 2 PC application to match MPLAB? Smile

    I will certainly put that on the to-do list.

    Ideally, one could use one application to use either the PICkit 2 or the PICkit 3. Combining the apps is certainly possible and something I'm working towards without having it as an actual milestone. This goal gets easier the more I learn about the internals of the two tools, so it's likely I'll finish developing the PICkit 3 app first, then work on joining them together.

    #11
    gummybear
    New Member
    • Total Posts : 1
    • Reward points : 0
    • Joined: 2010/06/07 04:58:40
    • Location: Saint-Petersburg
    • Status: offline
    RE: PICkit 3 Programmer Application Beta Download 2010/06/07 05:04:54 (permalink)
    0
    Hello. What about support for serial EEPROM devices?
    #12
    MichaelS
    Moderator
    • Total Posts : 200
    • Reward points : 0
    • Joined: 2009/06/24 09:57:07
    • Location: Microchip Technology - Chandler, AZ
    • Status: offline
    RE: PICkit 3 Programmer Application Beta Download 2010/06/08 15:26:12 (permalink)
    0
    Hello. What about support for serial EEPROM devices?

    We are working on a solution for EEPROM devices. I hope to give some more information on that in a week or so.
    #13
    vincomgo
    New Member
    • Total Posts : 1
    • Reward points : 0
    • Joined: 2010/06/17 18:44:01
    • Location: 0
    • Status: offline
    Re: RE: PICkit 3 Programmer Application Beta Download 2010/06/17 19:06:35 (permalink)
    0
    nice instruction;) tks guys:D

    post edited by vincomgo - 2010/06/17 19:12:56
    #14
    TechFan01
    Junior Member
    • Total Posts : 105
    • Reward points : 0
    • Joined: 2010/01/29 14:38:02
    • Location: 0
    • Status: offline
    Re:PICkit 3 Programmer Application Beta Download 2010/06/28 12:18:53 (permalink)
    0
    Hi, Michael,

    I'm moving on PICkit3 for PIC18F85K22 and 18F87j60, is it right choice? and does your beta vision work them too?

    in addition, the header(AC162064) can work for both devices, is it true?

    Best Regards,

    T.F.
    #15
    MichaelS
    Moderator
    • Total Posts : 200
    • Reward points : 0
    • Joined: 2009/06/24 09:57:07
    • Location: Microchip Technology - Chandler, AZ
    • Status: offline
    Re:PICkit 3 Programmer Application Beta Download 2010/06/28 16:32:26 (permalink)
    0
    TechFan01

    Hi, Michael,

    I'm moving on PICkit3 for PIC18F85K22 and 18F87j60, is it right choice? and does your beta vision work them too?

    in addition, the header(AC162064) can work for both devices, is it true?

    Best Regards,

    T.F.

    Answered in your original post.

    #16
    LJSteve
    Senior Member
    • Total Posts : 125
    • Reward points : 0
    • Joined: 2010/04/11 06:32:56
    • Location: 0
    • Status: offline
    Re:PICkit 3 Programmer Application Beta Download 2010/06/29 13:59:25 (permalink)
    0
    So I have a strange situation where programming with the beta programmer results in different behavior than programming with PICkit 3 through MPLAB.

    I use PICkit 3 to load a bootloader onto a PIC18F66J60. The bootloader uses the Ethernet LEDs to indicate status. When the main code is loaded and run it sets the LEDs to be controlled by the Ethernet MAC. This system works fine when I program the bootloader through MPLAB, but when programmed through the beta programmer the main code is unable to set the LEDs to MAC control. Any idea what's going on here?

    The same hex file and program are used to load the main firmware once the bootloader is on. 
    #17
    MichaelS
    Moderator
    • Total Posts : 200
    • Reward points : 0
    • Joined: 2009/06/24 09:57:07
    • Location: Microchip Technology - Chandler, AZ
    • Status: offline
    Re:PICkit 3 Programmer Application Beta Download 2010/06/29 14:05:28 (permalink)
    0
    The same hex file and program are used to load the main firmware once the bootloader is on. 

    Hmm... Are you unplugging the programmer from your board after programming? Could you send me the hex file (in a private message)? I would like to compare the memory contents when using the two applications.
    #18
    LJSteve
    Senior Member
    • Total Posts : 125
    • Reward points : 0
    • Joined: 2010/04/11 06:32:56
    • Location: 0
    • Status: offline
    Re:PICkit 3 Programmer Application Beta Download 2010/06/29 14:28:46 (permalink)
    0
    Here's a quick excerpt from the data sheet:

    Devices of the PIC18F97J60 family do not use persistent
    memory registers to store configuration information.
    The configuration bytes are implemented as volatile
    memory which means that configuration data must be
    programmed each time the device is powered up.


    So I don't see how the programmer influences anything related to the configuration.
    #19
    LJSteve
    Senior Member
    • Total Posts : 125
    • Reward points : 0
    • Joined: 2010/04/11 06:32:56
    • Location: 0
    • Status: offline
    Re:PICkit 3 Programmer Application Beta Download 2010/06/29 14:30:30 (permalink)
    0
    I do remove the programmer and power cycle. Though, I have tried just about every combination there. 
    post edited by LJSteve - 2010/06/29 16:48:13
    #20
    Page: 12 > Showing page 1 of 2
    Jump to:
    © 2019 APG vNext Commercial Version 4.5