At 11:49 PM 1/28/06 +0800, Jayasooriah wrote: >N1: In the ECC section of the user manual, it is stated that flash can be >written to in units of 16-bytes, aligned on any 16-byte boundary. > >N2: In the ISP/IAP COPY commands documentation, it is stated that byte >count must be one of 256, 512, 1024 or 4096. > >Q1: N1+N2 implies that to update 16 bytes (on 16-byte boundary), one must >read 256 bytes, modify 16 bytes at the appropriate offset, and then write >256 bytes. Is this correct? Correct. >Q2: What is the rational for what appears to be arbitrary limits on the >values for byte counts in N2. No idea, could be that it matches some internal structure of the flash, the fact that the write must occur on a 512 byte boundary (LPC2106) implies that's the case. Maybe that's the smallest block they can address when flashing? BTW the size of the block and the multiples that can be written varies from device to device. Robert " 'Freedom' has no meaning of itself. There are always restrictions, be they legal, genetic, or physical. If you don't believe me, try to chew a radio signal. " -- Kelvin Throop, III http://www.aeolusdevelopment.com/
Message
Re: [lpc2000] two questions on Byte Count for LPC Flash Writes
2006-01-28 by Robert Adsett
Attachments
- No local attachments were found for this message.