From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28124 invoked by alias); 30 Sep 2009 07:58:40 -0000 Received: (qmail 28111 invoked by uid 22791); 30 Sep 2009 07:58:39 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from fg-out-1718.google.com (HELO fg-out-1718.google.com) (72.14.220.154) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 30 Sep 2009 07:58:35 +0000 Received: by fg-out-1718.google.com with SMTP id e21so1147862fga.12 for ; Wed, 30 Sep 2009 00:58:33 -0700 (PDT) Received: by 10.86.103.19 with SMTP id a19mr4966846fgc.54.1254297512954; Wed, 30 Sep 2009 00:58:32 -0700 (PDT) Received: from w27 (212-41-119-159.adsl.solnet.ch [212.41.119.159]) by mx.google.com with ESMTPS id 4sm280469fge.1.2009.09.30.00.58.31 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 30 Sep 2009 00:58:32 -0700 (PDT) Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes To: "Andrew Lunn" , "Mandeep Sandhu" Cc: ecos-discuss Reply-To: bob.brusa@gmail.com References: <20090927163722.GV16067@lunn.ch> Date: Wed, 30 Sep 2009 07:58:00 -0000 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Bob Brusa" Message-ID: In-Reply-To: <20090927163722.GV16067@lunn.ch> User-Agent: Opera Mail/10.00 (Win32) 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 on-chip flash X-SW-Source: 2009-09/txt/msg00263.txt.bz2 Am 27.09.2009, 18:37 Uhr, schrieb Andrew Lunn : > On Sun, Sep 27, 2009 at 08:57:59AM +0530, Mandeep Sandhu wrote: >> Hi all, >> >> I'm going to be using a real hardware for the first time (with ECOS). >> The h/w is the Atmel AT91SAM7X512 SoC. >> >> In order to save RAM, i'll be running the code from the on-chip flash >> itself (512KB). >> >> Now is it true that if my code resides on the flash, I will not be >> able to write to it? > > Wrong. You just need to be careful where you write. The AT91SAM7X512 > is also a bit easier since it has two controllers, so you could have > one controller for code and the other for data. > > Andrew > > ....and make sure that while you are fiddeling around in one bunch of flash, interrupts are either off or interrupts do not use code from this same bunch of flash.... Robert -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss