C8051F300/1/2/3/4/5
Rev. 2.9
91
The lock bits can always be read and cleared to logic 0 regardless of the security settings.
Important note: The only means of removing a lock (write or read/write) once set is to erase the
entire program memory space via a C2 Device Erase command.
Figure 10.1. Flash Program Memory Map
The level of Flash security depends on the Flash access method. The three Flash access methods that
can be restricted are reads, writes, and erases from the C2 debug interface, user firmware executing on
unlocked pages, and user firmware executing on locked pages.
Accessing Flash
from the C2 debug interface
:
1.
Any unlocked page may be read, written, or erased.
2.
Locked pages cannot be read, written, or erased.
3.
The page containing the Lock Byte may be read, written, or erased if it is unlocked.
4.
Reading the contents of the Lock Byte is always permitted only if no pages are locked.
5.
Locking additional pages (changing ‘1’s to ‘0’s in the Lock Byte) is not permitted.
6.
Unlocking Flash pages (changing ‘0’s to ‘1’s in the Lock Byte) requires the C2 Device Erase com-
mand, which erases all Flash pages including the page containing the Lock Byte and the Lock
Byte itself.
7.
The Reserved Area cannot be read, written, or erased.
Table 10.2. Security Byte Decoding
Bits
Description
7–4
Write Lock:
Clearing any of these bits to logic 0 prevents all Flash
memory from being written or page-erased
across the C2 interface
3–0
Read/Write Lock:
Clearing any of these bits to logic 0 prevents all
Flash memory from being
read, written, or page-erased across the
C2 interface.
C8051F300/1/2/3
0x0000
0x1DFF
Lock Byte
Reserved
0x1DFE
FLASH memory
organized in 512-byte
pages
0x1E00
0x0000
0x0FFF
Reserved
0x0FFE
FLASH memory
organized in 512-byte
pages
0x1000
0x0000
0x07FF
Lock Byte
Reserved
0x07FE
FLASH memory
organized in 512-byte
pages
0x0800
Lock Byte
C8051F304
C8051F305
Summary of Contents for C8051F300
Page 2: ...C8051F300 1 2 3 4 5 2 Rev 2 9 NOTES ...
Page 6: ...C8051F300 1 2 3 4 5 6 Rev 2 9 NOTES ...
Page 48: ...C8051F300 1 2 3 4 5 48 Rev 2 9 NOTES ...
Page 56: ...C8051F300 1 2 3 4 5 56 Rev 2 9 NOTES ...
Page 82: ...C8051F300 1 2 3 4 5 82 Rev 2 9 NOTES ...
Page 88: ...C8051F300 1 2 3 4 5 88 Rev 2 9 NOTES ...
Page 96: ...C8051F300 1 2 3 4 5 96 Rev 2 9 NOTES ...
Page 130: ...C8051F300 1 2 3 4 5 130 Rev 2 9 NOTES ...
Page 172: ...C8051F300 1 2 3 4 5 172 Rev 2 9 NOTES ...