Tech Support > Computer Hardware > Microprocessors > Programming Microchip PIC from command line
Programming Microchip PIC from command line
Posted by Nickolai Leschov on March 4th, 2008


Is there a tool to program Microchip PIC's from command line?

Posted by Ray Haddad on March 4th, 2008


On Tue, 04 Mar 2008 13:36:19 +0300, I said, "Pick a card, any card"
and Nickolai Leschov <nleschov@gmail.com> instead replied:

Which command line?
--
Ray

Posted by Nickolai Leschov on March 4th, 2008


Ray Haddad wrote:

My host OS is Windows.

I use MPLAB with HI-TECH C for programming PICs. My programmer/debugger
is MPLAB ICD 2.

One day I decided that I had enough of MPLAB IDE and made a script to
compile my project from command line. That works nice. Now if I could
only have a command-line tool that will program (write binary code to)
the target device, I will be really well set up.

Regards,
Nickolai Leschov

Posted by Thad Smith on March 4th, 2008


Nickolai Leschov wrote:
http://www.microengineeringlabs.com/ has PIC programmers that can run
automated from the command line. Make sure that you get one that can
program your particular processor.

--
Thad

Posted by Nickolai Leschov on March 4th, 2008


Thad Smith wrote:
processors are surface mounted and need to be in-curcuit programmed

Nickolai

Posted by linnix on March 4th, 2008


On Mar 4, 6:09 am, Nickolai Leschov <nlesc...@gmail.com> wrote:
We have command batch compile/program for AVR/ARM, but no PIC yet. We
are sick of point and click and IDE in general. Graphical interface
looks good for beginners, but most will outgrow it. Unfortunately,
manufacturers/tool makers are not listening.

Posted by Tim Wescott on March 4th, 2008


On Tue, 04 Mar 2008 07:56:10 -0800, linnix wrote:

The Xilinx tools are nice that way (or at least were as of version V or
so). The tools themselves are a collection of command-line utilities,
and the IDE is just a front-end. Moreover, it doesn't take too long
using the IDE to stumble across the log file (handily presented in a
window) that shows you all the commands that were invoked to build your
firmware.

That made it all _very_ easy to put the whole build process into a
makefile, including downloading to the chip. I ended up just using the
IDE for simulations, and for occasional editing when I was doing a mix of
simulation and in-the-real testing.

--
Tim Wescott
Control systems and communications consulting
http://www.wescottdesign.com

Need to learn how to apply control theory in your embedded system?
"Applied Control Theory for Embedded Systems" by Tim Wescott
Elsevier/Newnes, http://www.wescottdesign.com/actfes/actfes.html

Posted by CBFalconer on March 4th, 2008


linnix wrote:
That sounds refreshingly sane.

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.



--
Posted via a free Usenet account from http://www.teranews.com


Posted by Marra on March 4th, 2008


As a PIC man for 30 years I would only use Microchip programmers.

These all run from MPLAB.

Posted by Paul Probert on March 5th, 2008


Nickolai Leschov wrote:
picstart plus from the command line. Works well.

Paul Probert

Posted by Thad Smith on March 5th, 2008


Nickolai Leschov wrote:
I suspect that you can build a cable to go from their programmer to your
board and work that way, but give them a call/email to make sure.

--
Thad

Posted by David Tweed on March 5th, 2008


Nickolai Leschov wrote:
The three programmers listed on this page are driven by command-line tools.
http://www.embedinc.com/products/index.htm

-- Dave Tweed

Posted by Neil on March 6th, 2008


Nickolai Leschov wrote:
Microchip gives you a command line programmer. BUT, not for the ICD2,
just the regular programmers.

Posted by Nickolai Leschov on March 6th, 2008


Neil wrote:
my devices in-system. I heard of some them can [1].
I thought of switching to third-party programmer in future [2], but if
it is from Microchip - maybe I'll use it instead.


[1] MPLAB PM3 Universal Device Programmer
http://www.microchip.com/stellent/id...ame =en010068

[2] USBProg PIC Programmer, suggested by David Tweed
http://www.embedinc.com/products/usbprog/index.htm

Posted by Neil on March 7th, 2008


Nickolai Leschov wrote:
It is part of the MPLAB installation. There is a separate program only
interface program. It is supposed to have a command line.

Posted by Nickolai Leschov on March 11th, 2008


Neil wrote:
You might be talking about the utilities I see in
MPLAB8\MPLAB IDE\Programmer Utilities
there I see folders called "PM3Cmd", "Procmd", and "Visual Procmd".
As far as I understand, they are for the Microchip PM3 programmer, which
we don't have yet.

Can I program my chips in-curcuit from the command line with my MPLAB ICD2 ?
Does anyone do it?

Posted by HTwoGo@googlemail.com on March 26th, 2008


On Mar 11, 9:58*am, Nickolai Leschov <nlesc...@gmail.com> wrote:
I am using the PM3 programmer to programme in circuit using the PM3Cmd
and a SD MMC card to stor the code, buti am having problems loading
the code to the programmer from the card!!!!