Helpful ReplyPICKIT3 from Linux Terminal

Author
arigead
Super Member
  • Total Posts : 360
  • Reward points : 0
  • Joined: 2011/02/07 06:58:31
  • Location: 0
  • Status: offline
2014/12/17 15:33:42 (permalink)
4 (2)

PICKIT3 from Linux Terminal

At the risk of coming across as grumpy old man, all I want for Christmas is a command line tool which can flash a device with the PICKIT3. It's a USB device so it's serial which is pretty universal across various computing platforms. I think that the 'U' in USB stands for something like that.
 
So all over the Internet on a mission to find something that would save me using MPLABX which is killing my machine. All that IDE and all that JRE and all I want to do is program a pic18.
 
If part of the Microchip ecosystem is the tools they're losing points here.
 
So anybody got any ideas? found something that programs pic32. I'm only on a PIC18 and PIC24 :-(
#1
kl27x
Super Member
  • Total Posts : 232
  • Reward points : 0
  • Joined: 2006/09/20 13:51:48
  • Location: 0
  • Status: offline
Re: PICKIT3 from Linux Terminal 2014/12/17 16:33:07 (permalink)
4 (1)
Well, if you are interested in batch programming, I have hacked my pickit 3's with an interface circuit for use with a CNC machine. PICKIT3 must be set up as P2G. The in/out are simple hi/lo I/O's. The status LED is monitored to generate the pass/fail verification.
 
..... and I can't use it because my clone PICKIT3 is completely unreliable and fails to program 2-5% of the devices. (My genuine PICKIT3 is worse. On top of that, it freezes nonstop and sometimes gives the "pass" signal after leaving code completely written but unprotected.)
 
But if it works for you in P2G mode, perhaps you could do something similar but use a serial interface for commands/verification signal?
 
Probably not the answer you wanted to hear if you are using for dev/debugging.
post edited by kl27x - 2014/12/17 16:57:53
#2
RISC
Super Member
  • Total Posts : 4744
  • Reward points : 0
  • Status: offline
Re: PICKIT3 from Linux Terminal 2014/12/17 16:34:07 (permalink)
4 (1)
Hi,
As part of the MPLAB X installation package (in the latest versions), you can select to install MPLAB X and/or IPE.
IPE is a simple programming utility.
Another possibility is to write your utility to invoke mdbCORE which is the underlying engine.
There is an SDK to do that and a manual on mdbCORE :
http://www.opensource4pic.org/content/content/mplab-x-sdk-mplab-x-ide
 
..... and I can't use it because PICKIT3 is completely unreliable and fails to program 2-5% of the devices.

Are you really using Pickit3 for Mass Production ????...you should not do that
This is clearly stated everywhere on Microchip website :
"Note: The PICkit 3 In-Circuit Debugger/Programmer is NOT a production programmer. It should be used for development purposes only. "
 
This is also stated in the Pickit3 User Manual...
Regards
post edited by RISC - 2014/12/17 16:46:31
#3
kl27x
Super Member
  • Total Posts : 232
  • Reward points : 0
  • Joined: 2006/09/20 13:51:48
  • Location: 0
  • Status: offline
Re: PICKIT3 from Linux Terminal 2014/12/17 17:01:07 (permalink)
3 (1)
I tried to, but it failed, so no.
 
Microchip also states that ICD3 is a production programmer. But it fails miserably at this task, for me. Which is why I tried PICKIT3. I have probably $600.00 worth of Microchip programmers. The only one that performs as advertised is the PICKIT2.
post edited by kl27x - 2014/12/17 17:03:28
#4
arigead
Super Member
  • Total Posts : 360
  • Reward points : 0
  • Joined: 2011/02/07 06:58:31
  • Location: 0
  • Status: offline
Re: PICKIT3 from Linux Terminal 2014/12/18 03:21:28 (permalink)
0
Thanks for all your comments. I actually had a look around on the Internet and can't believe that I've never stumbled across the usbpicprog project before! Man that looks like just the ticket so I can work the way I want by just dumping the pickit3.
#5
Sudheer Herle
Super Member
  • Total Posts : 356
  • Reward points : 0
  • Joined: 2012/03/30 05:41:29
  • Location: Bangalore ,India
  • Status: offline
Re: PICKIT3 from Linux Terminal 2014/12/18 20:31:23 (permalink) ☄ Helpfulby MBedder 2016/11/27 14:06:39
3 (1)
Hi Arigead,
 
Microchip offers command line utilities. Install MPLAB X IPE which comes with the MPLABX IDE installer. The latest is v2.26 on the web.
 
You will find IPECMD.jar file in your installation directory. 
You can use that over command line. Example:
 
java -jar ipecmd.jar -tppm3 -P32MX550F236H -M -F"Path_to_your_hex_file"
 
You can refer help anyways.
 
Thanks,
Sudheer
#6
Jump to:
© 2018 APG vNext Commercial Version 4.5