FIRMWARE UPDATING METHOD AND RELATED APPARATUS FOR CHECKING CONTENT OF REPLACING FIRMWARE BEFORE FIRMWARE UPDATING
First Claim
1. A method for refreshing at least a program code in an electronic system, the electronic system comprising a host device and a peripheral device, the peripheral device comprising:
- a control circuit for executing a first program code to control operations of the peripheral device according to an instruction from the host device;
the method comprising;
accessing a second program code; and
executing an inspection step in the host device before the second program code replaces the first program code of the peripheral device to utilize the host device to check whether partial content of the second program code conforms to a predetermined content.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and related apparatus used for updating the firmware of an electronic system. The electronic system includes a host device and a peripheral device. The device has a control circuit and a flash memory for storing a first firmware code. The control circuit executes the first firmware code to control the device according to the control commands from the host. The method includes a checking step to check if the content of the second firmware code matches a predetermined content to ensure compatibility of the second firmware code before replacing/updating the first firmware code with a second firmware code. The checking step could be performed by the host and/or by the control circuit. The checking step is performed to check if values/strings of constants defined in the second firmware code match predetermined values/strings, and/or to check whether commands/information in predetermined addresses of the second firmware code match predetermined commands/information.
-
Citations
34 Claims
-
1. A method for refreshing at least a program code in an electronic system, the electronic system comprising a host device and a peripheral device, the peripheral device comprising:
-
a control circuit for executing a first program code to control operations of the peripheral device according to an instruction from the host device;
the method comprising;
accessing a second program code; and
executing an inspection step in the host device before the second program code replaces the first program code of the peripheral device to utilize the host device to check whether partial content of the second program code conforms to a predetermined content. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A method for refreshing at least a program code in an electronic system, the electronic system comprising a host device and a peripheral device, the peripheral device comprising:
-
a control circuit for executing a first program code to control operations of the peripheral device;
the method comprising;
transmitting a second program code from the host device to the peripheral device; and
executing a device inspection step, before the second program code replaces the first program code of the peripheral device, to utilize the control circuit to check whether partial content of the second program code conforms to a predetermined content. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16, 17, 18, 19)
-
-
20. A peripheral device comprising:
a control circuit for executing a first program code to control operations of the peripheral device;
the control circuit comprising a checking module, the checking module being used to check whether partial content of the second program code conforms to a predetermined content before the control circuit replaces the first program code with a second program code.- View Dependent Claims (21, 22, 23, 24, 25, 26, 27, 28, 29, 30)
-
31. A method for refreshing at least a program code in an electronic system, the electronic system comprising a host device and a peripheral device, the peripheral device comprising:
-
a control circuit for executing a first program code to control operations of the peripheral device according to an instruction from the host device;
the method comprising;
accessing a second program code; and
executing an inspection step before the second program code replaces the first program code of the peripheral device to generate a corresponding content characteristic according to the second program code and to check whether the corresponding content characteristic conforms to a predetermined characteristic, the predetermined characteristic being not changed when the first program code is replaced by the second program code. - View Dependent Claims (32, 33, 34)
-
Specification