EmbeddedRelated.com
Forums

Newbie looking for some recommendations

Started by "Jorge S." September 10, 2008
Hallo
Hope you are a member of this group
look under the files for a catalog named LPC21ISP
There you find the latest version 1.60 of the program.
I have not tested it, because I only run windows
and i run LPC2378 thus i cant ensure that it work
with LPC2368, but its propably worth a try.

Regards
/Martin

--- In l..., "Jorge S." wrote:
>
> On Wed, Sep 10, 2008 at 5:25 PM, per_martin_l wrote:
>
> > --- In l... ,
"Jorge S."
> > wrote:
> > >
> > > 2008/9/10 Albert Bartoszko
> > >
> > > > Dnia 2008-09-10, ro o godzinie 11:20 +0200, Jorge S. pisze:
> > > > > Hi all:
> > > > >
> > > > > First of all, sorry about my poor english (I'm spanish).
> > > > >
> > > > > I'm just starting with ARM7 and i own a LPC2368 evaluation
board.
> > > > >
> > > > > I've several questions to the group.Since i'm using linux
> > (ubuntu) on
> > > > > my
> > > > > desktop computer i would like to keep it as
> > > > > my development OS but its not a "must". I can switch to
windows if
> > > > > linux is
> > > > > not well supported.
> > > > >
> > > > > Questions:
> > > > >
> > > > > 1) Is there anybody here using Linux and developing for the
LPC23xx?
> > > > > Can you point
> > > > > me to some "clear" tutorial on how to build a development
enviroment
> > > > > for
> > > > > the LPC23xx uCs?
> > > > >
> > > > > What i have working so far:
> > > > >
> > > > > - Toolchain: Downloaded from GNUARM.com. Is this the good one?
> > > > > - Eclipse: There are several tutorials/how-tos for
> > linux/windows. Any
> > > > > better setup?
> > > > >
> > > > If it works - why better? ;-)
> > >
> > >
> > > Yes it works, i was just curious about other options.
> > >
> > >
> > >
> > > >
> > > >
> > > > > What i still miss:
> > > > >
> > > > > - LPC21ISP: I've downloaded and compiled version 1.48, but it
> > doesn't
> > > > > supports my LPC2368
> > > > > (I know this is a little off-topic here, but maybe somebody can
> > > > > confirm a version working). Any other solution for ISP on linux?
> > > > lpc2k_pgm works fine for me:
> > > > http://www.pjrc.com/arm/lpc2k_pgm
> > > >
> > > > And this is also terminal program.
> > > >
> > > > Albert
> > > >
> > >
> > > I know lpc2k_pgm, but it doesn't supports my LPC2368 (as
depicted on the
> > > documentation).
> > > This is a copy+paste of the console when running lpc2k_pgm:
> > >
> > > Port "/dev/ttyUSB0" opened at 9600 baud
> > > Baud rate set to 115200
> > > Reset CPU (into bootloader)
> > >
> > > Entering Bootloader Mode
> > > Reset CPU (into bootloader)
> > > Attempting baud sync......................Baud sync sucessful
> > >
> > > Download Canceled:
> > > Unknown chip ID: "369162533".
> > >
> > > Perhaps you have a new Philips LPC chip which does not
> > > have its ID string and sector map defined in this program?
> > > Please contact paul@ Please include an exact copy
> > > of this message and any info about the chip and other
> > > hardware you may be using. Thanks :-)
> > >
> > >
> > > Same results with lpc2isp (v1.48), my LPC2368 isn't supported.
> > >
> > > Any other tools?
> > >
> > >
> > > Thanks for helping anyway :)
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > >
> > > >
> > > >
> > > >
> > > >

An Engineer's Guide to the LPC2100 Series

Jorge S. wrote:
>
> On Wed, Sep 10, 2008 at 5:41 PM, Foltos > > wrote:
>
> > Hi,
> >
> > for the tool-chain try http://www.gnuarm. org/.
> gnuarm.com and .org has
> > different content. .org seems to be more up to date.
> > The official homepage of gcc (gcc.gnu.org) does not list an official arm
> > package maintainer. This means both "gnuarm.com" (registered by Richard
> > Collins) and "gnuarm.org" (registered by embedded.cl) has unofficial
> > binary packages.
> > So if you want to be sure get the latest source from gcc.gnu.org and
> > compile for yourself. (This is not a simple task. Also you need to
> > compile the standard library. You have several options here (newlib,
> > ucLibc, etc).)
> > Wow! I didn't noticed the difference between .COM and .ORG, thanks for
> warning.
>
> The site gnuarm.ORG points to a codesourcery toolchain. What about this
> one? Any thoughts on this one?
>
> And about the libs, newlib seems to be the most used, any recommendations
> here?
>
Some toolchains are for people that are either challenged by a keyboard
(mouse intensive like eclipse) or operating system (Yagarto / Cygwin).
For myself, I run a gcc cross-compiler on the native Linux platform, and
I built my own. After wandering the net for weeks, I became very
frustrated with all the different "ready to use" toolchains that didn't
seem to fit what I needed. So, after some study, I built my own:
http://www.openhardware.net/Embedded_ARM/Toolchain/

The toolchain is a bit dated, but gcc-4.0.2 works fine for me on the
LPC2106, LPC2138 and LPC2214 chips. As to a library, if you intend upon
building a commercial app and don't want to distribute your source, then
look at newlib. newlib is, for the most part, BSD-style of licenses. I
would not use uClibc as it is a GPL (LGPL?) license which is more
restrictive. The glibc is too bloated for embedded work.

If you are comfortable with editing files using a keyboard and have
worked with makefiles before, then I suggest you look into building your
own toolchain. Then, at least, you know what you have and have the
control to upgrade / downgrade versions of various parts of it.

If you are in love with the mouse and need to impress people with your
development environment, then go with eclipse.

Personally, I find that a mouse slows me down.

TomW
--
Tom Walsh - WN3L - Embedded Systems Consultant
http://openhardware.net http://cyberiansoftware.com http://openzipit.org
"Windows? No thanks, I have work to do..."
----------------

2008/9/10 Albert Bartoszko

> Dnia 2008-09-10, ro o godzinie 16:33 +0200, Jorge S. pisze:
> > 2008/9/10 Albert Bartoszko
> [...]
> > > lpc2k_pgm works fine for me:
> > > http://www.pjrc.com/arm/lpc2k_pgm
> > >
> > > And this is also terminal program.
> > >
> > > Albert
> > >
> >
> > I know lpc2k_pgm, but it doesn't supports my LPC2368 (as depicted on the
> > documentation).
> > This is a copy+paste of the console when running lpc2k_pgm:
> >
> > Port "/dev/ttyUSB0" opened at 9600 baud
> > Baud rate set to 115200
> > Reset CPU (into bootloader)
> >
> > Entering Bootloader Mode
> > Reset CPU (into bootloader)
> > Attempting baud sync......................Baud sync sucessful
> >
> > Download Canceled:
> > Unknown chip ID: "369162533".
> >
> > Perhaps you have a new Philips LPC chip which does not
> > have its ID string and sector map defined in this program?
> > Please contact p...@pjrc.com. Please include an exact copy
> > of this message and any info about the chip and other
> > hardware you may be using. Thanks :-)
> >
> Hmm... it works with my 2364 without problems.
>
> Maybe is worth to try change id_string in chip_info[] table (file
> chipinfo.c) to chip ID, and recompile the program?
It works!, as you suggested, i've changed the chip id at "chipinfo.c"

it was:

{"LPC2368 (500k)", "100924197", 0x40000200, 0x1000, 27, lpc2138_layout,
boot_23xx},

so i've changed it to match my uC chip id, just like this:

{"LPC2368 (500k)", "369162533", 0x40000200, 0x1000, 27, lpc2138_layout,
boot_23xx},

Now it works fine, i'm able to upload new programs to the uC.

Maybe this is a bug on the lpc2k_pgm, i'm going to send an e-mail to the
author.

On Wed, Sep 10, 2008 at 6:33 PM, per_martin_l wrote:
>
> Hallo
> Hope you are a member of this group
> look under the files for a catalog named LPC21ISP
> There you find the latest version 1.60 of the program.
> I have not tested it, because I only run windows
> and i run LPC2378 thus i cant ensure that it work
> with LPC2368, but its propably worth a try.
>
> Regards
> /Martin

Yes, i'll give it a try. At the moment i managed lpc2k_pgm to work
just modifing the source to match my chipid. But for sure i'll try
lpc2isp.

Thank you.
>
> W
>
> --- In l..., "Jorge S." wrote:
> >
> > On Wed, Sep 10, 2008 at 5:25 PM, per_martin_l wrote:
> >
> > > --- In l... ,
> "Jorge S."
> > > wrote:
> > > >
> > > > 2008/9/10 Albert Bartoszko
> > > >
> > > > > Dnia 2008-09-10, ro o godzinie 11:20 +0200, Jorge S. pisze:
> > > > > > Hi all:
> > > > > >
> > > > > > First of all, sorry about my poor english (I'm spanish).
> > > > > >
> > > > > > I'm just starting with ARM7 and i own a LPC2368 evaluation
> board.
> > > > > >
> > > > > > I've several questions to the group.Since i'm using linux
> > > (ubuntu) on
> > > > > > my
> > > > > > desktop computer i would like to keep it as
> > > > > > my development OS but its not a "must". I can switch to
> windows if
> > > > > > linux is
> > > > > > not well supported.
> > > > > >
> > > > > > Questions:
> > > > > >
> > > > > > 1) Is there anybody here using Linux and developing for the
> LPC23xx?
> > > > > > Can you point
> > > > > > me to some "clear" tutorial on how to build a development
> enviroment
> > > > > > for
> > > > > > the LPC23xx uCs?
> > > > > >
> > > > > > What i have working so far:
> > > > > >
> > > > > > - Toolchain: Downloaded from GNUARM.com. Is this the good one?
> > > > > > - Eclipse: There are several tutorials/how-tos for
> > > linux/windows. Any
> > > > > > better setup?
> > > > > >
> > > > > If it works - why better? ;-)
> > > >
> > > >
> > > > Yes it works, i was just curious about other options.
> > > >
> > > >
> > > >
> > > > >
> > > > >
> > > > > > What i still miss:
> > > > > >
> > > > > > - LPC21ISP: I've downloaded and compiled version 1.48, but it
> > > doesn't
> > > > > > supports my LPC2368
> > > > > > (I know this is a little off-topic here, but maybe somebody can
> > > > > > confirm a version working). Any other solution for ISP on linux?
> > > > > lpc2k_pgm works fine for me:
> > > > > http://www.pjrc.com/arm/lpc2k_pgm
> > > > >
> > > > > And this is also terminal program.
> > > > >
> > > > > Albert
> > > > >
> > > >
> > > > I know lpc2k_pgm, but it doesn't supports my LPC2368 (as
> depicted on the
> > > > documentation).
> > > > This is a copy+paste of the console when running lpc2k_pgm:
> > > >
> > > > Port "/dev/ttyUSB0" opened at 9600 baud
> > > > Baud rate set to 115200
> > > > Reset CPU (into bootloader)
> > > >
> > > > Entering Bootloader Mode
> > > > Reset CPU (into bootloader)
> > > > Attempting baud sync......................Baud sync sucessful
> > > >
> > > > Download Canceled:
> > > > Unknown chip ID: "369162533".
> > > >
> > > > Perhaps you have a new Philips LPC chip which does not
> > > > have its ID string and sector map defined in this program?
> > > > Please contact paul@ Please include an exact copy
> > > > of this message and any info about the chip and other
> > > > hardware you may be using. Thanks :-)
> > > >
> > > >
> > > > Same results with lpc2isp (v1.48), my LPC2368 isn't supported.
> > > >
> > > > Any other tools?
> > > >
> > > >
> > > > Thanks for helping anyway :)
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
Hi,

currently I am only developing "middle-ware" and thus the customer
decides what to use. So I newer really compared various libraries.
I think this standard library issue is the biggest flaw of embedded GCC.
You can have so much trouble with them (size issues, compiling issues,
etc). So if I would build my own system, I would buy a GCC package that
contains a pre-built maintained and system trimmed standard library. I
personally prefer Rowley Crossworks (I am not related to them). If you
look back mailing list history they seem to be proficient and helpful.
And they have a version for Linux too. Again this is my personal opinion.
On the other hand if that would be a hobby project with low budget and
no deadline, I would be happy to dig myself in to library optimization,
compilation and other such issues.

Standard library alternatives I heard of (not Linux or other OS based):
uclibc: http://www.uclibc.org/
newlib: http://sourceware.org/newlib/
oslib: http://oslib.sourceforge.net/

I kindly ask everybody to extend and comment this list.

Foltos

Jorge S. wrote:
> On Wed, Sep 10, 2008 at 5:41 PM, Foltos wrote:
>
>
>> Hi,
>>
>> for the tool-chain try http://www.gnuarm.org/. gnuarm.com and .org has
>> different content. .org seems to be more up to date.
>> The official homepage of gcc (gcc.gnu.org) does not list an official arm
>> package maintainer. This means both "gnuarm.com" (registered by Richard
>> Collins) and "gnuarm.org" (registered by embedded.cl) has unofficial
>> binary packages.
>> So if you want to be sure get the latest source from gcc.gnu.org and
>> compile for yourself. (This is not a simple task. Also you need to
>> compile the standard library. You have several options here (newlib,
>> ucLibc, etc).)
>>
>>
> Wow! I didn't noticed the difference between .COM and .ORG, thanks for
> warning.
>
> The site gnuarm.ORG points to a codesourcery toolchain. What about this
> one? Any thoughts on this one?
>
> And about the libs, newlib seems to be the most used, any recommendations
> here?
>
> Thanks for helping :)
> .
>
>>
>>
>
>