AW: [ECOS] Huge memory footprint for a simple "hello world"

Gary Thomas gary@mlbassoc.com
Fri Jun 9 14:33:00 GMT 2006


On Fri, 2006-06-09 at 16:23 +0200, Ram Sudhir Tadavarthi wrote:
> > > 1.Instead of using gdb, can you try to load the image through redboot
> > using
> > > "load" command and test?
> > ~/work/atmel/020606-ARM/install/bin$ arm-elf-gdb redboot.elf
> > GNU gdb 5.3 (eCosCentric)
> > Copyright 2002 Free Software Foundation, Inc.
> > GDB is free software, covered by the GNU General Public License, and you
> > are
> > welcome to change it and/or distribute copies of it under certain
> > conditions.
> > Type "show copying" to see the conditions.
> > There is absolutely no warranty for GDB.  Type "show warranty" for
> > details.
> > This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-elf"...
> > (gdb) tar rdi /dev/ttyS0
> > Angel Debug Monitor (serial) 1.04 (Advanced RISC Machines SDT 2.5) for
> > AT91EB40 (2.00)
> > Angel Debug Monitor rebuilt on Apr 07 2000 at 12:40:31
> > Serial Rate:   9600
> > Connected to ARM RDI target.
> > (gdb) set $cpsr=0xd3
> > (gdb) load
> > Loading section .rom_vectors, size 0x40 lma 0x2020000
> > Loading section .text, size 0xb1bc lma 0x2020040
> > Loading section .rodata, size 0x1c37 lma 0x202b1fc
> > Loading section .data, size 0x404 lma 0x202ce34
> > Start address 0x2020040, load size 53815
> > Transfer rate: 6331 bits/sec, 498 bytes/write.
> > (gdb) cont
> > Continuing.
> > 
> > [1]+  Stopped                 arm-elf-gdb redboot.elf
> > ~/work/atmel/020606-ARM/install/bin$ minicom
> > RedBoot> AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0
> > 
> > ** Error: Illegal command: "AT"
> > RedBoot> load -m xmodem
> > C*** Abort! Attempt to load ELF data to address: 0x02020000 which is not
> > in RAM
> > xyzModem - CRC mode, 257(SOH)/0(STX)/0(CAN) packets, 3 retries
> > RedBoot>

You can't use a RAM RedBoot to load a RAM program - they end up trying
to load in the same memory space.

This is probably your problem - your eCos applications will assume that
they were loaded by RedBoot (or at least RedBoot is present on the board
even if you are using GDB to load the application).  If this isn't the 
case, you need to configure your applications to not "USE_ROM_MONITOR"

Query: why don't you load RedBoot into the board's FLASH?  If you do,
things will probably start working much better for you.

Hint: use 'minicom -o' to prevent the "AT..." modem garbage.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list