摘要 |
A method of and an apparatus for providing a logical view of data stored in a non-volatile memory, to an external reading and writing process, the non-volatile memory being partitioned into one or more non-volatile memory blocks of equal size, the method comprising: identifying a data partition of the non-volatile memory, the data partition including a plurality of compressed data blocks; 1 ) reading and decompressing a compressed data block of the data partition from the non volatile memory to a temporary memory accessible to the external process; 2) reading from the temporary memory and compressing a corresponding updated decompressed data block, into an updated compressed data block; and 3) writing the updated data block to the non volatile memory, the steps 1 ), 2) and 3) being repeated for each compressed data block to be updated; wherein, at at least one point during steps 2) and 3), the data partition further includes recovery information indicative of the status of at least one data block; and wherein the size of each decompressed data block, up until and not necessarily including the last decompressed data block, before and after the updating step, is a multiple of the size of a non-volatile memory block. A method and an apparatus for updating software code stored in a non-volatile memory is also described. |