From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5811 invoked by alias); 6 Jun 2006 12:03:23 -0000 Received: (qmail 5765 invoked by uid 22791); 6 Jun 2006 12:03:22 -0000 X-Spam-Check-By: sourceware.org Received: from wr-out-0506.google.com (HELO wr-out-0506.google.com) (64.233.184.232) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 06 Jun 2006 12:03:17 +0000 Received: by wr-out-0506.google.com with SMTP id 71so1343696wri for ; Tue, 06 Jun 2006 05:03:15 -0700 (PDT) Received: by 10.64.156.3 with SMTP id d3mr4270848qbe; Tue, 06 Jun 2006 05:03:05 -0700 (PDT) Received: by 10.64.180.15 with HTTP; Tue, 6 Jun 2006 05:03:05 -0700 (PDT) Message-ID: Date: Tue, 06 Jun 2006 12:03:00 -0000 From: "Socrates Socrates" To: ecos-discuss@ecos.sourceware.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] Huge memory footprint for a simple "hello world" X-SW-Source: 2006-06/txt/msg00048.txt.bz2 Hi All AIM: I am using the EB40 board and I am trying to test a simple "hellow world" application. Problem: The memory footprint of the application is too big to fit into the available RAM. The failure happens during uploading of the application. Here's more information of my steps: 1. I used "ecoconfig EB40" to setup and build redboot for the EB40 board. 2. I used "arm-elf-gdb redboot.elf" , tar rdi /dev/ttyS0, set $cpsr=0xd3, load, cont, Crtl Z, minicom 3. RedBoot> load -b -m xmodem -b 0x02033428 # My notes: 0x02033428 is the lower range of the available RAM as reported by 'version' command on RedBoot 4. I comppile and link my test app /opt/ecos/gnutools/arm-elf/bin/arm-elf-gcc -c -o test.o -Wall -I/home/socrates/work/atmel/020606-ARM/install/include test.c /opt/ecos/gnutools/arm-elf/bin/arm-elf-ld -nostartfiles -nostdlibs -L/opt/ecos/gnutools/arm-elf/arm-elf/lib -L/opt/ecos/gnutools/arm-elf/lib/gcc-lib/arm-elf/3.2.1/ -o test test.o -T/home/socrates/work/atmel/020606-ARM/install/lib/target.ld socrates@would:~/work/atmel$ ls -l test* -rwxr-xr-x 1 socrates socrates 322442 Jun 6 12:06 test -rw-r--r-- 1 socrates socrates 138 Jun 6 11:35 test.c -rw-r--r-- 1 socrates socrates 880 Jun 6 12:06 test.o Here's is my test.c file: ************************************************************************* #include char *RedBoot_version = "aslkjdahlsdfjk"; int main(void) { diag_printf("HELLO WORLD\n"); return 0; } ************************************************************************** I'd really appreciate your help. Oh, I am very very new to EB40 or ecos for that matter. Kind regards; Socrates -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss