AT91SAM7S64: flash programming

Jun 04, 2008 2 Replies

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.

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

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/

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required