PIC32MX250 minimal breadboard setup + PICKit 3

Page: 123 > Showing page 1 of 3
Author
sparkbuzz
Super Member
  • Total Posts : 172
  • Reward points : 0
  • Joined: 2013/03/22 02:32:41
  • Location: South Africa
  • Status: offline
2013/08/23 02:59:59 (permalink)
0

PIC32MX250 minimal breadboard setup + PICKit 3

I'm not really sure if this question belongs in the General PIC32 Topics category, or under Programmers (MPLAB PM3, PICSTART Plus, PICkit 2, PICkit 3), so admin, do feel free to move it.
 
I'm attempting to setup a PIC32MX250F128 on a breadboard and want to hook it up to my new PICKit 3 programmer. Things are going a bit pear shaped, as MPLAB X is giving me the following errors when trying to refresh or program the MCU:  
 
Connecting to MPLAB PICkit 3... 
Firmware Suite Version.....01.28.92
Firmware type..............PIC32MX
Target detected
Failed to get Device ID
 
I've been through the MCU datasheets and the PICKit 3 user manual, over and over, but I keep missing something small that's causing a failure. I've rechecked that all my Vdd and Vss pins are connected and bypassed with caps where needed. VCap is connected to a 10µF Tantalum capacitor. I've checked that my tantalum cap for VCap is the right way around, and as close to the pins as possible. It doesn't seem like there are any loose connections, I checked each and every one with a multimeter. Also Vdd is supplying a steady +/- 3.3V from the 5V to 3.3V voltage regulator, but I've also tried disconnecting this supply and powering the circuit with the PICKit 3 instead. I'm using PGED3 + PGEC3 to connect to the PICKit 3.   Should I rather use PGED1 + PGEC1 instead, since that would eliminate that ugly 90 degree bend in the blue and green wires, and shorten the connection a bit, right? Anycase, I doubt this is causing my issue...
 
Here's my Eagle CAD schematic so far (the reset button bit is absent from my breadboard for now):   
 

 
And a couple of photos on the current breadboard setup:      
 

 

 
I've configured MPLAB X to use the PICKit 3, power is set to supply 3.375V, "Erase All Before Program" is ticked. When I click refresh in the MPLAB X Dashboard I get the above mentioned error, as well as when I'm trying to program the device.   I suspected that I might have bricked my MCU by accident, so I swapped the PIC32MX250F128B with a new one, in case this was the case, however, the problem still persists.
 
I've spent weeks doing research, reading datasheets and it took me quite a couple of hours to setup the board, cutting and trimming each wire to keep connections short. I've really worked hard on this, but I really need help.
 
Any idea what could be wrong with my setup?   
post edited by josef.van.niekerk@gmail.com - 2013/08/23 03:17:32
#1

41 Replies Related Threads

    DarioG
    Allmächtig.
    • Total Posts : 54081
    • Reward points : 0
    • Joined: 2006/02/25 08:58:22
    • Location: Oesterreich
    • Status: offline
    Re:PIC32MX250 minimal breadboard setup + PICKit 3 2013/08/23 03:05:03 (permalink)
    0
    Breadboards are usually "unsafe" to use with MCUs, but yours sounds ok and also looks very clean and nice Smile
    The thing about PGEC3 should not be an issue, you can use any of them for programming.

    GENOVA :D :D ! GODO
    #2
    Nigle
    Super Member
    • Total Posts : 297
    • Reward points : 0
    • Joined: 2008/10/14 04:09:08
    • Location: London
    • Status: offline
    Re:PIC32MX250 minimal breadboard setup + PICKit 3 2013/08/23 03:11:40 (permalink)
    5 (1)
    josef.van.niekerk@gmail.comAny idea what could be wrong with my setup?
    The fact that it is on a breadboard isn't a good start, but it should be possible to persuade it to work.
    The ground strips above and below the processor don't appear to be linked in any way, this will definitely cause a problem! Even if the link is made out of camera shot at the end of the breadboard, this will be much too far away from the processor. Connect them together right next to the PIC and see if that helps.
    #3
    rpg7
    Super Member
    • Total Posts : 1363
    • Reward points : 0
    • Joined: 2003/11/07 12:47:35
    • Status: offline
    Re:PIC32MX250 minimal breadboard setup + PICKit 3 2013/08/23 03:19:55 (permalink)
    4 (1)
    Make C10 1n0 or remove it. 100nf is too big for ICD3
    And ditto Nigle.
    post edited by rpg7 - 2013/08/23 03:21:19
    #4
    sparkbuzz
    Super Member
    • Total Posts : 172
    • Reward points : 0
    • Joined: 2013/03/22 02:32:41
    • Location: South Africa
    • Status: offline
    Re:PIC32MX250 minimal breadboard setup + PICKit 3 2013/08/23 03:27:22 (permalink)
    0
    Hi Nigle & DarioG
     
    The ground strips are connected, I just didn't include them in the photo. I agree with both you both, breadboards are bad, but according to
     
    https://sites.google.com/site/pcusbprojects/5-custom-projects/r-pickit-3-header-for-pic32mx250f128b-programming 
    http://www.microchip.com/forums/m698103.aspx
     
    it must be able to work somehow.
     
    post edited by josef.van.niekerk@gmail.com - 2013/08/24 01:18:48
    #5
    sparkbuzz
    Super Member
    • Total Posts : 172
    • Reward points : 0
    • Joined: 2013/03/22 02:32:41
    • Location: South Africa
    • Status: offline
    Re:PIC32MX250 minimal breadboard setup + PICKit 3 2013/08/23 03:32:30 (permalink)
    0
    I was suspecting this as well, so I tried removing the entire circuit on MCLR with the 470Ω, 10kΩ and the 0.1µF bypass cap, simply pulling pin 1 from the PICKit 3 straight into the MCU's MCLR pin, and it didn't seem to help at all.
    #6
    Lurch
    Super Member
    • Total Posts : 633
    • Reward points : 0
    • Joined: 2010/08/04 14:05:04
    • Location: 0
    • Status: offline
    Re:PIC32MX250 minimal breadboard setup + PICKit 3 2013/08/23 03:52:30 (permalink)
    0
    I've used breadboards often with these chips - generally no problems.
    I used 8MHz crystals, though. 
    Have you tried with the USB stuff (Vusb, Vbus) disconnected? 
     
    #7
    sparkbuzz
    Super Member
    • Total Posts : 172
    • Reward points : 0
    • Joined: 2013/03/22 02:32:41
    • Location: South Africa
    • Status: offline
    Re:PIC32MX250 minimal breadboard setup + PICKit 3 2013/08/23 03:54:41 (permalink)
    0
    The closest to that was by unplugging the USB cable on the USB Type B connector, on the right. Do you think completely disconnecting the circuit and connecting the VBus pin to Vdd will give a better result?
    #8
    joy.philipz
    Super Member
    • Total Posts : 222
    • Reward points : 0
    • Joined: 2010/02/21 08:41:49
    • Location: 0
    • Status: offline
    Re:PIC32MX250 minimal breadboard setup + PICKit 3 2013/08/23 05:16:44 (permalink)
    0
    Have you tried pin #4 & #5, PGED1 & PGEC1?
    Try powering from picKit3
    With power off, check continuity of IC Pin & picKit3 pins, ensure all of them are <1 ohm
     
    Cheers
    Joy
    #9
    914paul
    Starting Member
    • Total Posts : 45
    • Reward points : 0
    • Joined: 2013/01/09 09:07:39
    • Location: Los Angeles
    • Status: offline
    Re:PIC32MX250 minimal breadboard setup + PICKit 3 2013/08/23 09:04:12 (permalink)
    0
    I've gotten that same chip programmed and running on a breadboard. I'd remove all non-necessary components from it (including crystal) -- extreme minimum and see if you can get it going. Then add components one by one. I also had problems at first and found it was other stuff on the breadboard causing the problem.
    #10
    sparkbuzz
    Super Member
    • Total Posts : 172
    • Reward points : 0
    • Joined: 2013/03/22 02:32:41
    • Location: South Africa
    • Status: offline
    Re:PIC32MX250 minimal breadboard setup + PICKit 3 2013/08/23 13:49:19 (permalink)
    0
    Awesome, thanks for all the replies. I'm now going to remove all the extras, USB, voltage regulator, crystal and the resistors and caps on the MCLR pin. 
     
    Also moving to use PGED1 & PGEC1, and powering from PICKit 3 as suggested.
     
    Starting from the ground, building up again, let's hope it works.
    #11
    sparkbuzz
    Super Member
    • Total Posts : 172
    • Reward points : 0
    • Joined: 2013/03/22 02:32:41
    • Location: South Africa
    • Status: offline
    Re:PIC32MX250 minimal breadboard setup + PICKit 3 2013/08/23 14:46:41 (permalink)
    0
    Still no good. Is it possible the PICKit 3 firmware is too old. When I run the Integrated Programming Environment app on Mac, and connect, it reports Firmware version 01.28.2.
    #12
    914paul
    Starting Member
    • Total Posts : 45
    • Reward points : 0
    • Joined: 2013/01/09 09:07:39
    • Location: Los Angeles
    • Status: offline
    Re:PIC32MX250 minimal breadboard setup + PICKit 3 2013/08/23 15:04:24 (permalink)
    0
    Hmm. I'm using MPLAB 8 and I've gotten it working, so maybe it's something to do with MPLAB X?
    #13
    sparkbuzz
    Super Member
    • Total Posts : 172
    • Reward points : 0
    • Joined: 2013/03/22 02:32:41
    • Location: South Africa
    • Status: offline
    Re:PIC32MX250 minimal breadboard setup + PICKit 3 2013/08/23 15:06:58 (permalink)
    0
    I'm really getting tired of this, I'm on my way to pull my hair out of my scalp...
    #14
    914paul
    Starting Member
    • Total Posts : 45
    • Reward points : 0
    • Joined: 2013/01/09 09:07:39
    • Location: Los Angeles
    • Status: offline
    Re:PIC32MX250 minimal breadboard setup + PICKit 3 2013/08/23 15:28:15 (permalink)
    0
    Don't give up. It took me a while to iron out the bugs when moving from up from the 16 bit PIC's. Glad I did though. I like the instruction set a lot and these chips really fly.
    #15
    sparkbuzz
    Super Member
    • Total Posts : 172
    • Reward points : 0
    • Joined: 2013/03/22 02:32:41
    • Location: South Africa
    • Status: offline
    Re:PIC32MX250 minimal breadboard setup + PICKit 3 2013/08/23 15:32:26 (permalink)
    0
    You know what. F_ck this, I'm done...should stick to my trade and keep my mouth shut.
    #16
    914paul
    Starting Member
    • Total Posts : 45
    • Reward points : 0
    • Joined: 2013/01/09 09:07:39
    • Location: Los Angeles
    • Status: offline
    Re:PIC32MX250 minimal breadboard setup + PICKit 3 2013/08/23 17:38:22 (permalink)
    5 (1)
    I whipped up a circuit to test real quick and it worked just fine. I only had a PIC32MX110F016B readily available, and the caps are wrong (47nF), but it was recognized correctly. Sorry about the crappy pic (couldn't find my good camera) and the ratsnest (in a hurry)
     
     
    .

    Attached Image(s)

    #17
    sparkbuzz
    Super Member
    • Total Posts : 172
    • Reward points : 0
    • Joined: 2013/03/22 02:32:41
    • Location: South Africa
    • Status: offline
    Re:PIC32MX250 minimal breadboard setup + PICKit 3 2013/08/23 23:47:54 (permalink)
    0
    Thanks for the effort you went into. Your photo is highly appreciated. I tried replacing the PIC32MX250 with a PIC24 which has more or less the same pin requirements. Same problem persists, the PicKit fails to get a device ID.
     
    I'm beginning to think my PICKit 3 is screwed, I need to go look for instructions to reflash and update the firmware. Any links, coz I can't find any
     
    Is it possible to self-test the PICKit 3? I noticed the option test PICKit 3 in MPLAB X is disabled.
     
    I'm now going to start from scratch, this time using a PIC16 chip I have lying around. Maybe I also need to try Windows instead of Mac?
     
    Do I need to install any drivers for Mac at all? I'm thinking if I did, the device would fail altogether, and not even get identified by IPE or MPLAB X.
    #18
    Ian.M
    Super Member
    • Total Posts : 13114
    • Reward points : 0
    • Joined: 2009/07/23 07:02:40
    • Location: UK
    • Status: offline
    Re:PIC32MX250 minimal breadboard setup + PICKit 3 2013/08/24 00:21:03 (permalink)
    5 (1)
    If you don't have a real Windows PC handy, its worth knowing that most of Microchip's tools with a USB interface run nicely from MPLAB 8 on 32 bit Windows 2000, XP, Vista, and 7 under VMWARE, even the free VMWARE player.  wink    Other VM solutions may not have good enough USB HID device pass-through to work . . .
     
    PICkit 3 failing to get a device ID is a common symptom of an unpowered target.  Make sure you have enabled target power.
    #19
    andersm
    Super Member
    • Total Posts : 2478
    • Reward points : 0
    • Joined: 2012/10/07 14:57:44
    • Location: 0
    • Status: offline
    Re:PIC32MX250 minimal breadboard setup + PICKit 3 2013/08/24 02:00:42 (permalink)
    5 (1)
    josef.van.niekerk@gmail.comDo I need to install any drivers for Mac at all?

    Nope. Also, if the firmware is outdated, MPLAB X should update it the first time you try to program a device with it.
    #20
    Page: 123 > Showing page 1 of 3
    Jump to:
    © 2018 APG vNext Commercial Version 4.5