• AVR Freaks

Hot!Pikit 3 with PIC32MX130F256B SPDIP

Author
lorenrus
Starting Member
  • Total Posts : 33
  • Reward points : 0
  • Joined: 2018/10/30 09:27:50
  • Location: 0
  • Status: offline
2020/04/04 04:08:49 (permalink)
0

Pikit 3 with PIC32MX130F256B SPDIP

Hello
 
i'm trying to program this MCU. When i push program, on MPLAB X IDE v 5.35, the result is in image that i linked.
 
After i tried to program another MCU, PIC18f4520, and the result is OK!
 
The connections are the same and i'm not using, for both two case, the pikit3 as a PSU. To get 3.3 V i'm using a external PSU.
 
So can you help me to understand why am i receiving this error message ? And why using PIC32 i have an error and using PIC 18 i have NO error.
 
Best regards 
 
 

Attachment(s)

Attachments are not available: Download requirements not met
#1

16 Replies Related Threads

    ric
    Super Member
    • Total Posts : 26942
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: Pikit 3 with PIC32MX130F256B SPDIP 2020/04/04 04:23:04 (permalink)
    0
    correcting
     

    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!
    #2
    lorenrus
    Starting Member
    • Total Posts : 33
    • Reward points : 0
    • Joined: 2018/10/30 09:27:50
    • Location: 0
    • Status: offline
    Re: Pikit 3 with PIC32MX130F256B SPDIP 2020/04/04 04:30:36 (permalink)
    0
    Hello and thanks for the reply.
     
    I mean that the connection from the pikit are the same. 
     
    Pin 1 to Vpp with pull up 10k.
    Pin 2 to Vdd of the MCU
    Pin 3 to GND of the MCU
    Pin 4 to PGED of the MCU
    Pin  5 to PGEC of the MCU
     
    For PIC32 also i have theese connections:
     
    - Vcap to GND with 10uF
    - AVss to GND
    - AVdd to Vdd
     
    The external power supply is recognized in fact its problem is that it does not read me the ID of the micro.
     
    Thank you
    #3
    ric
    Super Member
    • Total Posts : 26942
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: Pikit 3 with PIC32MX130F256B SPDIP 2020/04/04 04:30:55 (permalink)
    0
    lorenrus
    After i tried to program another MCU, PIC18f4520, and the result is OK!
     
    The connections are the same ...

    The PIC18F4520 is a 40 pin chip, which is not a "SPDIP".
    Did you mean a PIC18F2520 ?
    Even then, the programming and power pins of a PIC18F2520 are not the same as a PIC32MX130F256B.
    Rather than saying "the same", reveal what pins you connected to.
    How have you connected up all the PIC32's power pins?
     
     

    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
    lorenrus
    Starting Member
    • Total Posts : 33
    • Reward points : 0
    • Joined: 2018/10/30 09:27:50
    • Location: 0
    • Status: offline
    Re: Pikit 3 with PIC32MX130F256B SPDIP 2020/04/04 04:55:10 (permalink)
    0
    I saw that the connection are the same FROM the pikit 3. It is obvious that then on the micro will go into different pins being the two different micro.
     
    SPID is refer to PIC 32 and not to PIC 18.
     
    Connections in PIC32:
     
    Pin 1 of Pikit3 to Vpp with pull up 10k.
    Pin 2 of Pikit3 to Vdd of the MCU
    Pin 3 of Pikit3 to GND of the MCU
    Pin 4 of Pikit3 to PGED of the MCU
    Pin 5 of Pikit3 to PGEC of the MCU
     
    - Vcap of PIC 32 to GND with 10uF
    - AVss of PIC 32 to GND
    - AVdd to Vdd
     
    I didn't connect anything else.
     
    Than you
    #5
    crennolet
    Super Member
    • Total Posts : 191
    • Reward points : 0
    • Joined: 2012/03/15 09:51:58
    • Location: 0
    • Status: offline
    Re: Pikit 3 with PIC32MX130F256B SPDIP 2020/04/04 07:35:05 (permalink)
    +1 (1)
    I've programmed quite a few pic32mx chips with pickit 3 units. Every time I've had a problem like yours it's been due to a bad connection. I've had broken wires (invisible inside insulation), bent pins on the chip -- and of course there've been a few "operator errors" (miswired connections.)
     
    I notice you say that you have connected them by name. Tell us the pin numbers, just as a check.
     
    If your connections are for certain right and good, then you may have a bad chip or a bad pickit 3 (both of these very low probabilities.)
    #6
    NorthGuy
    Super Member
    • Total Posts : 6072
    • Reward points : 0
    • Joined: 2014/02/23 14:23:23
    • Location: Northern Canada
    • Status: online
    Re: Pikit 3 with PIC32MX130F256B SPDIP 2020/04/04 07:43:55 (permalink)
    0
    Connection is the most probable cause. PIC32 has 3 PGED/PGEC pairs. I understand this is the top secret which one you use, but you can try a different one without divulging the sacred information.
     
    If you mistakenly tried to program PIC32 from PIC18 project (which applies 13V to Vpp), your PIC32 is now dead.
    #7
    lorenrus
    Starting Member
    • Total Posts : 33
    • Reward points : 0
    • Joined: 2018/10/30 09:27:50
    • Location: 0
    • Status: offline
    Re: Pikit 3 with PIC32MX130F256B SPDIP 2020/04/04 07:46:19 (permalink)
    0
    Hi and thanks for the reply.
     
    Pin 1 of Pikit3 to Vpp with pull up 10k.
    Pin 2 of Pikit3 to Vdd of the MCU
    Pin 3 of Pikit3 to GND of the MCU
    Pin 4 of Pikit3 to PGED of the MCU
    Pin 5 of Pikit3 to PGEC of the MCU
     
    refers to image linked
     
    Thank you

    Attachment(s)

    Attachments are not available: Download requirements not met
    #8
    lorenrus
    Starting Member
    • Total Posts : 33
    • Reward points : 0
    • Joined: 2018/10/30 09:27:50
    • Location: 0
    • Status: offline
    Re: Pikit 3 with PIC32MX130F256B SPDIP 2020/04/04 07:52:57 (permalink)
    0
    Hello and thank you for the answer
     
    I am not so clueless as to program the micro controller PIC 32 with the settings and code of pic 18. I did the example of pic 18 to say that my programmer works so there must be some mistake that I make in linking it with THE PIC 32. I have been working in this industry for several years and this is the first time that I have had such a thing in programming a micro.
    That said I saw through Mplab's MCC tool that initially the PGED and PGEC enable pin pairs were number three, so I tried them but nothing. I also did the test with the other two but nothing.
     
    Thank you
    #9
    crennolet
    Super Member
    • Total Posts : 191
    • Reward points : 0
    • Joined: 2012/03/15 09:51:58
    • Location: 0
    • Status: offline
    Re: Pikit 3 with PIC32MX130F256B SPDIP 2020/04/04 08:03:37 (permalink)
    +1 (1)
    Time to swap chips and see what happens, if you can. If it was on my bench, I'd get a solderless breadboard and  put the chip in the breadboard with only the pickit connections and the capacitor (you don't need the pullup on MRST/ for this) and try to see if you can "talk" to the chip.
     
    #10
    lorenrus
    Starting Member
    • Total Posts : 33
    • Reward points : 0
    • Joined: 2018/10/30 09:27:50
    • Location: 0
    • Status: offline
    Re: Pikit 3 with PIC32MX130F256B SPDIP 2020/04/04 08:08:20 (permalink)
    0
    Thank you very much
     
    Sure, if you want/can we message on telegram.
     
    Thank you 
    #11
    lorenrus
    Starting Member
    • Total Posts : 33
    • Reward points : 0
    • Joined: 2018/10/30 09:27:50
    • Location: 0
    • Status: offline
    Re: Pikit 3 with PIC32MX130F256B SPDIP 2020/04/04 08:32:40 (permalink)
    0
    Done, but the result is the same and link the result in the image. 
    I tried on PGED1-PGEC1, PGED2-PGEC2 and PGED3-PGEC3. But nothing.
     
    What do you think ?
     
    Thank you 

    Attachment(s)

    Attachments are not available: Download requirements not met
    #12
    crennolet
    Super Member
    • Total Posts : 191
    • Reward points : 0
    • Joined: 2012/03/15 09:51:58
    • Location: 0
    • Status: offline
    Re: Pikit 3 with PIC32MX130F256B SPDIP 2020/04/04 09:54:27 (permalink)
    0
    Sure looks like a bad chip could be your problem. It could, however, be a problem with the pickit 3 -- although the unit works with a pic18, it uses different firmware to work with a pic32.
     
    If you can, swap the chip out. Even if you don't have another pic32mx130f256b, another pic32mx chip that you can connect to would eliminate the pickit as the problem.
     
    Realistically, at this point there are only two real possibilities: bad chip, or a weird problem with the pickit 3.
     
    I happen to have a pic32mx110 device around here somewhere. I'll see if it works and what it reports when I connect it.
     
    #13
    lorenrus
    Starting Member
    • Total Posts : 33
    • Reward points : 0
    • Joined: 2018/10/30 09:27:50
    • Location: 0
    • Status: offline
    Re: Pikit 3 with PIC32MX130F256B SPDIP 2020/04/04 10:00:52 (permalink)
    0
    Ok perfect, If you want you can write me on Telegram username is lorenrus.
    Thank you very much for the support
     
    #14
    crennolet
    Super Member
    • Total Posts : 191
    • Reward points : 0
    • Joined: 2012/03/15 09:51:58
    • Location: 0
    • Status: offline
    Re: Pikit 3 with PIC32MX130F256B SPDIP 2020/04/04 10:29:17 (permalink)
    +1 (1)
    OK, so I found a pic32mx120f032b and hooked it up (using PGED 1 and PGEC 1 exactly like your chip.) I enabled the pickit 3 to power the device. I then asked mplabx to hold the chip in reset.
     
    I got:
    Currently loaded firmware on PICkit 3
    Firmware Suite Version.....01.56.07
    Firmware type..............PIC32MX
    Programmer to target power is enabled - VDD = 3.250000 volts.
    Target device PIC32MX120F032B found.
    Device ID Revision = A0
     
    Oops. I reread your first comment -- you are using external power. Frankly, at this point I think you have a bad chip.
     
    post edited by crennolet - 2020/04/04 10:33:16
    #15
    lorenrus
    Starting Member
    • Total Posts : 33
    • Reward points : 0
    • Joined: 2018/10/30 09:27:50
    • Location: 0
    • Status: offline
    Re: Pikit 3 with PIC32MX130F256B SPDIP 2020/04/04 10:53:27 (permalink)
    0
    Now i try with new MCU PIC 32. Same connection and IT WORKS. I don't why and how, probably the first MCU was no good.
     
    Really thank you very much for the support.
     
    Best regards
    #16
    NorthGuy
    Super Member
    • Total Posts : 6072
    • Reward points : 0
    • Joined: 2014/02/23 14:23:23
    • Location: Northern Canada
    • Status: online
    Re: Pikit 3 with PIC32MX130F256B SPDIP 2020/04/04 13:42:53 (permalink)
    0
    lorenrus
    I don't why and how, probably the first MCU was no good.



    I think you might've hit the "program" button while your PIC18 project was active. This is enough to kill PIC32.
    #17
    Jump to:
    © 2020 APG vNext Commercial Version 4.5