Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 09:45 03 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Pic32Prog and PicKit2

Author Message
kg4pid
Regular Member

Joined: 08/03/2015
Location: United States
Posts: 50
Posted: 12:07pm 06 Nov 2017
Copy link to clipboard 
Print this post

Since I already have a PicKit2 programmer, I would like to use it along with Pic32Prog to program the MX170 chips. I started to build an adapter but wasn't sure about where the chip gets it power from. I haven't used the PicKit2 in years but remember using Microchips software and you could specify external power or internal at 3.3v or 5v and power the chip from the programmer. Does Pic32Prog have that kind of control over the PicKit2 or do I need to power the chip seperatly?

Max
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2442
Posted: 01:57pm 06 Nov 2017
Copy link to clipboard 
Print this post

as i recall, pic32prog does control power delivery from a pickit2, best bet is to give it a try and see what happens. but note that the pickit2/3 is quite limited in the current it can deliver to a target, and that various folks on here have had problems when NOT using an external power supply.

if you are building a programming jig, it may be useful to place an LED + limiting resistor across Vcc so you can see when power is supplied to the target.

i have used a pickit2 + pic32prog quite a bit a few years back without encountering any issues myself. it is certainly far easier than fighting through mplab!


cheers,
rob :-)

 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 02:51pm 06 Nov 2017
Copy link to clipboard 
Print this post

  robert.rozee said  ...but note that the pickit2/3 is quite limited in the current it can deliver to a target, and that various folks on here have had problems when NOT using an external power supply.[/Quote]

ALL the time. I have a PK3, and IPE is always moaning if the voltage is not EXACTLY right. We're talking a supply being 3.2v, and IPE moans that it is not 3.3v.

I externally power just about anything now if I have to use the PK3. PIC32PROG does not care, and I have used it a ton of times to program chips that IPE won't, cos the voltage is 100mV lower then it wants.

  robert.rozee said  it is certainly far easier than fighting through mplab!


Amen to that, brother! I never use IPE anymore, except to program the 1455 chips. I do ALL my PIC32 stuff via PIC32PROG and your neat little GUI.
Smoke makes things work. When the smoke gets out, it stops!
 
kg4pid
Regular Member

Joined: 08/03/2015
Location: United States
Posts: 50
Posted: 03:31pm 06 Nov 2017
Copy link to clipboard 
Print this post

I guess I'll be adding external power via a 3.3 volt regultor with an led to remind me when the chip has power as well as an led to tell me when the PicKit2 turns on it's power for progrmming. I like indicators anyways so it's no problem.

I bought a Samsung DVD player that also does Netflix, Hulu, Amazon and a few others.
You would think it would have a power indicator to let you know when it's on, but Nooooooo. How much would an led and resister have added to the cost? It bugged me, so I opened it up and found a point where 5v was switched so it now has a pretty blue power indicator!
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9610
Posted: 03:47pm 06 Nov 2017
Copy link to clipboard 
Print this post

You can't keep a good technician down.....
Smoke makes things work. When the smoke gets out, it stops!
 
centrex

Guru

Joined: 13/11/2011
Location: Australia
Posts: 320
Posted: 10:34pm 06 Nov 2017
Copy link to clipboard 
Print this post

Grogster a couple posts ago you mentioned a gui for pik32 prog.
Where might I find details of this gui I have done a search to no avail.
Thanks
Cliff
Cliff
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10315
Posted: 01:15am 07 Nov 2017
Copy link to clipboard 
Print this post

  Quote  Where might I find details of this gui I have done a search to no avail.

There may be another but I use this one

UPDATE

Here is the other oneEdited by matherp 2017-11-08
 
kg4pid
Regular Member

Joined: 08/03/2015
Location: United States
Posts: 50
Posted: 11:19am 07 Nov 2017
Copy link to clipboard 
Print this post

  matherp said  
  Quote  Where might I find details of this gui I have done a search to no avail.

There may be another but I use this one

UPDATE

Here is the other one


And neither one supports the PicKit2.

Max
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 11:30am 07 Nov 2017
Copy link to clipboard 
Print this post

  kg4pid said  
And neither one supports the PicKit2.

Max

Both programs are simple wrappers for pic32prog.exe and it should be relatively easy to add the picKit2 to the methods covered.

What is the command line you use for pic32prog.exe and PicKit2?

Jim
VK7JH
MMedit
 
kg4pid
Regular Member

Joined: 08/03/2015
Location: United States
Posts: 50
Posted: 03:25pm 07 Nov 2017
Copy link to clipboard 
Print this post

Can someone please tell me the correct command line usage for pic32prog and the PicKit2? I have verified my wiring but my PicKit2 never seems to do anything. I started a command prompt both straight-up and in Administrator mode, changed to the directory where both pic32prog.exe and Micromite_V5.04.05.hex are and issued the command....

pic32prog.exe Micromite_V5.04.05.hex per the insructions at

https://github.com/sergev/pic32prog

and the only thing I get on screen is

Programmer for Microchip PIC32 microcontrollers, Version 2.0.220
Copyright: (C) 2011-2015 Serge Vakulenko
<-- with a blinking cursor here, with or without the PicKit2 plugged in.

While my MPLab is a few years old at version 8.80 it was able to download the firmware to the PicKit2 just fine. When I tried to program a chip with MPLab the "Target" led on the PicKit2 came on and my power led came on as it should, so PicKit2 and USB cable seem to be working correctly. I hope I'm just not using the correct syntax.

But on the page at the above link it says "When called without parameters, pic32prog utility detects a type of microcontroller and device configuration." When I try, it just give the same output as above. A ctrl-c get me out and back to a cursor.

Max
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2442
Posted: 11:35am 08 Nov 2017
Copy link to clipboard 
Print this post

what version of windows are you running? the command line you are typing in looks correct, and i can see no reason why pic32prog should sit stuck in a loop - even with no pic attached it should come back to the prompt after 10 or 20 seconds.

are you sure your pickit2 is fully working? it could be worth installing mplab to test this.

and finally, i think that you can use pic32prog with a pickit2 by simply dropping the icon for your .hex file onto the pic32prog icon. the only possible downside of this is that pic32prog's console window will close immediately programming is finished without you getting a chance to read the output.

unfortunately i don't have a pickit2 handy to do any testing here at the moment.


cheers,
rob :-)
 
kg4pid
Regular Member

Joined: 08/03/2015
Location: United States
Posts: 50
Posted: 12:07pm 08 Nov 2017
Copy link to clipboard 
Print this post

Computer is Windows 7 and PicKit2 works fine with MPLab. It seems I'm not the only one who has this problem.

https://github.com/sergev/pic32prog/issues/48

The first entry describes my problem exactly.

Max
 
robert.rozee
Guru

Joined: 31/12/2012
Location: New Zealand
Posts: 2442
Posted: 07:17pm 09 Nov 2017
Copy link to clipboard 
Print this post

try the following older version (.193) of pic32prog:
2017-11-10_051529_pic32prog_v2.0.193_17-may-2016.exe.zip

if we can work out the version number at which it fails, then it should be relatively easy to isolate what caused the problem.


cheers,
rob :-)
 
kg4pid
Regular Member

Joined: 08/03/2015
Location: United States
Posts: 50
Posted: 03:40am 10 Nov 2017
Copy link to clipboard 
Print this post

The older version works!!! Yay!!! See I'm not crazy, well maybe just a little.

Programmer for Microchip PIC32 microcontrollers, Version 2.0.193
Copyright: (C) 2011-2015 Serge Vakulenko
Adapter: PICkit2 Version 2.32.0
Processor: MX170F256B
Flash memory: 256 kbytes
Boot memory: 3 kbytes
Data: 257800 bytes
Erase: done
Program flash: ################################################# done
Program boot: ############ done
Verify flash: ################################################ done
Verify boot: ############ done
Program rate: 749 bytes per second

Not very fast, but I'm not trying to go into production so I don't care about the speed. I have not actually tried the chip yet but feel certain it will work. I'll do that later today.

One other note, I was able to download the version for the raspberry pi but it doesn't work correctly either, it gave the banner and "No Target Found". I should have a serial programmer with the 1455 chip next week so I can try the various versions using that.

Thanks, Max
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025