![]() |
Forum Index : Microcontroller and PC projects : Pic32Prog and PicKit2
Author | Message | ||||
kg4pid Regular Member ![]() Joined: 08/03/2015 Location: United StatesPosts: 50 |
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 ZealandPosts: 2442 |
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 ZealandPosts: 9610 |
|
||||
kg4pid Regular Member ![]() Joined: 08/03/2015 Location: United StatesPosts: 50 |
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 ZealandPosts: 9610 |
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: AustraliaPosts: 320 |
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 KingdomPosts: 10315 |
There may be another but I use this one UPDATE Here is the other one |
||||
kg4pid Regular Member ![]() Joined: 08/03/2015 Location: United StatesPosts: 50 |
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: AustraliaPosts: 6283 |
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 StatesPosts: 50 |
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 ZealandPosts: 2442 |
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 StatesPosts: 50 |
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 ZealandPosts: 2442 |
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 StatesPosts: 50 |
The older version works!!! Yay!!! ![]() 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 |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |