EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

Programming tools for Linux

Started by "Ezequiel L. Aceto" May 2, 2007
Hello everybody,

I have migrated all my PC to linux, and compiling my ARMs project with
GNU GCC is working, but I didn't find any programming tool to download
my code into the LPC2000 chips. Any suggestion?

Thanks very much
Ezequiel

An Engineer's Guide to the LPC2100 Series

Checkout this link:

http://www.pjrc.com/arm/lpc2k_pgm/

Tom
--- In l..., "Ezequiel L. Aceto"
wrote:
>
> Hello everybody,
>
> I have migrated all my PC to linux, and compiling my ARMs project
with
> GNU GCC is working, but I didn't find any programming tool to
download
> my code into the LPC2000 chips. Any suggestion?
>
> Thanks very much
> Ezequiel
>
Ezequiel L. Aceto wrote:
>
> Hello everybody,
>
> I have migrated all my PC to linux, and compiling my ARMs project with
> GNU GCC is working, but I didn't find any programming tool to download
> my code into the LPC2000 chips. Any suggestion?
>

That could be part of your JTAG solution. When tinkering with OpenOCD,
I saw that there were download to RAM as well as Flash programming
commands in it.

TomW

--
Tom Walsh - WN3L - Embedded Systems Consultant
http://openhardware.net http://cyberiansoftware.com http://openzipit.org
"Windows? No thanks, I have work to do..."
----------------
Em Quarta 02 Maio 2007 17:34, Ezequiel L. Aceto escreveu:
> Hello everybody,
>
> I have migrated all my PC to linux, and compiling my ARMs project with
> GNU GCC is working, but I didn't find any programming tool to download
> my code into the LPC2000 chips. Any suggestion?
>
> Thanks very much
> Ezequiel

To download via ISP, I use the lpc21isp, you can find it on the list files (on
the yahoo groups site), it works very well (in my opinion, better than the
Philips original)
I like the lpc21isp because is text only mode. I have on my make file a option
wich I called prog, when I type make prog, it programs my device.
Em Quarta 02 Maio 2007 18:14, Dezheng Tang escreveu:
> Checkout this link:
>
> http://www.pjrc.com/arm/lpc2k_pgm/
>
> Tom
> --- In l..., "Ezequiel L. Aceto" wrote:
> > Hello everybody,
> >
> > I have migrated all my PC to linux, and compiling my ARMs project
>
> with
>
> > GNU GCC is working, but I didn't find any programming tool to
>
> download
>
> > my code into the LPC2000 chips. Any suggestion?
> >
> > Thanks very much
> > Ezequiel
I've written my own programmer software for Linux, having found existing
code unsatisfactory. I use it regularly with lpc2378, but don't have any
other LPC parts to test against. If you'd like to try it, I'd appreciate
any feedback.

http://www.blisstonia.com/software/lpc_prog_20070503.tgz

It supports a number of handy features, including the usual vector-table
checksum fixup, writing unique id bytes to each device (useful for MAC),
providing a simple terminal interface (for interacting with the hardware
via serial after programming). I've tested the code with both real
serial ports and with FTDI-based usb converters.

After a bit more polish, I intend to produce a release fit for wider
distribution, but feel free to check out this preview.

(The code is covered by GPL.)

-Ed
Hi Ezequiel,

I too moved to Linux for my ARM development. I found a wealth of good information for Windows ARM development but struggled to find a single, comprehesive source of information for Linux. I ended up putting my own guide together and posted it together with example files on my website. See http://akamina.com/Reports/GnuArm_Setup_Guide_1.11.pdf if you are interested.

I use OpenOCD for debugging and flash programming. It has worked well for me when programming the internal flash on the LPC2148 and the STR9. I am also using it to program external SDRAM for the Phytec LPC3180 board. I use OpenOCD with the Olimex Wiggler JTAG. I have also used the lpc2k_pgm utility after making a slight mod to the build file to get it to work with gtk 2.0. This too is covered in the document.

The sample projects that are referenced in the guide refer to a few sample scripts that I use to program Flash from the command line. The scripts inject a series of OpenOCD commands via a telnet connection to the OpenOCD CLI port.

Good luck with the complete transition to Linux!

Cheers,

Peter

Hello everybody,
>
>I have migrated all my PC to linux, and compiling my ARMs project with
>GNU GCC is working, but I didn't find any programming tool to download
>my code into the LPC2000 chips. Any suggestion?
>
>Thanks very much
>Ezequiel
>
Very, very nice document. As soon as my printer come back to life, I will
certainly print it and read it carefully (I develop on Linux, using Kate as
editor, gnuarm, but my projetc doesnt have Jtag, but soon will have).
Thax a lot for your effort!!!!
Em Qui 03 Mai 2007 14:46, p...@akamina.com escreveu:
> Hi Ezequiel,
>
> I too moved to Linux for my ARM development. I found a wealth of good
> information for Windows ARM development but struggled to find a single,
> comprehesive source of information for Linux. I ended up putting my own
> guide together and posted it together with example files on my website. See
> http://akamina.com/Reports/GnuArm_Setup_Guide_1.11.pdf if you are
> interested.
>
> I use OpenOCD for debugging and flash programming. It has worked well for
> me when programming the internal flash on the LPC2148 and the STR9. I am
> also using it to program external SDRAM for the Phytec LPC3180 board. I use
> OpenOCD with the Olimex Wiggler JTAG. I have also used the lpc2k_pgm
> utility after making a slight mod to the build file to get it to work with
> gtk 2.0. This too is covered in the document.
>
> The sample projects that are referenced in the guide refer to a few sample
> scripts that I use to program Flash from the command line. The scripts
> inject a series of OpenOCD commands via a telnet connection to the OpenOCD
> CLI port.
>
> Good luck with the complete transition to Linux!
>
> Cheers,
>
> Peter
>
> Hello everybody,
>
> >I have migrated all my PC to linux, and compiling my ARMs project with
> >GNU GCC is working, but I didn't find any programming tool to download
> >my code into the LPC2000 chips. Any suggestion?
> >
> >Thanks very much
> >Ezequiel
On Thu, 3 May 2007 17:43:10 -0300
Xtian Xultz wrote:

> Very, very nice document. As soon as my printer come back to life, I will
> certainly print it and read it carefully (I develop on Linux, using Kate as
> editor, gnuarm, but my projetc doesnt have Jtag, but soon will have).
> Thax a lot for your effort!!!!

Great work !! I spend a lot of time to build a working toolchain. I'm wondering
if you're accepting help ? We could stuff like comments on lpc2lisp, and simple
hello world with using serial (great help for the beginner)
Bye bye
On Thu, 3 May 2007 17:43:10 -0300
>Xtian Xultz wrote:
>
>> Very, very nice document. As soon as my printer come back to life, I will
>> certainly print it and read it carefully (I develop on Linux, using Kate as
>> editor, gnuarm, but my projetc doesnt have Jtag, but soon will have).
>> Thax a lot for your effort!!!!
>
>Great work !! I spend a lot of time to build a working toolchain. I'm wondering
>if you're accepting help ? We could stuff like comments on lpc2lisp, and simple
>hello world with using serial (great help for the beginner)
>Bye bye

Thanks for the feedback. The collection of materials in the document clearly draws heavily on the open work done by others. I wanted to be able to add to that collection of knowledge.

The document will continue to evolve as work continues. I am bringing up Linux on my LPC3180 (means Linux 2.6.10 to use the Phytec BSP patch) so now I need a glibc based tool chain (initially at least). I am working through the details of how to do this leveraging the work done by Dan Kegel and Bill Gatliff that resulted in the tool Crosstool.

Help with document would be welcome. Adding new sections that will help others is a good idea as long as the document does not become too massive. I want to stick with the general theme of open source as well. Let me know what you have in mind.

Cheers,
Peter

The 2024 Embedded Online Conference