Patent ID: 7810088

Claim:
A wireless communication device capable of downloading a software update file from a wireless network, said wireless communication device comprising: a non-volatile memory capable of being re-programmed by sectors, wherein said non-volatile memory stores: 1) a target file to be updated, 2) said downloaded software update file, and 3) a journal comprising a plurality of entries, each of said plurality of entries created upon a successful completion of each operation that updates a status information associated with a re-programmed sector of said non-volatile memory, wherein the status information comprises a first parameter configured to indicate a start of re-programming the re-programmed sector, second parameter configured to indicate that previous contents of the re-programmed sector were correctly stored in a save area, and a third parameter configured to indicate successful re-programming of the re-programmed sector; a random access memory; and a main processor capable of replacing target code in said target file with replacement code from said downloaded software update file, wherein said main processor creates a first block of replacement code in said random access memory and re-programs a first target sector of said non-volatile memory by storing said first block of replacement code into said first target sector, and wherein said main processor updates a first status information in a first entry in said journal associated with said first target sector, and wherein said main processor is further capable of storing first target code from said first target sector in the save-area of said non-volatile memory prior to storing said first block of replacement code into said first target sector, wherein the journal further comprises information sufficient for a recovery of an error during the replacing of the target code with replacement code through two independently erasable sectors and the save-area sector of non-volatile memory, wherein the journal is configured to be used also in a recovery of an error during the download of the software update file from the wireless network, and wherein upon the error occurring during the download of the software update file, the journal is used to resume the operation of the download of the software update file from the wireless network at the next sequential sector following the last successfully downloaded and saved sector.