From: Gregory H. <hei...@es...> - 2003-06-19 11:52:52
|
there's two reasons why I got interested in this: - first: when you program something into flash, and there is a verify error, it's a bit of a pity having to=20 reprogram everything just because a couple of bits were wrong, - second: if you have a large chunk of data you want to keep and just want to alter a few words, then it is inefficient to have to reprogram everything. Maybe it would be more optimal to: - modify the verification code so that instead of returning an error message, it erases the few words that were wrong and reprograms them with the appropriate value, - add an option in the flashmem command in which you can specify which programming method you want to use: * erase whole block and program flash * or, do not erase block, but perform erase cycles instead you could use the former for flashing a big file, or the latter for flashing a small file when there's already another big file in the same block. I can try to implement it, but I'd like to know if it sounds reasonable. Thanks, Greg. ------------------- >=20 > On 2003.06.19 12:16, Gregory Heinrich wrote: > > Hi Marcel, > > thanks for your very well detailed answers. > > My understanding is that I can erase a block (e.g. block 0) then > > program part of this block (0x0 to 0x3ff) then another part of the > > same block (0x400 to 0x7ff) and this will work fine. >=20 > Yes. True. >=20 > >=20 > > However, it won't work if I want to alter > > a given part of this block (e.g. I want to keep what was in 0x0 to >=20 > True. This is not possible with Intel StrataFlash. >=20 > > 0x3ff but I want to alter 0x400 to 0x7ff). The workaround for this > > is to add an erase cycle before every single work I want to write, >=20 > Yes. >=20 > > thus > > making flash programming about twice as slow. So this is not useful >=20 > More than twice. Erasing is very slow. >=20 > > if you have a block composed of two halves, but this starts being > > interesting if you have a large chunk you want to keep and a small > > chunk you want to alter. >=20 > True. >=20 > >=20 > > Is that right? >=20 > Yes. >=20 > --=20 > +-------------------------------------------+ > | Marcel Telka e-mail: ma...@te... | > | homepage: http://telka.sk/ | > | jabber: ma...@ja... | > +-------------------------------------------+ >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by: INetU > Attention Web Developers & Consultants: Become An INetU Hosting Partner. > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php > _______________________________________________ > openwince-list mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/openwince-list >=20 >=20 |