Atmel website | ARM Community | AVR freaks | Technical Support
Banner
Welcome to AT91SAM Community Forum
http://www.at91.com/samphpbb/

AT91SAM7A3 FLASH LOCK
http://www.at91.com/samphpbb/viewtopic.php?f=15&t=19139
Page 1 of 1

Author:  multis [ Fri Apr 09, 2010 2:57 pm ]
Post subject:  AT91SAM7A3 FLASH LOCK

Dear All,
can anyone help me, how to LOCK FLASH memory of AT91SAM7A3?
Regards,David

Author:  dfridley [ Fri Apr 09, 2010 5:11 pm ]
Post subject:  Re: AT91SAM7A3 FLASH LOCK

You will have to write to the MC_FCR register for each page you want to lock (pages are 256bytes in size). See the data sheet.

FYI: this only locks the page from subsequent writes it does not prevent reads.

So, to lock page 0x0a you would load the MC_FCR with 0x5a000a02
Then you should wait until the the FRDY bit in the MC_FSR = 1
Finally you should check the status of the operation.

This assumes that you have properly set up the Embedded Flash Controller (EFC) for use.

Author:  multis [ Mon Apr 12, 2010 7:35 am ]
Post subject:  Re: AT91SAM7A3 FLASH LOCK

Dear Dfridley, thanks for your reply. MC_FCR register not solve my problem.

How can I protected Flash against reading? I would like to lock my program in flash, that no one could make a copy.

Regards, David

Author:  dfridley [ Mon Apr 12, 2010 1:45 pm ]
Post subject:  Re: AT91SAM7A3 FLASH LOCK

To my knowledge, the AT91SAM devices do not have a way to securely lock them from reading.

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/