[ECOS] how to choose the package and the multi-thread
kiki w
kiki_wus@yahoo.com
Fri Oct 5 11:40:00 GMT 2001
Hi,
>From what you said, my understanding is:
1. Without porting redboot on a custom board, we
could use the functions such as cyg_thread_create
to develop our application software (when building
the eCos library, what we need to do is only to
include ecos kernel and untron package) and run
that code in RAM of our board. We do not need
any debugger program running on the custom board.
2. we could finally build the binary image for ROM by
setting up the startup type to ROM and using some
flash programmer to download that image into ROM.
Is my understanding correct? Thanks!
--- Jonathan Larmour <jlarmour@redhat.com> wrote:
> kiki w wrote:
> >
> > hi,
> >
> > Thanks for your reply, for my first question, I
> got
> > the following after using arm-elf-size
> >
> > $ arm-elf-size hello.exe
> > text data bss dec hex filename
> > 26660 2320 15404 44384 ad60 hello.exe
> >
> > is it bytes or bits?
>
> Bytes. And of course you can still reduce it
> substantially using
> configuration.
>
> > 1. build templates: choose EB40 and default
> package
> > 2. Once I have the EB40 template selected, click
> on
> > the "eCos HAL"package to open it up. Next, click
> on
> > the "Atmel evaluation board (EB40)" package
> > to open it. Choose startup type from the RAM to
> ROM.
> > 3. Build the library.
> >
> > I was wondering whether what I did is correct.
>
> Yes.
>
> > Then I download an application code into the board
> > (with linking to the new liarary),but I got the
> > following
> > error message from the gdb consile window:
> >
> > Loading section .rom_vectors, size 0x40 lma
> 0x1010000
> > loading section .text, size 0x65dc lma 0x1010040
> > ..............................
> > .............................(omit )
>
> You can't download something into ROM! You have to
> use a ROM or Flash
> programmer of some sort. Or if you are using Angel,
> you have to program it
> into ROM using its routines. This would be done the
> same way you programmed
> RedBoot into ROM as per
>
http://sources.redhat.com/ecos/docs-latest/redboot/at91.html
>
> So do it by downloading and running a RedBoot RAM
> image first, then loading
> and programming your application ROM image.
>
> Jifl
> --
> Red Hat, Rustat House, Clifton Road, Cambridge, UK.
> Tel: +44 (1223) 271062
> Maybe this world is another planet's Hell -Aldous
> Huxley || Opinions==mine
__________________________________________________
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1
More information about the Ecos-discuss
mailing list