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  [ 1 post ] 
Author Message
 Post subject: How to enable the security bit on SAM7S64 ?
PostPosted: Fri Oct 16, 2009 11:38 am 
Offline

Joined: Fri Oct 16, 2009 11:14 am
Posts: 1
Hello

I Want to enable the security bit but with no success.

My code :

void AT91F_LowLevelInit( void)
{
...
Security();
...
}

__ramfunc void Security(void)
{
while(!(AT91C_BASE_MC->MC_FSR & 1));
AT91C_BASE_MC->MC_FMR = ((AT91C_MC_FMCN)&(48 <<16)) | AT91C_MC_FWS_1FWS ;

while(!(AT91C_BASE_MC->MC_FSR & 1));
AT91C_BASE_MC->MC_FCR = 0xA500000F;

while(!AT91C_BASE_MC->MC_FSR & 1);
while(!(AT91C_BASE_MC->MC_FSR & AT91C_MC_SECURITY));

while(!AT91C_BASE_MC->MC_FSR & 1);
}


Do you have a suggestion ?


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 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: