Encryption method of LPC2100 series ARM7 microcontroller 1. Encryption principle description LPC2100 series ARM7 microcontroller is the world\'s first ARM chip that can be encrypted. The method of encrypting it is to set the specified data at the specified address through the user program. PHILIPS stipulates that for LPC2100 chips (except LPC2106/2105/2104), when the data at the FLASH address 0x000001FC in the chip is 0x87654321, the chip is encrypted. After the encryption is set, the JTAG debugging interface is invalid, and the ISP function only provides the functions of reading ID and full chip erasing. Note: Download the program with encryption settings to the internal FLASH of the chip, and the encryption will take effect after the next system reset. 2. Encryption program implementation In order to implement the encryption setting, the user must ensure that the data 0x87654321 is defined at 0x000001FC. Let\'s first analyze the program structure with encryption settings. As shown in Figure 1, the address 0x000000~0x00000020 is the exception vector table. If the LDR instruction jump is used in the vector table, each exception service entry address can be defined between 0x00000020~0x00000040; after the exception vector table and before the address 0x000001FC, this small space can be used to write some initialization code or FIQ interrupt handler; then use NOP instructions to fill it until the address 0x000001FC, and define the data 0x87654321 at this address, and the user\'s other program code follows. 0x00000000Exception vector table0x00000020Partial initialization code or FIQ interrupt handlerNOP NOP ...0x000001FCDCD0x87654321User codeFigure 1 Program structure with encryption settingsImplementation of the encryption program...
You Might Like
Recommended ContentMore
Open source project More
Popular Components
Searched by Users
Just Take a LookMore
Trending Downloads
Trending ArticlesMore