• AVR Freaks

Hot!Pickit 4 problems

Author
Fausti
New Member
  • Total Posts : 24
  • Reward points : 0
  • Joined: 2014/11/23 11:59:51
  • Location: Germany
  • Status: offline
2020/02/14 03:30:17 (permalink)
0

Pickit 4 problems

Hello,
my configuration is :
MPLABX 5.30
PIC18F46K20 supplied by 3,3V
Pickit3: several units
Pickit4: One of the first units 10-10094-R1 BUR180524135
Distance Pickit to MCU: 60 mm (2.4 Inch)
Programming connector as attached schematic picture1. Pin 2 not connected. No series resistor 100 Ohm to MCLR/VPP.
Option Pickit “Power target from Pickit_” is activated
Programming from Laptop with power supply not grounded.
 
With Pickit3s no problems in normal programming and Programmer_to_Go.
Pickit4:
When normal programming, the fault comes (picture2), but programming is successful.
In “Programmer_to_Go” mode, message in picture3 will appear.
After reset USB power (off>on)  the Pickit4 is blinking green > P2G mode
After pressing the button on PK4, first slow blinking purple, after 2 seconds blinking fast red.
Programming not success full.
The SD card (8GB) was formatted by my cell phone before
What is the problem ????

Attached Image(s)

#1

12 Replies Related Threads

    mpgmike
    Super Member
    • Total Posts : 387
    • Reward points : 0
    • Joined: 2014/01/23 17:27:06
    • Location: NJ
    • Status: offline
    Re: Pickit 4 problems 2020/02/14 04:46:11 (permalink)
    0
    I think "Pin 2 not connected" is the issue.  The PICKit looks for voltage.  If none found, it won't try to erase, program,verify, etc.

    I don't need the world to know my name, but I want to live a life so all my great-grandchildren proudly remember me.
    #2
    Fausti
    New Member
    • Total Posts : 24
    • Reward points : 0
    • Joined: 2014/11/23 11:59:51
    • Location: Germany
    • Status: offline
    Re: Pickit 4 problems 2020/02/14 04:52:56 (permalink)
    0
    No. Have connected Pin2 if ICSP to 3.3V and disable “Power target from Pickit_”. >>  Not working.
     
    In the mean time I have read other threads here.  What about the floating pin RB5/PGM ?
    After ERASE the chip (also fuse bits) the
    #pragma config LVP = OFF  
    will be on for a short time ???
     
    #3
    ric
    Super Member
    • Total Posts : 26091
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: Pickit 4 problems 2020/02/14 06:12:30 (permalink)
    0
    What else is connected to the CSEEP# net (i.e. the RB5/PGM pin)?
    Yes, you do need to keep that pin low during programming for reliable programming.

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #4
    Fausti
    New Member
    • Total Posts : 24
    • Reward points : 0
    • Joined: 2014/11/23 11:59:51
    • Location: Germany
    • Status: offline
    Re: Pickit 4 problems 2020/02/14 06:15:31 (permalink)
    0
    Ric, only this is connected (see attached)

    Attached Image(s)

    #5
    Fausti
    New Member
    • Total Posts : 24
    • Reward points : 0
    • Joined: 2014/11/23 11:59:51
    • Location: Germany
    • Status: offline
    Re: Pickit 4 problems 2020/02/14 06:17:32 (permalink)
    0
    Maybe wrong to pull PGM to high.
    But why is the Pickit3 working without problems ??
     
    #6
    ric
    Super Member
    • Total Posts : 26091
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: Pickit 4 problems 2020/02/14 06:26:46 (permalink)
    0
    Fausti
    Maybe wrong to pull PGM to high.
    But why is the Pickit3 working without problems ??

    Dumb luck is all I can suggest.
    The PK3 must have been using slightly different timing, and just getting away with it.
     
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #7
    Fausti
    New Member
    • Total Posts : 24
    • Reward points : 0
    • Joined: 2014/11/23 11:59:51
    • Location: Germany
    • Status: offline
    Re: Pickit 4 problems 2020/02/17 00:10:19 (permalink)
    0
    Hello,
    I have studied the data sheet of PIC18F46K20 again.
    It says:
    " When Single-Supply Programming
    is enabled, the microcontroller can be programmed
    without requiring high voltage being applied to the
    MCLR/VPP/RE3 pin, but the RB5/KBI1/PGM pin is then
    dedicated to controlling Program mode entry and is not
    available as a general purpose I/O pin."
     
    So if I use "#pragma config LVP = OFF", then I can use this pin as an I/O.
    No requirements written in the data sheet, that this pin must be pulled to ground. 
     
    Again: Pickit3 is working, Pickit4 not.  So it must be a mistake in Pickit4 design/firmware.
    #8
    ric
    Super Member
    • Total Posts : 26091
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: Pickit 4 problems 2020/02/17 05:17:48 (permalink)
    0
    That documents what happens AFTER PROGRAMMING.
    It says nothing about what is happening during the programming cycle.
    After designing my own programmers, and programming several thousand chips, I have had a little experience in this area.
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #9
    Fausti
    New Member
    • Total Posts : 24
    • Reward points : 0
    • Joined: 2014/11/23 11:59:51
    • Location: Germany
    • Status: offline
    Re: Pickit 4 problems 2020/02/18 02:09:19 (permalink)
    0
    Hello,
    now  I have removed the pull-up resistor R330  and installed a 10K pull down to the PGM pin.
    Result: Nothing changes. Still problems.
     
    ----------------------
    Connecting to MPLAB PICkit 4...
    Currently loaded versions:
    Application version............00.05.41
    Boot version...................01.00.00
    Script version.................00.03.33
    Script build number............0540a22e50
    Target voltage detected
    Target Device ID (0x2000) is an Invalid Device ID. Please check your connections to the Target Device.
    Calculating memory ranges for operation...
    Erasing...
    The following memory area(s) will be programmed:
    program memory: start address = 0x0, end address = 0x9cbf
    program memory: start address = 0xf540, end address = 0xffff
    configuration memory
    Programming/Verify complete
    ----------------------
    P2G  still not working.
     
    Also I can not send an file to PK4 for P2G mode, if the PK4 is not connected to the target:
     
    Connecting to MPLAB PICkit 4...
    Currently loaded versions:
    Application version............00.05.41
    Boot version...................01.00.00
    Script version.................00.03.33
    Script build number............0540a22e50
    The configuration is set for the target board to supply its own power but no voltage has been detected on VDD. Please ensure you have your target powered up and try again.
    Connection Failed.
     
    With PK3 i can send image to PK3  without PK3 connected to the target.
     
    Also have changed the USB cable >> still problems.
    #10
    Fausti
    New Member
    • Total Posts : 24
    • Reward points : 0
    • Joined: 2014/11/23 11:59:51
    • Location: Germany
    • Status: offline
    Re: Pickit 4 problems 2020/02/18 02:39:29 (permalink)
    0
    Have put a 100 Ohm reseistor in series into MCLR line  >>  Still problems.
     
    --------------
     
    Connecting to MPLAB PICkit 4...
    Currently loaded versions:
    Application version............00.05.41
    Boot version...................01.00.00
    Script version.................00.03.33
    Script build number............0540a22e50
    Target voltage detected
    Target Device ID (0x2000) is an Invalid Device ID. Please check your connections to the Target Device.
    Calculating memory ranges for operation...
    Erasing...
    The following memory area(s) will be programmed:
    program memory: start address = 0x0, end address = 0x9cbf
    program memory: start address = 0xf540, end address = 0xffff
    configuration memory
    When using High voltage programming and Target Power, a 100 Ohm resistor is required in series with MCLR if PICkit 4 will be powered from the target. Please refer to the PICkit 4 Readme for more details.
    Sending programmer to go information to the debug tool
    The programmer to go image has been created at P:/Elektro/Projekte/270542_CMB3/08-PIC-Programm/CMB3_128_Test.X/debug/default/CMB3_128_Test_ptg
    The debug tool is in programmer to go mode.
    Programmer to go is currently in beta mode.
    Programming/Verify complete
     
     
    #11
    Fausti
    New Member
    • Total Posts : 24
    • Reward points : 0
    • Joined: 2014/11/23 11:59:51
    • Location: Germany
    • Status: offline
    Re: Pickit 4 problems 2020/02/18 07:02:07 (permalink)
    0
    Have removed U301 from the PGC and PGD lines  >>> Still problems.
    Have tested PK4 with an other board  (PIC18F46K20)  >>> Still problems
    Have tested other product with PIC18F4620  >>> PK4 is working fine !!
     
     
    #12
    Fausti
    New Member
    • Total Posts : 24
    • Reward points : 0
    • Joined: 2014/11/23 11:59:51
    • Location: Germany
    • Status: offline
    Re: Pickit 4 problems 2020/03/05 03:50:27 (permalink)
    0
    Have updated MPLABX to version 5.35
    Now P2G is working with PK4 power from USB.
    PK4 powered by target in P2G is not working (100 Ohm resistor to MCLR is installed).
    #13
    Jump to:
    © 2020 APG vNext Commercial Version 4.5