From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5203 invoked by alias); 6 Nov 2007 16:23:58 -0000 Received: (qmail 5195 invoked by uid 22791); 6 Nov 2007 16:23:57 -0000 X-Spam-Check-By: sourceware.org Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 06 Nov 2007 16:23:55 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1IpRDT-0006rG-00; Tue, 06 Nov 2007 17:23:51 +0100 Date: Tue, 06 Nov 2007 16:23:00 -0000 From: Andrew Lunn To: Tom Deconinck Cc: ecos-discuss@ecos.sourceware.org Message-ID: <20071106162351.GK16191@lunn.ch> Mail-Followup-To: Tom Deconinck , ecos-discuss@ecos.sourceware.org References: <20071106103413.GG16191@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] Running code from external ram on the AT91SAM7SE X-SW-Source: 2007-11/txt/msg00036.txt.bz2 > Thanks for the assembly clarification. > I've verified it: it's the RAM startup that gets called. I'm getting > into start because the start address is set in the ELF file (first, > the CPSR register is set and then the start is called) > > The init_flag is not zero, not even the first time the code gets > called, that explains the looping. That is significant and probably indicates a bigger problem. Are you sure your data section is getting loaded? Do an arm-elf-objdump --headers on your image and see what flags are on the data section. Andrew -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss