From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1694 invoked by alias); 7 Dec 2009 10:07:47 -0000 Received: (qmail 1681 invoked by uid 22791); 7 Dec 2009 10:07:46 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-ew0-f215.google.com (HELO mail-ew0-f215.google.com) (209.85.219.215) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 07 Dec 2009 10:07:42 +0000 Received: by ewy7 with SMTP id 7so5192370ewy.32 for ; Mon, 07 Dec 2009 02:07:40 -0800 (PST) MIME-Version: 1.0 Received: by 10.213.100.18 with SMTP id w18mr6928430ebn.60.1260180460096; Mon, 07 Dec 2009 02:07:40 -0800 (PST) In-Reply-To: <192730.65612.qm@web112412.mail.gq1.yahoo.com> References: <26674151.post@talk.nabble.com> <192730.65612.qm@web112412.mail.gq1.yahoo.com> Date: Mon, 07 Dec 2009 10:07:00 -0000 Message-ID: From: Tom Deconinck To: Shiang Lei , ecos-discuss Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 Firmware from external SRAM on AT91SAM7SE512 X-SW-Source: 2009-12/txt/msg00016.txt.bz2 On Mon, Dec 7, 2009 at 10:11 AM, Shiang Lei wrote: > Tom: > > Thanks for e-mail me. My CPU is ARM 7 and the code can run on the external > SRAM. The problem=A0happened when running the cyg_thread_delay(). Timer > interrupt occured inside=A0the subroutine. I cannot step through the > subroutine,=A0it will not fail and=A0can't exit either. If I let it ran a= nd stop > the BDI,=A0the SRAM has been wiped out. No trace I can use to debug the > problem. > > Regards, > Shiang Lei > > On AT91SAM7SE512 it is certainly possible to run code from SRAM and SDRAM, I have done it in the past. You need to figure out where you are jumping to when the interrupt occurs and if the interrupt controllers are all mapped into the correct address range. Check the ELF file to be sure. Also, verify that your ELF file fits completely into the SRAM, otherwise strange things are bound to happen. The BDI probe will most likely reset the SRAM when stopped (if I remember correctly). Regards, Tom -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss