Newbie: simple questions?

Started by JoeR February 9, 2008
Hi all,

Wheres the links for newbie arm7?
I am new to raw arm7, having used the Coridium arm7 C setup.
Where I am.
I hava yagarto installed and compiling,
I have Procylon armlib installed, and I built the example uart.
I have NXP Flash Magic installed, and flashed the hex to my board.

Heres my trouble. Its a Futurlec 2103F proto board. Now this board
is different from other boards/refs I have seen, it has a 19.660Mhz
chrystal. Anyway the uart test seems to behave as expected except the
chars are illegibal (wrong baud rate?). If most boards/example
presume a 12Mhz chrystal, is my multiplier set wrong?

Wheres the links that explains crt.s and setup.s ?

Are these the 2 files that define my 'board package'?
Where would one find docs on how to set those up for your hardware?

Sorry for all the same repeat questions, if these are in a FAQ please
point me to it.

Thanks,
Joe

An Engineer's Guide to the LPC2100 Series

Joe,

Have you read the manual for the LPC2103?
http://www.keil.com/dd/docs/datashts/philips/user_manual_lpc2101_2102_
2103.pdf

Even if your not using Keil this document should be helpful.

-Zac

--- In l..., "JoeR" wrote:
>
> Hi all,
>
> Wheres the links for newbie arm7?
> I am new to raw arm7, having used the Coridium arm7 C setup.
> Where I am.
> I hava yagarto installed and compiling,
> I have Procylon armlib installed, and I built the example uart.
> I have NXP Flash Magic installed, and flashed the hex to my board.
>
> Heres my trouble. Its a Futurlec 2103F proto board. Now this board
> is different from other boards/refs I have seen, it has a 19.660Mhz
> chrystal. Anyway the uart test seems to behave as expected except
the
> chars are illegibal (wrong baud rate?). If most boards/example
> presume a 12Mhz chrystal, is my multiplier set wrong?
>
> Wheres the links that explains crt.s and setup.s ?
>
> Are these the 2 files that define my 'board package'?
> Where would one find docs on how to set those up for your hardware?
>
> Sorry for all the same repeat questions, if these are in a FAQ
please
> point me to it.
>
> Thanks,
> Joe
>
--- In l..., "rtstofer" wrote:
>
> --- In l..., "JoeR" wrote:
> >
> > Hi all,
> >
> > Wheres the links for newbie arm7?
> > I am new to raw arm7, having used the Coridium arm7 C setup.
> > AFAICT, there is no such thing. You're on your own! There is a
> terrific tutorial by James Lynch "ARM Cross Development with Eclipse
> Version 3" which is hard to find. Try Google. If you can't find it,
> send my an off-line email and I'll send it to you. It is specific to
> the LPC2106 and LPC2148 but the explanations are valid for the LPC2103
> after you account for the memory configuration in the linker scripts.
>
> >
> > Where I am.
> > I hava yagarto installed and compiling,
> > I have Procylon armlib installed, and I built the example uart.
> > I have NXP Flash Magic installed, and flashed the hex to my board.
> >
> > Heres my trouble. Its a Futurlec 2103F proto board. Now this board
> > is different from other boards/refs I have seen, it has a 19.660Mhz
> > chrystal. Anyway the uart test seems to behave as expected except the
> > chars are illegibal (wrong baud rate?). If most boards/example
> > presume a 12Mhz chrystal, is my multiplier set wrong?
>
> Very probably! Read the User Manual and figure out the proper
> divisor. I am guessing that the baud rate is set up in setup.s
> because that is not a 'standard' startup file.
>
> >
> > Wheres the links that explains crt.s and setup.s ?
>
> CRT.s is a standard startup file. It is responsible for setting up
> the various stacks, initializing memory and branching to main().
>
> >
> > Are these the 2 files that define my 'board package'?
>
> Yup!
>
> > Where would one find docs on how to set those up for your hardware?
>
> Get the User Manual
>
http://www.standardics.nxp.com/support/documents/microcontrollers/pdf/user.manual.lpc2101.lpc2102.lpc2103.pdf
> and the Datasheet
> http://www.nxp.com/acrobat_download/datasheets/LPC2101_02_03_2.pdf
> along with the Errata
>
http://robotics.ee.calpoly.edu/dokuwiki/lib/exe/fetch.php?id=robomagellan%3Astart&cachehe&media=robomagellan:lpc2103_erratasheet.pdf
>
> Read them carefully, there will be a test later.
>
> Richard
>

Thanks for all the links...got some reading to do.
Joe
--- In l..., "JoeR" wrote:
>
> Hi all,
>
> Wheres the links for newbie arm7?
> I am new to raw arm7, having used the Coridium arm7 C setup.
>

AFAICT, there is no such thing. You're on your own! There is a
terrific tutorial by James Lynch "ARM Cross Development with Eclipse
Version 3" which is hard to find. Try Google. If you can't find it,
send my an off-line email and I'll send it to you. It is specific to
the LPC2106 and LPC2148 but the explanations are valid for the LPC2103
after you account for the memory configuration in the linker scripts.

>
> Where I am.
> I hava yagarto installed and compiling,
> I have Procylon armlib installed, and I built the example uart.
> I have NXP Flash Magic installed, and flashed the hex to my board.
>
> Heres my trouble. Its a Futurlec 2103F proto board. Now this board
> is different from other boards/refs I have seen, it has a 19.660Mhz
> chrystal. Anyway the uart test seems to behave as expected except the
> chars are illegibal (wrong baud rate?). If most boards/example
> presume a 12Mhz chrystal, is my multiplier set wrong?

Very probably! Read the User Manual and figure out the proper
divisor. I am guessing that the baud rate is set up in setup.s
because that is not a 'standard' startup file.

>
> Wheres the links that explains crt.s and setup.s ?

CRT.s is a standard startup file. It is responsible for setting up
the various stacks, initializing memory and branching to main().

>
> Are these the 2 files that define my 'board package'?

Yup!

> Where would one find docs on how to set those up for your hardware?

Get the User Manual
http://www.standardics.nxp.com/support/documents/microcontrollers/pdf/user.manual.lpc2101.lpc2102.lpc2103.pdf
and the Datasheet
http://www.nxp.com/acrobat_download/datasheets/LPC2101_02_03_2.pdf
along with the Errata
http://robotics.ee.calpoly.edu/dokuwiki/lib/exe/fetch.php?id=robomagellan%3Astart&cachehe&media=robomagellan:lpc2103_erratasheet.pdf

Read them carefully, there will be a test later.

Richard
I got Yagarto+Procyon ArmLib to work with the Futurlec 2103 arm board.
brd: http://www.futurlec.com/ARM2103_Controller.shtml

I made the Procyon uart demo program. I only had to change the CCLK
and Multiplier (from 4 to 3) in the global.h for the project. And
change the memory size in the /arch/boot/lpc2106-rom.ld (actually I
copied to a lpc2103-rom.ld) from 128kb to 32kb(and 64 to 8 ram). Once
I did all that, I used NXP FlashMagic to flash the hex and it works.

BTW I am also using a USB->serial adapter, and programming flash over
the serial-1 port.

Thanks,
Joe
Dear Richard,
could you please upload the tutorial

"ARM Cross Development with Eclipse Version 3"

somewhere around here (for example trough Rapidshare) or better into the
common section files and send the download link?

Thanks in advance
Fabio Filippa

-----Messaggio originale-----
Da: rtstofer [mailto:r...@pacbell.net]
Inviato: sabato 9 febbraio 2008 18.44
A: l...
Oggetto: [lpc2000] Re: Newbie: simple questions?

--- In lpc2000@yahoogroups .com,
"JoeR" wrote:
>
> Hi all,
>
> Wheres the links for newbie arm7?
> I am new to raw arm7, having used the Coridium arm7 C setup.
>

AFAICT, there is no such thing. You're on your own! There is a
terrific tutorial by James Lynch "ARM Cross Development with Eclipse
Version 3" which is hard to find. Try Google. If you can't find it,
send my an off-line email and I'll send it to you. It is specific to
the LPC2106 and LPC2148 but the explanations are valid for the LPC2103
after you account for the memory configuration in the linker scripts.

>
> Where I am.
> I hava yagarto installed and compiling,
> I have Procylon armlib installed, and I built the example uart.
> I have NXP Flash Magic installed, and flashed the hex to my board.
>
> Heres my trouble. Its a Futurlec 2103F proto board. Now this board
> is different from other boards/refs I have seen, it has a 19.660Mhz
> chrystal. Anyway the uart test seems to behave as expected except the
> chars are illegibal (wrong baud rate?). If most boards/example
> presume a 12Mhz chrystal, is my multiplier set wrong?

Very probably! Read the User Manual and figure out the proper
divisor. I am guessing that the baud rate is set up in setup.s
because that is not a 'standard' startup file.

>
> Wheres the links that explains crt.s and setup.s ?

CRT.s is a standard startup file. It is responsible for setting up
the various stacks, initializing memory and branching to main().

>
> Are these the 2 files that define my 'board package'?

Yup!

> Where would one find docs on how to set those up for your hardware?

Get the User Manual
http://www.standard
ser.manual.lpc2101.lpc2102.lpc2103.pdf>
ics.nxp.com/support/documents/microcontrollers/pdf/user.manual.lpc2101.l
pc2102.lpc2103.pdf
and the Datasheet
http://www.nxp.

com/acrobat_download/datasheets/LPC2101_02_03_2.pdf
along with the Errata
http://robotics.
an%3Astart&cachehe&media=robomagellan:lpc2103_erratasheet.pdf>
ee.calpoly.edu/dokuwiki/lib/exe/fetch.php?id=robomagellan%3Astart&cachecache&media=robomagellan:lpc2103_erratasheet.pdf

Read them carefully, there will be a test later.

Richard
Hi,
The tutorial can be downloaded from here:
http://www.atmel.com/dyn/resources/prod_documents/atmel_tutorial_source.zip
Regards,
Ioan

Fabio Filippa wrote:
>
> Dear Richard,
> could you please upload the tutorial
>
> "ARM Cross Development with Eclipse Version 3"
>
> somewhere around here (for example trough Rapidshare) or better into the
> common section files and send the download link?
>
> Thanks in advance
> Fabio Filippa
> -----Messaggio originale-----
> Da: rtstofer [mailto:r...@pacbell.net ]
> Inviato: sabato 9 febbraio 2008 18.44
> A: l...
> Oggetto: [lpc2000] Re: Newbie: simple questions?
>
> --- In lpc2000@yahoogroups .com,
> "JoeR" wrote:
> >
> > Hi all,
> >
> > Wheres the links for newbie arm7?
> > I am new to raw arm7, having used the Coridium arm7 C setup.
> > AFAICT, there is no such thing. You're on your own! There is a
> terrific tutorial by James Lynch "ARM Cross Development with Eclipse
> Version 3" which is hard to find. Try Google. If you can't find it,
> send my an off-line email and I'll send it to you. It is specific to
> the LPC2106 and LPC2148 but the explanations are valid for the LPC2103
> after you account for the memory configuration in the linker scripts.
>
> >
> > Where I am.
> > I hava yagarto installed and compiling,
> > I have Procylon armlib installed, and I built the example uart.
> > I have NXP Flash Magic installed, and flashed the hex to my board.
> >
> > Heres my trouble. Its a Futurlec 2103F proto board. Now this board
> > is different from other boards/refs I have seen, it has a 19.660Mhz
> > chrystal. Anyway the uart test seems to behave as expected except the
> > chars are illegibal (wrong baud rate?). If most boards/example
> > presume a 12Mhz chrystal, is my multiplier set wrong?
>
> Very probably! Read the User Manual and figure out the proper
> divisor. I am guessing that the baud rate is set up in setup.s
> because that is not a 'standard' startup file.
>
> >
> > Wheres the links that explains crt.s and setup.s ?
>
> CRT.s is a standard startup file. It is responsible for setting up
> the various stacks, initializing memory and branching to main().
>
> >
> > Are these the 2 files that define my 'board package'?
>
> Yup!
>
> > Where would one find docs on how to set those up for your hardware?
>
> Get the User Manual
> http://www.standard
> >
> ser.manual.lpc2101.lpc2102.lpc2103.pdf>
> ics.nxp.com/support/documents/microcontrollers/pdf/user.manual.lpc2101.l
> pc2102.lpc2103.pdf
> and the Datasheet
> http://www.nxp.
> > >
> com/acrobat_download/datasheets/LPC2101_02_03_2.pdf
> along with the Errata
> http://robotics.
> >
> an%3Astart&cachehe&media=robomagellan:lpc2103_erratasheet.pdf>
> ee.calpoly.edu/dokuwiki/lib/exe/fetch.php?id=robomagellan%3Astart&cache> cache&media=robomagellan:lpc2103_erratasheet.pdf
>
> Read them carefully, there will be a test later.
>
> Richard
>
>
>
>
Thanks for link.

Regards
Fabio Filippa


-----Messaggio originale-----
Da: Ravi [mailto:p...@rediffmail.com]
Inviato: marted12 febbraio 2008 17.53
A: l...
Oggetto: Re: R: [lpc2000] Re: Newbie: simple questions?

"ARM Cross Development with Eclipse"
see the following links

http://www.sparkfun
.pdf> .com/tutorial/ARM/ARM_Cross_Development_with_Eclipse.pdf

On Mon, 11 Feb 2008 Fabio Filippa wrote :
>Dear Richard,
>could you please upload the tutorial
>
>"ARM Cross Development with Eclipse Version 3"
>
>somewhere around here (for example trough Rapidshare) or better into
the
>common section files and send the download link?
>
>Thanks in advance
>Fabio Filippa
>-----Messaggio originale-----
>Da: rtstofer [mailto: rstofer@pacbell.
net]
>Inviato: sabato 9 febbraio 2008 18.44
>A: lpc2000@yahoogroups .com
>Oggetto: [lpc2000] Re: Newbie: simple questions?
>
>--- In lpc2000@yahoogroups .com,
>"JoeR" wrote:
> >
> > Hi all,
> >
> > Wheres the links for newbie arm7?
> > I am new to raw arm7, having used the Coridium arm7 C setup.
> >AFAICT, there is no such thing. You're on your own! There is a
>terrific tutorial by James Lynch "ARM Cross Development with Eclipse
>Version 3" which is hard to find. Try Google. If you can't find it,
>send my an off-line email and I'll send it to you. It is specific to
>the LPC2106 and LPC2148 but the explanations are valid for the LPC2103
>after you account for the memory configuration in the linker scripts.
>
> >
> > Where I am.
> > I hava yagarto installed and compiling,
> > I have Procylon armlib installed, and I built the example uart.
> > I have NXP Flash Magic installed, and flashed the hex to my board.
> >
> > Heres my trouble. Its a Futurlec 2103F proto board. Now this board
> > is different from other boards/refs I have seen, it has a 19.660Mhz
> > chrystal. Anyway the uart test seems to behave as expected except
the
> > chars are illegibal (wrong baud rate?). If most boards/example
> > presume a 12Mhz chrystal, is my multiplier set wrong?
>
>Very probably! Read the User Manual and figure out the proper
>divisor. I am guessing that the baud rate is set up in setup.s
>because that is not a 'standard' startup file.
>
> >
> > Wheres the links that explains crt.s and setup.s ?
>
>CRT.s is a standard startup file. It is responsible for setting up
>the various stacks, initializing memory and branching to main().
>
> >
> > Are these the 2 files that define my 'board package'?
>
>Yup!
>
> > Where would one find docs on how to set those up for your hardware?
>
>Get the User Manual
> http://www.standard
>< http://www.standard
> ics.nxp.com/support/documents/microcontrollers/pdf/u
>ser.manual.lpc2101.lpc2102.lpc2103.pdf>
>ics.nxp.com/support/documents/microcontrollers/pdf/user.manual.lpc2101.
l
>pc2102.lpc2103.pdf
>and the Datasheet
> http://www.nxp.
>< http://www.nxp.

com/acrobat_download/datasheets/LPC2101_02_03_2.pdf>
>com/acrobat_download/datasheets/LPC2101_02_03_2.pdf
>along with the Errata
> http://robotics.
>< http://robotics.
> ee.calpoly.edu/dokuwiki/lib/exe/fetch.php?id=robomagell
>an%3Astart&cache=cache&media=robomagellan:lpc2103_erratasheet.pdf>
>ee.calpoly.edu/dokuwiki/lib/exe/fetch.php?id=robomagellan%3Astart&cache
=
>cache&media=robomagellan:lpc2103_erratasheet.pdf
>
>Read them carefully, there will be a test later.
>
>Richard
>
>
>









Hi Ioan,
thanks very much for the link!!

Best regards
Fabio Filippa


-----Messaggio originale-----
Da: Petrescu [mailto:i...@antrice.ro]
Inviato: luned11 febbraio 2008 14.44
A: l...
Oggetto: Re: R: [lpc2000] Re: Newbie: simple questions?

Hi,
The tutorial can be downloaded from here:
http://www.atmel.
.zip> com/dyn/resources/prod_documents/atmel_tutorial_source.zip
Regards,
Ioan

Fabio Filippa wrote:
>
> Dear Richard,
> could you please upload the tutorial
>
> "ARM Cross Development with Eclipse Version 3"
>
> somewhere around here (for example trough Rapidshare) or better into
the
> common section files and send the download link?
>
> Thanks in advance
> Fabio Filippa
> -----Messaggio originale-----
> Da: rtstofer [mailto: rstofer@pacbell.
net ]
> Inviato: sabato 9 febbraio 2008 18.44
> A: lpc2000@yahoogroups .com

> Oggetto: [lpc2000] Re: Newbie: simple questions?
>
> --- In lpc2000@yahoogroups .com,
> "JoeR" wrote:
> >
> > Hi all,
> >
> > Wheres the links for newbie arm7?
> > I am new to raw arm7, having used the Coridium arm7 C setup.
> > AFAICT, there is no such thing. You're on your own! There is a
> terrific tutorial by James Lynch "ARM Cross Development with Eclipse
> Version 3" which is hard to find. Try Google. If you can't find it,
> send my an off-line email and I'll send it to you. It is specific to
> the LPC2106 and LPC2148 but the explanations are valid for the LPC2103
> after you account for the memory configuration in the linker scripts.
>
> >
> > Where I am.
> > I hava yagarto installed and compiling,
> > I have Procylon armlib installed, and I built the example uart.
> > I have NXP Flash Magic installed, and flashed the hex to my board.
> >
> > Heres my trouble. Its a Futurlec 2103F proto board. Now this board
> > is different from other boards/refs I have seen, it has a 19.660Mhz
> > chrystal. Anyway the uart test seems to behave as expected except
the
> > chars are illegibal (wrong baud rate?). If most boards/example
> > presume a 12Mhz chrystal, is my multiplier set wrong?
>
> Very probably! Read the User Manual and figure out the proper
> divisor. I am guessing that the baud rate is set up in setup.s
> because that is not a 'standard' startup file.
>
> >
> > Wheres the links that explains crt.s and setup.s ?
>
> CRT.s is a standard startup file. It is responsible for setting up
> the various stacks, initializing memory and branching to main().
>
> >
> > Are these the 2 files that define my 'board package'?
>
> Yup!
>
> > Where would one find docs on how to set those up for your hardware?
>
> Get the User Manual
> http://www.standard
> < http://www.standard
> ics.nxp.com/support/documents/microcontrollers/pdf/u
> < http://www.standard
> ics.nxp.com/support/documents/microcontrollers/pdf/u>
> ser.manual.lpc2101.lpc2102.lpc2103.pdfics.nxp.com/support/documents/microcontrollers/pdf/user.manual.lpc2101.l
> pc2102.lpc2103.pdf
> and the Datasheet
> http://www.nxp.
> < http://www.nxp.

com/acrobat_download/datasheets/LPC2101_02_03_2.pdf
> < http://www.nxp.

com/acrobat_download/datasheets/LPC2101_02_03_2.pdf>>
> com/acrobat_download/datasheets/LPC2101_02_03_2.pdf
> along with the Errata
> http://robotics.
> < http://robotics.
> ee.calpoly.edu/dokuwiki/lib/exe/fetch.php?id=robomagell
> < http://robotics.
> ee.calpoly.edu/dokuwiki/lib/exe/fetch.php?id=robomagell>
> an%3Astart&cache=cache&media=robomagellan:lpc2103_erratasheet.pdfee.calpoly.edu/dokuwiki/lib/exe/fetch.php?id=robomagellan%3Astart&cache=
> cache&media=robomagellan:lpc2103_erratasheet.pdf
>
> Read them carefully, there will be a test later.
>
> Richard
>
>
>
>






"ARM Cross Development with Eclipse"
see the following links

http://www.sparkfun.com/tutorial/ARM/ARM_Cross_Development_with_Eclipse.pdf
On Mon, 11 Feb 2008 Fabio Filippa wrote :
>Dear Richard,
>could you please upload the tutorial
>
>"ARM Cross Development with Eclipse Version 3"
>
>somewhere around here (for example trough Rapidshare) or better into the
>common section files and send the download link?
>
>Thanks in advance
>Fabio Filippa
>-----Messaggio originale-----
>Da: rtstofer [mailto:r...@pacbell.net]
>Inviato: sabato 9 febbraio 2008 18.44
>A: l...
>Oggetto: [lpc2000] Re: Newbie: simple questions?
>
>--- In lpc2000@yahoogroups .com,
>"JoeR" wrote:
> >
> > Hi all,
> >
> > Wheres the links for newbie arm7?
> > I am new to raw arm7, having used the Coridium arm7 C setup.
> >AFAICT, there is no such thing. You're on your own! There is a
>terrific tutorial by James Lynch "ARM Cross Development with Eclipse
>Version 3" which is hard to find. Try Google. If you can't find it,
>send my an off-line email and I'll send it to you. It is specific to
>the LPC2106 and LPC2148 but the explanations are valid for the LPC2103
>after you account for the memory configuration in the linker scripts.
>
> >
> > Where I am.
> > I hava yagarto installed and compiling,
> > I have Procylon armlib installed, and I built the example uart.
> > I have NXP Flash Magic installed, and flashed the hex to my board.
> >
> > Heres my trouble. Its a Futurlec 2103F proto board. Now this board
> > is different from other boards/refs I have seen, it has a 19.660Mhz
> > chrystal. Anyway the uart test seems to behave as expected except the
> > chars are illegibal (wrong baud rate?). If most boards/example
> > presume a 12Mhz chrystal, is my multiplier set wrong?
>
>Very probably! Read the User Manual and figure out the proper
>divisor. I am guessing that the baud rate is set up in setup.s
>because that is not a 'standard' startup file.
>
> >
> > Wheres the links that explains crt.s and setup.s ?
>
>CRT.s is a standard startup file. It is responsible for setting up
>the various stacks, initializing memory and branching to main().
>
> >
> > Are these the 2 files that define my 'board package'?
>
>Yup!
>
> > Where would one find docs on how to set those up for your hardware?
>
>Get the User Manual
>http://www.standard
> >ser.manual.lpc2101.lpc2102.lpc2103.pdf>
>ics.nxp.com/support/documents/microcontrollers/pdf/user.manual.lpc2101.l
>pc2102.lpc2103.pdf
>and the Datasheet
>http://www.nxp.
>
>com/acrobat_download/datasheets/LPC2101_02_03_2.pdf
>along with the Errata
>http://robotics.
> >an%3Astart&cachehe&media=robomagellan:lpc2103_erratasheet.pdf>
>ee.calpoly.edu/dokuwiki/lib/exe/fetch.php?id=robomagellan%3Astart&cache>cache&media=robomagellan:lpc2103_erratasheet.pdf
>
>Read them carefully, there will be a test later.
>
>Richard
>
>
>