Patent ID: 7219221

Claim:
A system for automatic booting based on a single flash ROM, comprising: a flash ROM for storing a main boot code in a first address section, and storing a backup boot code in a second address section, wherein an address of the first address section and an address of the second address section differ by a bit that is selectable by a binary digit output pin; an address map circuit connecting to a CPU and the flash ROM for enabling the CPU to automatically retrieve the backup boot code for automatic boot by switching between the first address section and the second address section of the flash ROM with the binary digit output pin, the address map circuit comprising: a counter for resetting the CPU and sending a switch signal after the main boot code is detected to be corrupted; and an address decoder for receiving a plurality of address signals from the flash ROM and the switch signal from the counter to enable the CPU to retrieve the backup boot code from the second address section.