The present invention relates to a method and related device for updating firmware code stored in a non-volatile memory.
As consumer electronic products are developed with great diversity of functionality, the architecture shown in
As shown in
Another process of updating the firmware code 112p stored in the memory 112 involves electrically connecting specific equipment 190 to the electronic device 110 to directly control voltage levels of each pin of the memory 112. Please refer to U.S. Pat. No. 6,507,881 for related information. However, according to this related art technique, the electrical connection between the electronic device 110 and the specific equipment 190 should be constantly maintained while updating the firmware code 112p. Furthermore, a large number of pieces of specific equipment are required for updating the firmware code 112p if a large number of electronic devices need to be revised by updating the firmware code 112p. Therefore, this leads to a trade-off between the high cost of the large number of pieces of specific equipment and the efficiency of updating the firmware code 112p of the large number of electronic devices.
The present invention provides a method for updating a firmware code stored in a non-volatile memory. The non-volatile memory is installed in an electronic device. The method includes: within the electronic device, providing an updating control unit having a command set; providing the updating control unit with a trigger signal to enable at least one command of the command set; and utilizing the updating control unit to read/write the non-volatile memory according to the enabled command to update the firmware code. Wherein each command of the command set is a memory read/write command. The method further includes updating at least one command of the command set in real time.
The present invention further provides an electronic device capable of updating a firmware code stored in a non-volatile memory. The firmware code is used for controlling the electronic device. The electronic device includes an updating control unit electrically connected to the non-volatile memory for updating the firmware code. The updating control unit further includes a command set. When triggered by a trigger signal, the updating control unit is capable of reading/writing the non-volatile memory according to the command set to update the firmware code. Wherein the command set includes at least one command, and each command of the command set is a memory read/write command. In addition, each command of the command set is capable of being updated in real time.
It is an advantage of the present invention that during the process of updating the firmware code, it is unnecessary to uninstall or install the non-volatile memory from or to a circuit board of the electronic device. In addition, according to the present invention, it is unnecessary to prepare a ROM writer for updating the firmware code. When triggered by the trigger signal, the electronic device starts to update the firmware code. Therefore, updating the firmware code according to the present invention is more convenient.
It is another advantage of the present invention that each command of the command set of the updating control unit is a memory read/write command that is handy for the electronic device to update the firmware code. Therefore, the efficiency of updating the firmware code of a large number of electronic devices is improved. In addition, as each command of the command set is capable of being updated in real time, the present invention method and device are flexible.
These and other objectives of the present invention will no doubt become obvious to those of ordinary skill in the art after reading the following detailed description of the preferred embodiment that is illustrated in the various figures and drawings.
Please refer to
Step 10: Within the electronic device 210, provide an updating control unit 214 having a command set C-1, C-2, . . . , C-N, wherein each command C-I (I=1, 2, . . . , N) of the command set C-1, C-2, . . . , C-N is a memory read/write command. In the present embodiment, each command of the command set C-1, C-2, . . . , C-N is of a fixed format and installed in the updating control unit 214 using a lookup table 214t.
Step 20: Provide the updating control unit 214 with a trigger signal TRG to enable at least one command C-J (J=1, 2, . . . , or N) of the command set C-1, C-2, . . . , C-N. In the present embodiment, the trigger signal TRG is generated by a specific button 218 of the electronic device 210 and transmitted to the updating control unit 214 to enable the command C-J.
Step 30: Utilize the updating control unit 214 to read/write the memory 112 according to the enabled command C-J to update the firmware code 112p.
Step 40: Read data stored in the computer system 290 through the IDE interface 216 using the updating control unit 214 to update the firmware code 112p.
In the present embodiment, the computer system 290 is considered to be a database. In step 40, the electronic device 210 reads the data stored in the database using the updating control unit 214 to update the firmware code 112p. That is, when updating the firmware code 112p, the master control device is the electronic device 210 rather than the computer system 290.
A second embodiment of the present invention is similar to the first embodiment mentioned above with exceptions described as follows. According to the second embodiment shown in
A third embodiment of the present invention is similar to the first embodiment mentioned above. According to the third embodiment shown in
A fourth embodiment of the present invention is similar to the first embodiment mentioned above with exceptions described as follows. According to the fourth embodiment shown in
Furthermore, the IDE interface 216 is not the only way for the present invention to connect the electronic device 210, 220, 230, or 240 to the computer system 290. According to another embodiment of the present invention, the IDE interface 216 can be replaced with a Universal Serial Bus (USB) interface or a Serial ATA interface.
During the process of updating the firmware code 112p or 113p according to the present invention, it is unnecessary to uninstall/install the non-volatile memory 112 or 113 from/to a circuit board of the electronic device. In addition, according to the present invention, it is unnecessary to prepare a ROM writer 120 for updating the firmware code. When triggered by the trigger signal TRG, the electronic device 210, 220, 230, or 240 starts to update the firmware code. Therefore, updating the firmware code according to the present invention is convenient for the end user.
It is another advantage of the present invention that each command of the command set C-1, C-2, . . . , C-N of the updating control unit 214, 224, 234, or 244 is a memory read/write command C-I (I=1, 2, . . . , N) that is handy for the electronic device 210, 220, 230, or 240, respectively, to update the firmware code. Therefore, the efficiency of updating the firmware code of a large number of electronic devices is improved. In addition, as each command C-K (K=1, 2, . . . , N) of the command set C-1, C-2, . . . , C-N is capable of being updated in real time, the present invention method and device are flexible.
Those skilled in the art will readily observe that numerous modifications and alterations of the device may be made while retaining the teachings of the invention. Accordingly, the above disclosure should be construed as limited only by the metes and bounds of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
93109953 A | Apr 2004 | TW | national |
Number | Name | Date | Kind |
---|---|---|---|
5835936 | Tomioka et al. | Nov 1998 | A |
6009497 | Wells et al. | Dec 1999 | A |
6170043 | Hu | Jan 2001 | B1 |
6507881 | Chen | Jan 2003 | B1 |
6523083 | Lin et al. | Feb 2003 | B1 |
Number | Date | Country | |
---|---|---|---|
20050229172 A1 | Oct 2005 | US |