Em 25/3/2011 15:31, Isaac Marino Bavaresco escreveu: > Em 25/3/2011 15:10, Olin Lathrop escreveu: >> Isaac Marino Bavaresco wrote: >>> I use word-writes to register in an array of words what blocks were >>> already received. >> Huh? >> >>> The blocks may be received in any order and there >>> is a mechanism to tell the server what blocks are still needed. >> But that only applies to the order the blocks are temporarily saved in y= our >> buffer space. The bootloader doesn't run until all the blocks are buffe= red, >> so it can write the app image in sequential order. None of this explain= s >> why word write are necessary, as apposed to page writes. > > How can the boot-loader tell if a block full of 0xff was present in the > middle of the application? Oops, hit 'send' too early by accident. If I don't register somewhere each block as it is received, the only way to tell if a block was already received would be to scan it from begin to end to find a value different to 0xff. Besides being too time-consuming, if a block full of 0xff is received it will always be detected as not received. Best regards, Isaac --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .