From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12194 invoked by alias); 30 Sep 2009 10:35:47 -0000 Received: (qmail 12185 invoked by uid 22791); 30 Sep 2009 10:35:47 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 30 Sep 2009 10:35:43 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1MswX6-00077Z-00; Wed, 30 Sep 2009 12:35:40 +0200 Date: Wed, 30 Sep 2009 10:35:00 -0000 From: Andrew Lunn To: Bob Brusa Cc: Mandeep Sandhu , ecos-discuss Message-ID: <20090930103540.GG4970@lunn.ch> Mail-Followup-To: Bob Brusa , Mandeep Sandhu , ecos-discuss References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) 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/msg00269.txt.bz2 > Yes, its true. You will not be able to run tricks like > self-modifying code that resides in flash. You would have to move > such a routine to RAM and execute it there. eCos FLASH routines are already magically in RAM. Also the AT91SAM7 devices have a flash controller which handles most of the details and does most of the work for you. It can halt the CPU while writing to FLASH if it needs to be halted because it tries to make an access while the write operation is active. As usual, the datasheet and the source code is the definitive source of information. 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