Reply by Boudewijn Dijkstra●June 5, 20082008-06-05
Op Wed, 04 Jun 2008 17:42:57 +0200 schreef Roman Mashak <mrv@tusur.ru>:
> Reading the SAM7 datasheet's chapter on embedded flash I ran across this
> snippet:
>
> "Access to the Flash in read mode is permitted when a Lock or Unlock
> command
> is performed
> ...
> Access to the Flash in read mode is permitted when a Set, Clear or Get
> General-purpose NVM bit cmmand is performed"
>
> Does this imply that:
> 1) C-functions implementing Lock/Unlock/Set/Clear do not need to be run
> from
> RAM (in terms of IAR such functions should not be prefixed with
> "__ramfunc"
> keyword)?
> 2) interrupts can be left untouched (i.e. no need to disable interrupts
> flash before operation and enable them back after) ?
3) Access to the Flash in read mode is permitted regardless of the setting
of the Lock or NVM bits.
--
Gemaakt met Opera's revolutionaire e-mailprogramma:
http://www.opera.com/mail/
Reply by Roman Mashak●June 4, 20082008-06-04
Hello,
Reading the SAM7 datasheet's chapter on embedded flash I ran across this
snippet:
"Access to the Flash in read mode is permitted when a Lock or Unlock command
is performed
...
Access to the Flash in read mode is permitted when a Set, Clear or Get
General-purpose NVM bit cmmand is performed"
Does this imply that:
1) C-functions implementing Lock/Unlock/Set/Clear do not need to be run from
RAM (in terms of IAR such functions should not be prefixed with "__ramfunc"
keyword)?
2) interrupts can be left untouched (i.e. no need to disable interrupts
flash before operation and enable them back after) ?
Thanks.
--
Best regards, Roman