Patent ID: 9542113
Date: 2017-01-10
CPC Classifications: G06F

Claim:
1. An apparatus for securing program code stored in a non-volatile memory, comprising: a non-volatile memory comprising a first region and a second region; a first NVMMC (non-volatile memory management controller) coupled to the first region; a second NVMMC coupled to the second region; and a programming command-and-address decoder coupled to the first NVMMC and the second NVMMC, instructing the first NVMMC to erase data from the first region when receiving a first command to erase the first region via a programming interface, and instructing the second NVMMC to erase data from the second region when receiving a second command to erase the second region via the programming interface, wherein the first command and the second command have different command names and are designated by different operation codes, wherein the first region stores a customized library and the second region stores a main program, which calls the customized library, when being executed, and wherein the programming command-and-address decoder receives the first command to erase the customized library and the programming command-and-address decoder receives the second command to erase the main program.