....and one more question after further study....
5/ I notice you copy from the flash into the temporary buffer if we're
not 512byte aligned, or for the final fragment of size < 512.
You also say:
* NOTE: When programming data into a sector that is already partially
* programmed, all new data MUST be programmed into previously
* unprogrammed 16-byte (128-bit) [Ed: Assume 512-byte now] blocks.
The statement implies you cannot write a block unless the flash has been
previously erased => all 0's or FF's. So why bother copying these (dst)
back into the temporary buffer prior to copying the partial (src) over
the top ?
May as well dispense with the temporary buffer and just back the (src)
pointer back into whatever crap is in RAM there and write that into the
512-aligned-dst (similar with the far end).
Seems to me the only way to achieve what I think you're trying to do is
to make a whole segment copy prior to erase, and then write overwrite
that huge (8k or more) buffer with (src), then program that. Have I got
misunderstood something here ?
--
Cheers,
Bruce
-------------------------------------------------------------------
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed. If you have received this email in error please
notify the system manager.
/\\\/\\\/\\\ / / Bruce Paterson
/ \\\ \\\ \\\ / / Senior Design Engineer
/ /\\\/\\\/\\\/ / 8 Anzed Court, Mulgrave, Vic, 3170
/ / \\\ \\\ \\\ / PO Box 4112, Mulgrave, Vic, 3170, Australia
/ / \\\/\\\ \\\/ Ph: +61 3 8561 4232 Fax: +61 3 9560 9055
Tele-IP Ltd. Email: bruce@... Icq: #32015991
WWW: http://www.tele-ip.com VK3TJN
-------------------------------------------------------------------Message
Re: [lpc2000] Questions on LPC Flash Programming Routines
2005-04-08 by Bruce Paterson
Attachments
- No local attachments were found for this message.