public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: Bob Brusa <bob.brusa@gmail.com>
Cc: Mandeep Sandhu <mandeepsandhu.chd@gmail.com>,
		ecos-discuss <ecos-discuss@ecos.sourceware.org>
Subject: Re: [ECOS] Running code from on-chip flash
Date: Wed, 30 Sep 2009 10:35:00 -0000	[thread overview]
Message-ID: <20090930103540.GG4970@lunn.ch> (raw)
In-Reply-To: <op.u0171ya08qukij@w27>

> 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

      parent reply	other threads:[~2009-09-30 10:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-27  3:28 Mandeep Sandhu
2009-09-27 16:37 ` Andrew Lunn
2009-09-30  7:58   ` Bob Brusa
2009-09-30  7:50 ` Bob Brusa
2009-09-30  8:25   ` Mandeep Sandhu
2009-09-30  9:19     ` Robin Randhawa
2009-09-30 10:36       ` Mandeep Sandhu
2009-09-30 10:35   ` Andrew Lunn [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090930103540.GG4970@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=bob.brusa@gmail.com \
    --cc=ecos-discuss@ecos.sourceware.org \
    --cc=mandeepsandhu.chd@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).