EmbeddedRelated.com
Forums
Memfault Beyond the Launch

Programming Microchip PIC from command line

Started by Nickolai Leschov March 4, 2008
Nickolai Leschov wrote:
> Thad Smith wrote: >> Nickolai Leschov wrote: >>> Is there a tool to program Microchip PIC's from command line? >> >> 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. >> > Thank you. But it seems like those will not be useful for me. My > processors are surface mounted and need to be in-curcuit programmed
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
Nickolai Leschov 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.
The three programmers listed on this page are driven by command-line tools. http://www.embedinc.com/products/index.htm -- Dave Tweed
Nickolai Leschov wrote:
> Ray Haddad wrote: > > > Which command line? > > 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
Microchip gives you a command line programmer. BUT, not for the ICD2, just the regular programmers.
Neil wrote:
> Microchip gives you a command line programmer.
Can you please specify more exactly where can I find it.
> BUT, not for the ICD2, just the regular programmers.
I might switch to one of those regular programmers if they can program 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/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en010068 [2] USBProg PIC Programmer, suggested by David Tweed http://www.embedinc.com/products/usbprog/index.htm
Nickolai Leschov wrote:
> Neil wrote: >> Microchip gives you a command line programmer. > Can you please specify more exactly where can I find it. >> BUT, not for the ICD2, just the regular programmers. > I might switch to one of those regular programmers if they can program > 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/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en010068 > > > [2] USBProg PIC Programmer, suggested by David Tweed > http://www.embedinc.com/products/usbprog/index.htm
It is part of the MPLAB installation. There is a separate program only interface program. It is supposed to have a command line.
Neil wrote:
> Nickolai Leschov wrote: >> Neil wrote: >>> Microchip gives you a command line programmer. >> Can you please specify more exactly where can I find it. >>> BUT, not for the ICD2, just the regular programmers. >> I might switch to one of those regular programmers if they can program >> 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/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en010068 >> >> >> [2] USBProg PIC Programmer, suggested by David Tweed >> http://www.embedinc.com/products/usbprog/index.htm > > It is part of the MPLAB installation. There is a separate program only > interface program. It is supposed to have a command line.
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?
On Mar 11, 9:58=A0am, Nickolai Leschov <nlesc...@gmail.com> wrote:
> Neil wrote: > > Nickolai Leschov wrote: > >> Neil wrote: > >>> Microchip gives you a command line programmer. > >> Can you please specify more exactly where can I find it. > >>> BUT, not for the ICD2, just the regular programmers. > >> I might switch to one of those regular programmers if they can program > >> 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/idcplg?IdcService=3DSS_GET_PAGE&nodeI.=
..
> > >> [2] USBProg PIC Programmer, suggested by David Tweed > >>http://www.embedinc.com/products/usbprog/index.htm > > > It is part of the MPLAB installation. =A0There is a separate program onl=
y
> > interface program. =A0It is supposed to have a command line. > > 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?
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!!!!

Memfault Beyond the Launch