Re: Flashing nk.bin for SW Update

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Well i have a different opinion here. if this is NOR Flash then only this is
true that you can convert 1's into 0's not 0's to 1's while writing. to
convert 0s to one you'll have to erase a block.

In case of NAND Flash you can write one sector once. to change the data of
that sector you'll have to erase the complete block. even if you forcefully
try to update the data (writing a sector without erasing the block) of a
sector without erasing the block data may be updated but ecc will create
problem you wont be able to get the correct data.

as far as .bin and .nb0 are concerned. for .bin you have to parse it first. .
bin is a record based file format. apart from the image header there are also
record header which you'll have to strip off. source code you may find in the
blcommon.cpp.

image length you can get from the image header or if you are downloading
record by record.
last record of .bin file uses sentinel values for address and checksum. so
you can find out when your image is complete. launch address is information
you need to find out care fully.

--
SenIndia
Embedded & Multimedia Plateform Devision
NECHCLST
India

Message posted via PocketPCJunkies.com
http://www.pocketpcjunkies.com/Uwe/Forums.aspx/wince-programming/200902/1

.



Relevant Pages

  • Re: Filesystem for block devices using flash storage?
    ... Writes to magnetic disks are functionally atomic at the sector level. ... entire erase block, which could be up to 256k on some MLC flash. ... I can see a trend towards bigger erase blocks. ...
    (Linux-Kernel)
  • Re: Nor flash menroy
    ... You can erase a complete sector only. ... The chip is devided in 16 Banks, Bank 15 has a diffrent layout than the ... when writing a driver for that flash. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Non-volatile counter implementation
    ... Assume an (flash) array of 128 elements, all initialized to 0xff, ... erase all and start with first. ... I would flip a bit every 10 cycles. ... but then I might have to worry about having to erase the sector while I'm ...
    (comp.arch.embedded)
  • Re: General flash memory question
    ... >>I'm familiar with Atmel flash, and it doesn't all work this way. ... >>write a single byte with 'large sector' flash. ... > just keep writing until it's full, then download it all and erase the ... I've used flash for log files before. ...
    (sci.electronics.design)
  • Re: General flash memory question
    ... >>I'm familiar with Atmel flash, and it doesn't all work this way. ... >>write a single byte with 'large sector' flash. ... > just keep writing until it's full, then download it all and erase the ... I've used flash for log files before. ...
    (sci.electronics.basics)