|
Has anybody else come across a problem of addressing the correct lock bit using the PAGEN field of the MC_FCR?
Using the SAM-BA command line interface (the W and w commands) to set and clear the lock bits I have found that the lock bit address needs to be shifted 5 bits left in the PAGEN field in order to work correctly.
The attached file shows the output of a script sending commands to a SAM7S64 to set and clear lock bits. As can be seen the lowest 5 bits of the PAGEN field have no effect on the lock bit being addressed and similarly the top bit has no effect either. The address of the required lock bit must be placed in bits 5,6,7 & 8 of the PAGEN field (bits 13,14,15,16 of the MC_FCR).
I have not been able to upload the file (I keep getting extension not allowed errors, whatever extension I put on the file, which is plain text).
_________________ Tony Smith
|