JP2004078483A - Method of changing firmware program - Google Patents

Method of changing firmware program Download PDF

Info

Publication number
JP2004078483A
JP2004078483A JP2002236767A JP2002236767A JP2004078483A JP 2004078483 A JP2004078483 A JP 2004078483A JP 2002236767 A JP2002236767 A JP 2002236767A JP 2002236767 A JP2002236767 A JP 2002236767A JP 2004078483 A JP2004078483 A JP 2004078483A
Authority
JP
Japan
Prior art keywords
program
flash memory
boot program
ram
firmware
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2002236767A
Other languages
Japanese (ja)
Inventor
Masato Fujii
藤井 正人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Original Assignee
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Meidensha Corp, Meidensha Electric Manufacturing Co Ltd filed Critical Meidensha Corp
Priority to JP2002236767A priority Critical patent/JP2004078483A/en
Publication of JP2004078483A publication Critical patent/JP2004078483A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To make a boot program changeable even after storing a flash memory to a printed circuit board. <P>SOLUTION: In a system provided with an external flash memory 2 and an RAM 3 at a microcomputer 1, a secondary boot program for changing the boot program is prepared in a firmware program of the flash memory, and the secondary boot program is operated by setting at the reset of the system. The boot program is transferred to the RAM through an external storage device 4 or a transmission interface 5, and after erasing the boot program of the flash memory, the boot program on the RAM is written in the flash memory. In the case a joint test action group (JTAG) is used, a change is made by transferring the boot program and the firmware program from an incircuit emulator to the RAM. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は、フラッシュメモリを使用したマイクロコンピュータシステムにおけるファームウェアプログラムの変更方法に関する。
【0002】
【従来の技術】
現在、マイクロコンピュータシステムでのファームウェア(以下、F/Wと記述)プログラムの格納方法としては以下のものがある。
【0003】
(1)EPROMを使用する方法
F/Wプログラムを紫外線で消去可能なEPROMに書き込んでおいて、マイクロコンピュータシステムのプリント板にあるROMソケットにEPROMを実装して、F/WプログラムをEPROM上で動作させる。
【0004】
この方法でF/Wプログラムを変更するためには、プリント板上のEPROMを取り外して、EPROMの内容をROMライタを使って書き換え、そのEPROMをプリント板に実装する。この方法はこれまで最も良く使われてきた。
【0005】
(2)フラッシュメモリを使用する方法(その1)
EPROMに替わって、最近はフラッシュメモリが使われている。このフラッシュメモリは表面実装部品となっているものが多く、EPROMと同様に、プリント板に実装したり取り外したりを繰り返すようなことはできない。通常はフラッシュメモリ製造時に予め決まったF/Wプログラムを書き込んでしまい、それをプリント板に実装したままにする。従って、一度、書き込んだF/Wプログラムを変更する場合は特殊な操作を必要とする。
【0006】
(3)RAMを使用する方法
EPROMまたはフラッシュメモリにブートプログラム(起動プログラム)を予め書き込んでおく。EPROMまたはフラッシュメモリは通常、プリント板に実装したままにする。このブートプログラムは、F/Wプログラムを外部記録装置から伝送路を介してRAMに転送する機能を持っている。電源投入時、ブートプログラムが動作して、外部記憶装置から伝送インタフェース(シリアル伝送、LAN伝送)を通してF/Wプログラムを受け取り、それをRAM上に転送し、転送が正常に終了した時点でRAM上のF/Wプログラムを起動する。
【0007】
この方法はブートプログラムのみをEPROMやフラッシュメモリに予め格納していれば、F/Wプログラムの変更はいたって自由に行える。
【0008】
(4)フラッシュメモリを使用する方法(その2)
フラッシュメモリ内蔵のワンチップマイクロコンピュータで採用されている方法である。ワンチップマイクロコンピュータの内部にはフラッシュメモリとRAMとシリアル伝送インタフェースが内蔵されている。また、ブートプログラムもROMとして内蔵されている。ワンチップマイクロコンピュータのリセット時に、フラッシュメモリ書き込みモード設定を行うと、ブートプログラムが動作して、ワンチップマイクロコンピュータに内蔵されているシリアルインタフェースを介してF/Wプログラムを受信し、内蔵しているRAMに書き込む。一定量のF/Wプログラムを受信した時点で内蔵フラッシュメモリをブロック消去して、RAMに受信したF/Wプログラムをフラッシュメモリに書き込む。これをF/Wプログラムの全サイズについて、順次フラッシュメモリのブロック数分実行してF/Wプログラムをフラッシュメモリに書き込む。ワンチップマイクロコンピュータのフラッシュメモリ書き込みモード設定を解除してリセットをかけると、内蔵したフラッシュメモリのF/Wプログラムが動作する。
【0009】
【発明が解決しようとする課題】
(1)EPROMを使用する方法
現在でも、この方法は広く使われている。しかし、プリント板の実装密度が向上していて、部品面積の大きいEPROMの使用が困難になってきている。
【0010】
(2)フラッシュメモリを使用する方法(その1)
フラッシュメモリがプリント板に実装したままになっているため、一度、書き込んだF/Wプログラムを変更する場合は特殊な操作を必要とする。フラッシュメモリを変更するためのブートプログラムをフラッシュメモリの一部に書き込んでおいて、そのブートプログラムを使って、フラッシュメモリのその他の部分を書き換えるような方法がある。しかし、ブートプログラム自体を変更することはできない。
【0011】
(3)RAMを使用する方法
この方法でも、プリント板に実装したままのEPROMやフラッシュメモリにあるブートプログラムを変更することはできない。
【0012】
(4)フラッシュメモリを使用する方法(その2)
フラッシュメモリ内蔵のワンチップマイクロコンピュータでは内蔵しているフラッシュメモリの容量に制限がある。その制限を越えたF/Wプログラムを使いたい場合はワンチップマイクロコンピュータの外部にフラッシュメモリを別途用意する必要がある。この場合は内蔵フラシュメモリ内に、外部フラッシュメモリ書き換えプログラムを用意しておけば良いことになる。但し、ワンチップマイクロコンピュータ以外のマイクロコンピュータではこのようなことはできない。
【0013】
本発明の目的は、上記の課題を解決したファームウェアプログラムの変更方法を提供することにある。
【0014】
【課題を解決するための手段】
本発明は、前記の課題を解決するため、フラッシュメモリのファームウェアプログラム内にブートプログラムを変更するための二次ブートプログラムを作成しておき、これをシステムのリセット時に動作させ、ブートプログラムをRAMに転送し、フラッシュメモリのブートプログラムを消去した後で、RAM上のブートプログラムをフラッシュメモリに書き込む方法、または、JTAGによりインサーキットエミュレータをマイクロコンピュータに接続し、インサーキットエミュレータからRAMにブートプログラム及びファームウェアプログラムを転送し、ファームウェアプログラムの中に、フラッシュメモリコピープログラムを用意しておき、インサーキットエミュレータからRAM上のファームウェアプログラム中のフラッシュメモリコピープログラムを起動し、フラッシュメモリコピープログラムは、フラッシュメモリ全体を消去し、RAM上のブートプログラム及びファームウェアプログラムをフラッシュメモリにコピーする方法とするもので、以下の方法を特徴とする。
【0015】
(1)マイクロコンピュータに、外部フラッシュメモリとRAMを設けたマイクロコンピュータシステムにおけるファームウェアプログラムの変更方法であって、
前記フラッシュメモリのファームウェアプログラム内にブートプログラムを変更するための二次ブートプログラムを作成しておく手段と、
システムのリセット時の設定で前記二次ブートプログラムが動作するようにしておく手段と、
前記二次ブートプログラムは、外部記憶装置または伝送インタフェースを介して前記ブートプログラムを前記RAMに転送し、前記フラッシュメモリのブートプログラムを消去した後で、前記RAM上のブートプログラムを前記フラッシュメモリに書き込む手段と、
を有することを特徴とする。
【0016】
(2)JTAGが使用できるマイクロコンピュータに、外部フラッシュメモリとRAMを有するマイクロコンピュータシステムにおけるファームウェアプログラムの変更方法であって、
前記JTAGによりインサーキットエミュレータをマイクロコンピュータに接続する手段と、
前記インサーキットエミュレータから前記RAMにブートプログラム及びファームウェアプログラムを転送する手段と、
前記ファームウェアプログラムの中に、フラッシュメモリコピープログラムを用意しておく手段と、
前記インサーキットエミュレータから前記RAM上のファームウェアプログラム中のフラッシュメモリコピープログラムを起動する手段と、
前記フラッシュメモリコピープログラムは、前記フラッシュメモリ全体を消去し、前記RAM上のブートプログラム及びファームウェアプログラムを前記フラッシュメモリにコピーする手段と、
を有することを特徴とする。
【0017】
【発明の実施の形態】
(実施形態1)
図1は、本発明の実施形態を示すマイクロコンピュータシステムの構成図であり、マイクロコンピュータ1の外部にフラッシュメモリ2とRAM3が実装されるシステムの場合である。
【0018】
この構成において、リセット時にフラッシュメモリ2にあるブートプログラムで、プリント板に実装される外部記憶装置4または伝送インタフェース5を介した外部記憶装置6からF/WプログラムをRAM3に書き込んでF/Wプログラムを実行させる。なお、外部記憶装置としては、フラッシュメモリ2のブートプログラム以外の領域にF/Wプログラムを書き込んでおくことができる。
【0019】
上記のF/Wプログラムの取り込みには、フラッシュメモリ2の製造時、ブートプログラムを予め書き込んでおいて、それをプリント板に実装する。その後、マイクロコンピュータシステムにある外部記憶装置4または伝送インタフェース5を介してF/WプログラムをRAM3に転送し、RAM3上のF/Wプログラムをフラッシュメモリ2のF/Wプログラム領域に転送する。これで、フラッシュメモリ2にはF/Wプログラムが転送できる。
【0020】
問題はブートプログラムを変更する場合である。ブートプログラムを変更する場合は以下の手順で実現される。
【0021】
(1)フラッシュメモリ2のF/Wプログラム内にブートプログラムを変更するための二次ブートプログラムを作成しておく。
【0022】
(2)マイクロコンピュータシステムのリセット時の設定で二次ブートプログラムが動作するようにしておく。
【0023】
(3)二次ブートプログラムは、外部記憶装置4または伝送インタフェースを介してブートプログラムをRAM3に転送する。
【0024】
(4)二次ブートプログラムは、フラッシュメモリ2のブートプログラムを消去した後で、RAM3上のブートプログラムをフラッシュメモリ2に書き込む。
【0025】
したがって、本実施形態では、通常では不可能なフラッシュメモリをプリント板に実装後にもブートプログラムの変更が可能になる。また、特殊な装置が不要である。また、JTAGがないマイクロコンピュータシステムでも適用が可能である。
【0026】
(実施形態2)
図2は、本発明の実施形態を示すマイクロコンピュータシステムの構成図であり、JTAGが使用できるマイクロコンピュータで、外部フラッシュメモリ2とRAM3があるシステムで、リセット時にICE(インサーキットエミュレータ)7からブートプログラムとF/WプログラムをRAM3に書き込んでブートプログラムとF/Wプログラムをフラッシュメモリ2に書き込む。
【0027】
この方法は以下の手順で実現される。
【0028】
(1)ICE7をJTAG8により、マイクロコンピュータシステムに接続する。
【0029】
(2)ICE7からマイクロコンピュータシステムのRAM3にブートプログラム及びF/Wプログラムを転送する。
【0030】
(3)F/Wプログラムの中に、フラッシュメモリコピープログラムを用意しておく。
【0031】
(4)ICE7からRAM3上のF/Wプログラム中のフラッシュメモリコピープログラムを起動する。
【0032】
(5)フラッシュメモリコピープログラムはフラッシュメモリ2の全体を消去する。
【0033】
(6)フラッシュメモリコピープログラムはRAM3上のブートプログラム及びF/Wプログラムをフラッシュメモリ2にコピーする。
【0034】
したがって、本実施形態では、伝送インタフェースでF/Wプログラムを転送する実施形態1に比べて、フラッシュメモリの書き換えが高速に実施できる。特に、ブートプログラムを用意しなくても良い。
【0035】
【発明の効果】
以上のとおり、本発明によれば、フラッシュメモリのファームウェアプログラム内にブートプログラムを変更するための二次ブートプログラムを作成しておき、これをシステムのリセット時に動作させ、ブートプログラムをRAMに転送し、フラッシュメモリのブートプログラムを消去した後で、RAM上のブートプログラムをフラッシュメモリに書き込むようにしたため、通常では不可能なフラッシュメモリをプリント板に実装後にもブートプログラムの変更が可能になる。また、特殊な装置が不要である。また、JTAGがないマイクロコンピュータシステムでも適用が可能である。
【0036】
また、JTAGによりインサーキットエミュレータをマイクロコンピュータに接続し、インサーキットエミュレータからRAMにブートプログラム及びファームウェアプログラムを転送し、ファームウェアプログラムの中に、フラッシュメモリコピープログラムを用意しておき、インサーキットエミュレータからRAM上のファームウェアプログラム中のフラッシュメモリコピープログラムを起動し、フラッシュメモリコピープログラムは、フラッシュメモリ全体を消去し、RAM上のブートプログラム及びファームウェアプログラムをフラッシュメモリにコピーするようにしたため、フラッシュメモリの書き換えが高速に実施でき、しかもブートプログラムを用意しなくても良い。
【図面の簡単な説明】
【図1】本発明の実施形態1を示すシステム構成図。
【図2】本発明の実施形態2を示すシステム構成図。
【符号の説明】
1…マイクロコンピュータ
2…フラッシュメモリ
3…RAM
4、6…外部記憶装置
5…伝送インタフェース
7…インサーキットエミュレータ
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a method for changing a firmware program in a microcomputer system using a flash memory.
[0002]
[Prior art]
At present, there are the following methods for storing a firmware (hereinafter referred to as F / W) program in a microcomputer system.
[0003]
(1) Method of Using EPROM An F / W program is written in an EPROM which can be erased by ultraviolet rays, the EPROM is mounted on a ROM socket on a printed board of a microcomputer system, and the F / W program is written on the EPROM. Let it work.
[0004]
In order to change the F / W program by this method, the EPROM on the printed board is removed, the contents of the EPROM are rewritten using a ROM writer, and the EPROM is mounted on the printed board. This method has been most commonly used.
[0005]
(2) Method using flash memory (1)
A flash memory has recently been used in place of the EPROM. Many of these flash memories are surface-mounted components, and cannot be repeatedly mounted on and removed from a printed circuit board as in EPROM. Usually, a predetermined F / W program is written at the time of manufacturing a flash memory, and the F / W program is left mounted on a printed board. Therefore, when the written F / W program is changed once, a special operation is required.
[0006]
(3) Method of Using RAM A boot program (startup program) is previously written in an EPROM or a flash memory. EPROM or flash memory is usually left mounted on a printed circuit board. The boot program has a function of transferring the firmware program from the external recording device to the RAM via the transmission path. When the power is turned on, the boot program operates, receives the F / W program from the external storage device through the transmission interface (serial transmission, LAN transmission), transfers it to the RAM, and transfers the F / W program to the RAM when the transfer ends normally. Of the F / W program is started.
[0007]
In this method, if only the boot program is stored in advance in the EPROM or the flash memory, the F / W program can be freely changed.
[0008]
(4) Method using flash memory (part 2)
This method is used in a one-chip microcomputer with a built-in flash memory. A flash memory, a RAM, and a serial transmission interface are built in the one-chip microcomputer. A boot program is also stored as a ROM. When the flash memory write mode is set at the time of resetting the one-chip microcomputer, the boot program operates, receives the F / W program via the serial interface built in the one-chip microcomputer, and receives the F / W program. Write to RAM. When a certain amount of the F / W program is received, the built-in flash memory is block erased and the F / W program received in the RAM is written to the flash memory. This is sequentially executed for the entire size of the F / W program by the number of blocks of the flash memory, and the F / W program is written to the flash memory. When the flash memory write mode setting of the one-chip microcomputer is released and reset, the F / W program of the built-in flash memory operates.
[0009]
[Problems to be solved by the invention]
(1) Method using EPROM Even now, this method is widely used. However, the mounting density of the printed board has been improved, and it has become difficult to use an EPROM having a large component area.
[0010]
(2) Method using flash memory (1)
Since the flash memory is still mounted on the printed board, a special operation is required to change the once written F / W program. There is a method in which a boot program for changing the flash memory is written in a part of the flash memory, and the other part of the flash memory is rewritten using the boot program. However, the boot program itself cannot be changed.
[0011]
(3) Method using RAM Even with this method, the boot program in the EPROM or flash memory mounted on the printed board cannot be changed.
[0012]
(4) Method using flash memory (part 2)
In a one-chip microcomputer with a built-in flash memory, the capacity of the built-in flash memory is limited. If it is desired to use an F / W program exceeding the limitation, it is necessary to separately prepare a flash memory outside the one-chip microcomputer. In this case, an external flash memory rewriting program may be prepared in the built-in flash memory. However, this is not possible with microcomputers other than one-chip microcomputers.
[0013]
An object of the present invention is to provide a firmware program change method that solves the above-mentioned problems.
[0014]
[Means for Solving the Problems]
According to the present invention, in order to solve the above-mentioned problem, a secondary boot program for changing a boot program is created in a firmware program of a flash memory, and this is operated at the time of resetting the system, and the boot program is stored in a RAM. After transferring and erasing the boot program in the flash memory, a method of writing the boot program in the RAM to the flash memory, or by connecting an in-circuit emulator to the microcomputer by JTAG, and transferring the boot program and firmware from the in-circuit emulator to the RAM Transfer the program, prepare the flash memory copy program in the firmware program, and send the flash memory in the firmware program on the RAM from the in-circuit emulator. Start copy program, a flash memory copy program erases the entire flash memory, the boot program and firmware program in the RAM intended to be how to copy the flash memory, characterized by the following method.
[0015]
(1) A method of changing a firmware program in a microcomputer system in which an external flash memory and a RAM are provided in a microcomputer,
Means for creating a secondary boot program for changing the boot program in the firmware program of the flash memory,
Means for allowing the secondary boot program to operate with settings at the time of system reset;
The secondary boot program transfers the boot program to the RAM via an external storage device or a transmission interface, erases the boot program in the flash memory, and then writes the boot program in the RAM to the flash memory. Means,
It is characterized by having.
[0016]
(2) A method of changing a firmware program in a microcomputer system having an external flash memory and a RAM in a microcomputer that can use JTAG,
Means for connecting the in-circuit emulator to the microcomputer by the JTAG;
Means for transferring a boot program and a firmware program from the in-circuit emulator to the RAM;
Means for preparing a flash memory copy program in the firmware program,
Means for starting a flash memory copy program in the firmware program on the RAM from the in-circuit emulator;
Means for erasing the entire flash memory and copying a boot program and a firmware program on the RAM to the flash memory;
It is characterized by having.
[0017]
BEST MODE FOR CARRYING OUT THE INVENTION
(Embodiment 1)
FIG. 1 is a configuration diagram of a microcomputer system showing an embodiment of the present invention, which is a system in which a flash memory 2 and a RAM 3 are mounted outside a microcomputer 1.
[0018]
In this configuration, the F / W program is written into the RAM 3 by the boot program stored in the flash memory 2 from the external storage device 4 mounted on the printed board or the external storage device 6 via the transmission interface 5 at the time of reset. Is executed. As an external storage device, the F / W program can be written in an area other than the boot program of the flash memory 2.
[0019]
To take in the F / W program, a boot program is written in advance when the flash memory 2 is manufactured, and the boot program is mounted on a printed board. Thereafter, the F / W program is transferred to the RAM 3 via the external storage device 4 or the transmission interface 5 in the microcomputer system, and the F / W program on the RAM 3 is transferred to the F / W program area of the flash memory 2. Thus, the F / W program can be transferred to the flash memory 2.
[0020]
The problem is when changing the boot program. Changing the boot program is realized by the following procedure.
[0021]
(1) A secondary boot program for changing the boot program is created in the firmware program of the flash memory 2.
[0022]
(2) The secondary boot program operates in accordance with the setting at the time of resetting the microcomputer system.
[0023]
(3) The secondary boot program transfers the boot program to the RAM 3 via the external storage device 4 or the transmission interface.
[0024]
(4) The secondary boot program writes the boot program in the RAM 3 to the flash memory 2 after erasing the boot program in the flash memory 2.
[0025]
Therefore, in the present embodiment, it is possible to change the boot program even after mounting a flash memory which is not normally possible on a printed board. Also, no special device is required. Also, the present invention can be applied to a microcomputer system without JTAG.
[0026]
(Embodiment 2)
FIG. 2 is a block diagram of a microcomputer system showing an embodiment of the present invention. The microcomputer is a microcomputer which can use JTAG, has an external flash memory 2 and a RAM 3, and boots from an ICE (in-circuit emulator) 7 at reset. The program and the firmware program are written in the RAM 3, and the boot program and the firmware program are written in the flash memory 2.
[0027]
This method is realized by the following procedure.
[0028]
(1) ICE7 is connected to the microcomputer system by JTAG8.
[0029]
(2) The boot program and the firmware program are transferred from the ICE 7 to the RAM 3 of the microcomputer system.
[0030]
(3) A flash memory copy program is prepared in the firmware program.
[0031]
(4) The ICE 7 starts the flash memory copy program in the F / W program on the RAM 3.
[0032]
(5) The flash memory copy program erases the entire flash memory 2.
[0033]
(6) The flash memory copy program copies the boot program and the firmware program on the RAM 3 to the flash memory 2.
[0034]
Therefore, in this embodiment, rewriting of the flash memory can be performed at a higher speed than in the first embodiment in which the F / W program is transferred by the transmission interface. In particular, there is no need to prepare a boot program.
[0035]
【The invention's effect】
As described above, according to the present invention, a secondary boot program for changing the boot program is created in the firmware program of the flash memory, and this is operated when the system is reset, and the boot program is transferred to the RAM. Since the boot program in the RAM is written into the flash memory after erasing the boot program in the flash memory, the boot program can be changed even after mounting the flash memory which is not normally possible on a printed board. Also, no special device is required. Also, the present invention can be applied to a microcomputer system without JTAG.
[0036]
Also, the in-circuit emulator is connected to the microcomputer by JTAG, the boot program and the firmware program are transferred from the in-circuit emulator to the RAM, and a flash memory copy program is prepared in the firmware program. The flash memory copy program in the above firmware program is started, and the flash memory copy program erases the entire flash memory and copies the boot program and the firmware program on the RAM to the flash memory. It can be performed at high speed, and it is not necessary to prepare a boot program.
[Brief description of the drawings]
FIG. 1 is a system configuration diagram showing a first embodiment of the present invention.
FIG. 2 is a system configuration diagram showing a second embodiment of the present invention.
[Explanation of symbols]
1. Microcomputer 2. Flash memory 3. RAM
4, 6 external storage device 5 transmission interface 7 in-circuit emulator

Claims (2)

マイクロコンピュータに、外部フラッシュメモリとRAMを設けたマイクロコンピュータシステムにおけるファームウェアプログラムの変更方法であって、
前記フラッシュメモリのファームウェアプログラム内にブートプログラムを変更するための二次ブートプログラムを作成しておく手段と、
システムのリセット時の設定で前記二次ブートプログラムが動作するようにしておく手段と、
前記二次ブートプログラムは、外部記憶装置または伝送インタフェースを介して前記ブートプログラムを前記RAMに転送し、前記フラッシュメモリのブートプログラムを消去した後で、前記RAM上のブートプログラムを前記フラッシュメモリに書き込む手段と、
を有することを特徴とするファームウェアプログラムの変更方法。
A method of changing a firmware program in a microcomputer system provided with an external flash memory and a RAM in a microcomputer,
Means for creating a secondary boot program for changing the boot program in the firmware program of the flash memory,
Means for allowing the secondary boot program to operate with settings at the time of system reset;
The secondary boot program transfers the boot program to the RAM via an external storage device or a transmission interface, and after erasing the boot program in the flash memory, writes the boot program in the RAM to the flash memory. Means,
A method for changing a firmware program, comprising:
JTAGが使用できるマイクロコンピュータに、外部フラッシュメモリとRAMを有するマイクロコンピュータシステムにおけるファームウェアプログラムの変更方法であって、
前記JTAGによりインサーキットエミュレータをマイクロコンピュータに接続する手段と、
前記インサーキットエミュレータから前記RAMにブートプログラム及びファームウェアプログラムを転送する手段と、
前記ファームウェアプログラムの中に、フラッシュメモリコピープログラムを用意しておく手段と、
前記インサーキットエミュレータから前記RAM上のファームウェアプログラム中のフラッシュメモリコピープログラムを起動する手段と、
前記フラッシュメモリコピープログラムは、前記フラッシュメモリ全体を消去し、前記RAM上のブートプログラム及びファームウェアプログラムを前記フラッシュメモリにコピーする手段と、
を有することを特徴とするファームウェアプログラムの変更方法。
A method of changing a firmware program in a microcomputer system having an external flash memory and a RAM in a microcomputer that can use JTAG,
Means for connecting the in-circuit emulator to the microcomputer by the JTAG;
Means for transferring a boot program and a firmware program from the in-circuit emulator to the RAM;
Means for preparing a flash memory copy program in the firmware program,
Means for starting a flash memory copy program in the firmware program on the RAM from the in-circuit emulator;
Means for erasing the entire flash memory and copying a boot program and a firmware program on the RAM to the flash memory;
A method for changing a firmware program, comprising:
JP2002236767A 2002-08-15 2002-08-15 Method of changing firmware program Pending JP2004078483A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002236767A JP2004078483A (en) 2002-08-15 2002-08-15 Method of changing firmware program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002236767A JP2004078483A (en) 2002-08-15 2002-08-15 Method of changing firmware program

Publications (1)

Publication Number Publication Date
JP2004078483A true JP2004078483A (en) 2004-03-11

Family

ID=32020797

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002236767A Pending JP2004078483A (en) 2002-08-15 2002-08-15 Method of changing firmware program

Country Status (1)

Country Link
JP (1) JP2004078483A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005327286A (en) * 2004-05-12 2005-11-24 Samsung Electronics Co Ltd Memory system for safely loading main data and main data loading method
JP2007018071A (en) * 2005-07-05 2007-01-25 Nec Corp Multiprocessor system, method for starting multiprocessor system, boot program and portable terminal
JP2008059339A (en) * 2006-08-31 2008-03-13 Yokogawa Electric Corp Controller
JP5432125B2 (en) * 2008-04-08 2014-03-05 エクセン株式会社 Civil engineering machinery / equipment with a microcomputer capable of writing individual information

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005327286A (en) * 2004-05-12 2005-11-24 Samsung Electronics Co Ltd Memory system for safely loading main data and main data loading method
JP2007018071A (en) * 2005-07-05 2007-01-25 Nec Corp Multiprocessor system, method for starting multiprocessor system, boot program and portable terminal
JP2008059339A (en) * 2006-08-31 2008-03-13 Yokogawa Electric Corp Controller
JP5432125B2 (en) * 2008-04-08 2014-03-05 エクセン株式会社 Civil engineering machinery / equipment with a microcomputer capable of writing individual information

Similar Documents

Publication Publication Date Title
US7490177B2 (en) System method for performing a direct memory access for automatically copying initialization boot code in a new memory architecture
DK1797645T3 (en) Systems and methods for providing non-volatile memory management in cordless phones
US7664923B2 (en) Method and system for updating software
TWI275929B (en) Apparatus and method for restoring working context
US20050223210A1 (en) Machine and method for deployment of OS image
JP3875139B2 (en) Nonvolatile semiconductor memory device, data write control method thereof, and program
JP4586469B2 (en) MEMORY CONTROL DEVICE, MEMORY CONTROL METHOD, PROGRAM
JP2004078483A (en) Method of changing firmware program
JP2001216164A (en) Processor system and its start-up method
JP2007034581A (en) Memory controller, flash memory system and method for controlling flash memory
JPH07295866A (en) Data processor
JPH0212363A (en) Initialization method and apparatus for computer system
JP2001022571A (en) Electronic equipment and rewriting method for control program of the equipment
CN114020308A (en) Camera equipment upgrading method, device, equipment and medium
JPH09305395A (en) Electronic equipment
JP2008059339A (en) Controller
JP2010068355A (en) Electronic apparatus and method of controlling the same
JP4973472B2 (en) Firmware incorporating method, firmware incorporating apparatus, and firmware incorporating program
JP5016604B2 (en) Information processing apparatus and information processing method
JP4005950B2 (en) Microcontroller
JP2004013338A (en) Data processor and method
JP2006127554A (en) Information processing device and image formation device
JP2000222290A (en) Backup memory device and memory method therefor
TW518514B (en) Device and method for protecting BIOS data of notebook computer
JP2004094820A (en) Electronic device