AT91SAM7S64: flash programming

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.

Reply to
Roman Mashak
Loading thread data ...

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
Reply to
Roman Mashak

Op Wed, 04 Jun 2008 17:42:57 +0200 schreef Roman Mashak :

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 to
Boudewijn Dijkstra

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.