2
Migrating Between Boot and Uniform Sectored Flash Devices
Software Changes When Migrating From
Boot To Uniform
Case 1
The system does not require modifications of any of the
boot sectors independent of one another, i.e. all boot
sectors can be erased together.
Solution
A small software change may be required. Instead of
asking the device to erase all of the smaller boot sec-
tors, you can just ask it to erase the single larger 64K
byte block. The command sequence to erase all of the
boot sectors at once for the Am29LV160BB should look
something like this:
If the boot command sequence is used on a uniform
device the net effect will be the same, the first
64 Kbytes of the flash device, which SA0, SA1, SA2, &
SA3 now point to, will be erased once. The uniform
flash device will ignore the additional sector erase com-
mands since the commands essentially tell the flash
device to erase the first uniform sector four times. No
code change is necessary, however the code will not
be as clean as if the code had specifically been written
for a uniform sectored device. In order to clean up the
code, just remove the last three sector erase pulses.
The modified sector erase command should look like
the following sequence:
where SA0 is now any address within the first 64 Kbyte
uniform sector.
31
64 Kbyte
Sectors
63
64 Kbyte
Sectors
127
64 KByte
Sectors
16 Kbyte Sector
8 Kbyte Sector
8 Kbyte Sector
32 Kbyte Sector
64 Kbyte Sector
64 Kbyte Sector
8 Kbyte Sector
8 Kbyte Sector
8 Kbyte Sector
8 Kbyte Sector
8 Kbyte Sector
8 Kbyte Sector
8 Kbyte Sector
8 Kbyte Sector
64 Kbyte Sector
64 Kbyte Sector
64 Kbyte Sector
64 Kbyte Sector
64 Kbyte Sector
Am29LV160B
Am29LV320B
Am29LV640U
Address 555 2AA 555 555 2AA SA0 SA1 SA2 SA3
Data
AA
55
80
AA
55
30
30
30
30
Address
555
2AA
555
555
2AA
SA0
Data
AA
55
80
AA
55
30
16 Kbyte Sector
64 Kbyte Sector
32 Kbyte Sector
8 Kbyte Sector
8 Kbyte Sector
64 Kbyte Sector
64 Kbyte Sector
SA0
SA0
SA1
SA2
SA3
Old Boot Sectored
New Uniform Sectored