Updating mstar

An embodiment of the invention provides an apparatus for firmware update for use in an electronic device.The apparatus comprises: a first storage unit for storing a first firmware code of the electronic device; a second storage unit for storing a second firmware code of the electronic device; a checking unit, coupled to the second storage unit, for checking whether the second firmware code is valid; and a controller, for initiating the checking unit and determining whether to execute the second firmware code upon validity of the second firmware code.The checking unit 13 then checks and responds to the controller 14 with an outcome of the checking.When the outcome indicates that the second storage unit 12 is not loaded with a valid updated firmware code, the controller 14 continues to execute the existing firmware code and ignores the second storage unit 12.When the second storage unit 12 is loaded with a valid updated firmware code, the controller 14 starts to execute the updated firmware code instead of the existing firmware code.When the second storage unit 12 is not loaded with a valid updated firmware code, the controller 14 continues to execute the existing firmware code.

updating mstar-22updating mstar-3updating mstar-84updating mstar-39

The second storage unit 12 is loaded with an updated firmware code of the electronic device 1.The present invention will become more readily apparent to those ordinarily skilled in the art after reviewing the following detailed description and accompanying drawings, in which: FIG.1 is a block diagram of an apparatus for firmware update according to a preferred embodiment of the invention. 2 is a flowchart of a method for firmware update according to a preferred embodiment of the invention. 1 shows a block diagram of an apparatus for firmware update according to a preferred embodiment of the invention.The microcontroller initiates the checking unit upon start of the electronic device, and determines whether to execute the second firmware code upon determining the validity of the second firmware code. An apparatus for firmware update, for use in an electronic device, comprising: a first storage unit, for storing a first firmware code of the electronic device; a second storage unit, for storing a second firmware code of the electronic device; a checking unit, coupled to the second storage unit, for checking whether the second firmware code is valid; and a controller, for initiating the checking unit, and determining whether to execute the second firmware code based on validity of the second firmware code. The apparatus for firmware update as claimed in claim 1, wherein the first firmware code is an existing code, and the second firmware code is an updated code. The apparatus for firmware update as claimed in claim 1, wherein the controller executes the first firmware code to initiate the checking unit. The apparatus for firmware update as claimed in claim 3, wherein the controller continues in executing the first firmware code instead of starting to execute the second firmware code when the second firmware code is invalid. The apparatus for firmware update as claimed in claim 3, wherein the controller stops executing the first firmware code and starts to execute the second firmware code when the second firmware code is valid. The apparatus for firmware update as claimed in claim 1, wherein the first storage unit is a flash memory or an electrically erasable programmable read-only memory (EEPROM). The apparatus for firmware update as claimed in claim 1, wherein the second storage unit is a flash memory or an EEPROM. The apparatus for firmware update as claimed in claim 1, wherein the checking unit performs a cyclic redundancy check (CRC) to determine the validity of the second firmware code. The apparatus for firmware update as claimed in claim 1, wherein the checking unit performs a checksum calculation to determine the validity of the second firmware code. The apparatus for firmware update as claimed in claim 1, wherein the electronic device is a display device. The apparatus for firmware update as claimed in claim 10, wherein the display device is a monitor, a television or a digital photo frame. A method for firmware update, for use in an electronic device, a first firmware code of the electronic device being stored in a first storage unit and a second firmware code of the electronic device being stored in a second storage unit, the method comprising steps of: executing the first firmware code, upon start of the electronic device, to initiate a validity check on the second firmware code; executing the validity check to determine whether the second firmware code is valid; and determining whether to execute the second firmware code according to an outcome of the validity check. The method for firmware update as claimed in claim 12, wherein execution of the first firmware code is continued instead of executing the second firmware code when the second firmware code is invalid. The method for firmware update as claimed in claim 12, wherein execution of the first firmware code is stopped to start execution of the second firmware code when the second firmware code is valid. The method for firmware update as claimed in claim 12, wherein the validity check is implemented using a cyclic redundancy check (CRC) to determine the validity of the second firmware code. The method for firmware update as claimed in claim 12, wherein the validity check is implemented using a checksum calculation to determine the validity of the second firmware code. The method for firmware update as claimed in claim 12, wherein the electronic device is a display device. The method for firmware update as claimed in claim 17, wherein the display device is a monitor, a television, or a digital photo frame. Therefore, an objective of the present invention is to provide an apparatus and a method for firmware update offering reliable firmware update for electronic devices, thereby improving user convenience. The present invention relates to firmware of an electronic device, and more particularly, to an apparatus and a method for firmware update in an electronic device.

Leave a Reply