EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

Newbie looking for some recommendations

Started by "Jorge S." September 10, 2008
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?

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?

- LPC23xx CFG files for OPENOCD: I also own an Amontec JTAGTiny
interface, but its difficult to
find properly working CFG files. Any help here?
Any general recommendation here? what is people using in linux?
Eclipse+openOCD? Any other setup?

2) I came from the AVR world (ATMegas), where there are lots of
libraries for the peripherals and
some other general purpose tools (Register calculators, Delay
routines, etc)

- Are there any "must-have" libraries or tools that you use? I've
only found "PLL-Calculator".
I see lots of spare examples but not a complete guide, different .s
and .h files so its kinda
hard to know which one is the best option.
Regards,

Jorge.

An Engineer's Guide to the LPC2100 Series

----- Original Message -----
From: "Jorge S."
To:
Sent: Wednesday, September 10, 2008 10:20 AM
Subject: [lpc2000] Newbie looking for some recommendations
> 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?
>
> 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?
>
> - LPC23xx CFG files for OPENOCD: I also own an Amontec JTAGTiny
> interface, but its difficult to
> find properly working CFG files. Any help here?
> Any general recommendation here? what is people using in linux?
> Eclipse+openOCD? Any other setup?
>
> 2) I came from the AVR world (ATMegas), where there are lots of
> libraries for the peripherals and
> some other general purpose tools (Register calculators, Delay
> routines, etc)
>
> - Are there any "must-have" libraries or tools that you use? I've
> only found "PLL-Calculator".

Keith's Bitometer is very useful. I posted a link to it the other day.

Leon
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? ;-)

> 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
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 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 :-)
Same results with lpc2isp (v1.48), my LPC2368 isn't supported.

Any other tools?
Thanks for helping anyway :)

>
--- 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?
>

I am using OpenOCD (svn rev 738) and the Amontec JTAGKey with no
problems so far
openocd cfg file, you will need to change the interface bits to suit
the jtagtiny

#daemon configuration
telnet_port 4444
gdb_port 3333

#interface
interface ft2232
ft2232_device_desc "Amontec JTAGkey A"
ft2232_layout jtagkey
jtag_speed 100
ft2232_vid_pid 0x0403 0xcff8

#use combined on interfaces or targets that can't set TRST/SRST separately
reset_config trst_and_srst srst_pulls_trst

#jtag scan chain
#format L IRC IRCM IDCODE (Length, IR Capture, IR Capture Mask, IDCODE)
jtag_device 4 0x1 0xf 0xe

#target configuration
daemon_startup reset

#target
#target arm7tdmi
target arm7tdmi little run_and_halt 0 arm7tdmi-s_r4
run_and_halt_time 0 30

#working_area 0 0x7fe00000 0x4000 nobackup
working_area 0 0x40000000 0x40000 nobackup

#flash configuration
flash bank lpc2000 0x0 0x7d000 0 0 0 lpc2000_v2 4000 calc_checksum

Ben

--- 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,

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).)

Foltos

Jorge S. wrote:
> 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?
>
> 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?
>
> - LPC23xx CFG files for OPENOCD: I also own an Amontec JTAGTiny
> interface, but its difficult to
> find properly working CFG files. Any help here?
> Any general recommendation here? what is people using in linux?
> Eclipse+openOCD? Any other setup?
>
> 2) I came from the AVR world (ATMegas), where there are lots of
> libraries for the peripherals and
> some other general purpose tools (Register calculators, Delay
> routines, etc)
>
> - Are there any "must-have" libraries or tools that you use? I've
> only found "PLL-Calculator".
> I see lots of spare examples but not a complete guide, different .s
> and .h files so its kinda
> hard to know which one is the best option.
> Regards,
>
> Jorge.
>
>
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 :)

.
>

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?

Albert
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 :)
> >
> >
> >
> >
> >
> >
> >
> > >
> > >
> > >
> > >
> > >

The 2024 Embedded Online Conference