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.
|
|