Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: AT91SAM7A3 FLASH LOCK
PostPosted: Fri Apr 09, 2010 2:57 pm 
Offline

Joined: Tue Nov 27, 2007 11:05 am
Posts: 10
Dear All,
can anyone help me, how to LOCK FLASH memory of AT91SAM7A3?
Regards,David


Top
 Profile  
 
 Post subject: Re: AT91SAM7A3 FLASH LOCK
PostPosted: Fri Apr 09, 2010 5:11 pm 
Offline

Joined: Thu Feb 25, 2010 5:02 pm
Posts: 88
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.

_________________
Duane P. Fridley, IEEE CSDP
Viable Bytes, Inc.


Top
 Profile  
 
 Post subject: Re: AT91SAM7A3 FLASH LOCK
PostPosted: Mon Apr 12, 2010 7:35 am 
Offline

Joined: Tue Nov 27, 2007 11:05 am
Posts: 10
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


Top
 Profile  
 
 Post subject: Re: AT91SAM7A3 FLASH LOCK
PostPosted: Mon Apr 12, 2010 1:45 pm 
Offline

Joined: Thu Feb 25, 2010 5:02 pm
Posts: 88
To my knowledge, the AT91SAM devices do not have a way to securely lock them from reading.

_________________
Duane P. Fridley, IEEE CSDP
Viable Bytes, Inc.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: chasmopolitan, Google [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: