摘要 |
A software code anti-theft method of an embedded system, comprising: electrically initializing the embedded system, and reading an underlying driver code from a flash memory (S101); externally providing a peripheral memory in the embedded system (S102); electrotransplanting a predetermined segment of the underlying driver code to the peripheral memory, and deleting the code corresponding to the predetermined segment from the flash memory; electrotransplanting the predetermined segment to the peripheral memory, such that the predetermined segment will not be stolen when the underlying driver code is stolen (S103); and restarting the embedded system (S104). The anti-theft method employs an ingenious combination of software and hardware to divide the underlying driver code into two parts for storage, which departs radically from the traditional design of an embedded system having only one external FLASH. The present method occupies a small area on the PCB, consumes less power, uses a single power source for power supply and is thus free of power-up sequencing requirements, while at the same time ensuring that two embedded products with the same data link layer address cannot establish communicate with each other, thus further enhancing the anti-theft function. |