• AVR Freaks

Hot!Problem programming PIC32MX parts with PICkit4

Author
__IO__
New Member
  • Total Posts : 3
  • Reward points : 0
  • Joined: 2018/03/13 02:51:29
  • Location: 0
  • Status: offline
2019/12/05 04:13:19 (permalink)
0

Problem programming PIC32MX parts with PICkit4

I have a numnber of parts to program and am able to program them reliably using a RealICE or a PICkit-3 (with an AC164110 RJ11 adapter board) but whan I try to use the PICkit-4, using the exact same target processor, cables and adapter board, I get all manner of problems.  The target device ID is not being read, or an invalid value is returned; the programing fails as the PICkit thinks that the code memory is protected (it isn't) and a variety of ther excuses.
 
I have tried changing the option on the settings page to use low program speed but this doesn't make any difference other than that the error message no longer asks me to use the slow mode.
 
Does anyone have any ideas?
 
The devices that I am programming are
PIC32MX575F512L
PIC32MX564F128L
PIC18F67K22
#1

5 Replies Related Threads

    DevMod1
    Administrator
    • Total Posts : 480
    • Reward points : 0
    • Joined: 2009/02/10 09:34:30
    • Location: 0
    • Status: offline
    Re: Problem programming PIC32MX parts with PICkit4 2019/12/05 09:30:29 (permalink)
    0
    did you make sure you had the adapter connected to the right pins on the PICKit4??  There are 2 extra but the first 6 are exactly the same as PICkit 3.

    _____________________________

    Please read the forum posting guidelines. Do not double post, please help keep these forums professional and comments respectful.
    Please notify the moderators of problems/spam/trolls.
    #2
    zehcorah
    New Member
    • Total Posts : 6
    • Reward points : 0
    • Joined: 2019/10/30 08:11:47
    • Location: Canada, Ontario
    • Status: offline
    Re: Problem programming PIC32MX parts with PICkit4 2019/12/05 09:41:00 (permalink)
    0
    Hi __IO__,
     
    I had a similar issue with my PICkit 4 a couple days ago.  What ended up fixing the issue for me was re-flashing the PICkit firmware using its bootloader.  The steps on how to do this are outlined in section 4.4.2 in the PICkit 4 user guide.
     
    Hope this helps,
     
    Ryan
    #3
    __IO__
    New Member
    • Total Posts : 3
    • Reward points : 0
    • Joined: 2018/03/13 02:51:29
    • Location: 0
    • Status: offline
    Re: Problem programming PIC32MX parts with PICkit4 2019/12/06 01:32:27 (permalink)
    0
    DevMod1 - Yes the adapter is plugged in to the correct pins.  It worked to program the PIC18 and occasionally worked with the PIC32.
    zehcorah  - I can try that but the problem was the same with 2 brand new PICkit4s straight out of the boxes.
     
    #4
    Mysil
    Super Member
    • Total Posts : 3568
    • Reward points : 0
    • Joined: 2012/07/01 04:19:50
    • Location: Norway
    • Status: offline
    Re: Problem programming PIC32MX parts with PICkit4 2019/12/06 06:12:09 (permalink)
    0
    Hi,
    Firmware in a 'new PICkit 4 straight out of the box'
    isn't nessesarily right.
    Firmware for the PICkit 4 is distributed with every new version of MPLAB X,
    and change since PICkit 4 is still undergoing development.
    Depending on what version of MPLAB X is used, automatic update of the firmware in PICkit, might or might not work.
     
    There was sometimes similar problems with PICkit 3 in the past.
    For anyone to know anything specific about this, or for microchip support to help,
    or explain or correct a possible problem:
    You will have to specify which version of MPLAB X you are using,
    and notice and report every message shown during PICkit 4 connection and attempted programming,
    Especially any firmware version number shown.
     
    Do as Ryan suggest in message #3.
     
        Mysil
    #5
    __IO__
    New Member
    • Total Posts : 3
    • Reward points : 0
    • Joined: 2018/03/13 02:51:29
    • Location: 0
    • Status: offline
    Re: Problem programming PIC32MX parts with PICkit4 2019/12/09 03:42:51 (permalink)
    0
    Mysil
     
    Have tried as Ryan suggested but the versions reported for the programmer application and script did not change following the update.  I believe that the MPLAB X (V5.30) had already updated the programmer as required.
    #6
    Jump to:
    © 2020 APG vNext Commercial Version 4.5