JP2003005971A - Method for transferring program - Google Patents

Method for transferring program

Info

Publication number
JP2003005971A
JP2003005971A JP2001187601A JP2001187601A JP2003005971A JP 2003005971 A JP2003005971 A JP 2003005971A JP 2001187601 A JP2001187601 A JP 2001187601A JP 2001187601 A JP2001187601 A JP 2001187601A JP 2003005971 A JP2003005971 A JP 2003005971A
Authority
JP
Japan
Prior art keywords
program
memory
flash memory
boot
area
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
JP2001187601A
Other languages
Japanese (ja)
Inventor
Shigeki Takahashi
滋樹 高橋
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.)
Yaskawa Electric Corp
Original Assignee
Yaskawa Electric Corp
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 Yaskawa Electric Corp filed Critical Yaskawa Electric Corp
Priority to JP2001187601A priority Critical patent/JP2003005971A/en
Publication of JP2003005971A publication Critical patent/JP2003005971A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a program transferring method capable of making it unnecessary to store any program for start in a flash memory before assembling a substrate, and preventing any constraint from being generated to a rewritable memory area in a system. SOLUTION: This program transferring method comprises a processing (STEP1) of arranging a memory card in the start memory area of a flash memory, a processing (STEP2) of starting a program for start, a processing (STEP3) of transferring the program for start to a work area arranged in the area different from the start memory area of the flash memory, a processing (STEP4) of separating the memory card from the start memory area of the flash memory, and a processing (STEP5) of transferring and storing the program for start in the flash memory according to the program in the work area, and the above mentioned processing are successively carried out.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、プログラム転送方
法に関し、特に、予めメモリカードに格納されている起
動用プログラムをフラッシュメモリに転送するプログラ
ム転送方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program transfer method, and more particularly to a program transfer method for transferring a boot program previously stored in a memory card to a flash memory.

【0002】[0002]

【従来の技術】従来より、フラッシュメモリにおいて
は、書き込まれているデータを一括あるいはブロック単
位で消去できるとともに、外部からのデータを一括ある
いはブロック単位で再書き込みすることができるという
特徴を生かして様々なシステムに採用されている。通
常、システムプログラムを有するシステムにおいては、
そのシステムを立ち上げるための起動用プログラムが必
要となるが、フラッシュメモリが採用されたシステムに
おいては、その起動用プログラムが、外部から入力され
るシステムプログラムが格納されるフラッシュメモリに
予め格納されていたり、フラッシュメモリとは別に設け
られた格納手段に予め格納されていたりする。図2及び
図3は、従来の、フラッシュメモリが採用されたシステ
ム内のメモリの一構成例を示すメモリマップである。図
2に示す従来例においては、起動用プログラムが予めR
OM32に書き込まれており、RAM内のワークエリア
10と、外部から入力され、フラッシュメモリに書き込
まれるシステムプログラム20と、ROMに書き込ま
れ、システムプログラム20の外部からの入力を制御す
る起動用プログラム32とからメモリが構成されてい
る。図3に示す従来例においては、基板組立以前に、起
動用プログラムおよびシステムプログラムが書き込まれ
たフラッシュメモリとワークエリア10とからメモリが
構成されている。
2. Description of the Related Art Conventionally, in a flash memory, it is possible to erase written data in batch or in block units, and to rewrite external data in batch or in block units. Has been adopted in various systems. Normally, in a system that has a system program,
A boot program for starting the system is required, but in a system using a flash memory, the boot program is stored in advance in the flash memory in which the system program input from the outside is stored. Alternatively, it may be stored in advance in a storage means provided separately from the flash memory. 2 and 3 are memory maps showing a configuration example of a conventional memory in a system using a flash memory. In the conventional example shown in FIG.
The work area 10 written in the OM 32, the work area 10 in the RAM, the system program 20 input from the outside and written in the flash memory, and the startup program 32 written in the ROM and controlling the input from the outside of the system program 20. The memory consists of and. In the conventional example shown in FIG. 3, a memory is composed of a flash memory in which a startup program and a system program are written and a work area 10 before board assembly.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上述し
たような従来のものにおいては、以下に記載するような
問題点がある。 (1)図2に示したものにおいてシステム上のメモリ空
間に、システムプログラムが格納されるフラッシュメモ
リとは別に、起動用プログラムを格納するためのROM
を新たに設けなければならないため、そのための設置ス
ペースが必要となるとともに、大規模のメモリ空間が必
要となるシステムにおいては、書き換え可能なメモリ領
域に制約が生じてしまう。 (2)図3に示したものにおいて基板組立以前に起動用
プログラムをフラッシュメモリに格納しておく必要があ
るため、プロセッサ毎のプログラムをフラッシュメモリ
単体へ書き込むための手段を新たに設けなければなら
ず、また、起動用プログラムが書き込まれたフラッシュ
メモリを在庫管理する必要が生じてしまう。 本発明は、前述したような従来の技術が有する問題点に
鑑みてなされたものであって、基板組立以前に起動用プ
ログラムをフラッシュメモリに格納しておくことなく、
かつ、システムにおける書き換え可能なメモリ領域に制
約を生じさせることのない、プログラム転送方法を提供
することを目的とする。
However, the conventional device described above has the following problems. (1) In the memory space shown in FIG. 2, a ROM for storing a boot program in addition to a flash memory for storing a system program in a system memory space
Must be newly provided, so that an installation space for that is required, and in a system that requires a large-scale memory space, the rewritable memory area is restricted. (2) In the structure shown in FIG. 3, since it is necessary to store the boot program in the flash memory before the board is assembled, it is necessary to newly provide means for writing the program for each processor into the flash memory alone. In addition, it becomes necessary to inventory the flash memory in which the boot program is written. The present invention has been made in view of the problems of the conventional technique as described above, and it is possible to store a startup program in a flash memory before board assembly.
Moreover, it is an object of the present invention to provide a program transfer method that does not cause a restriction on a rewritable memory area in a system.

【0004】[0004]

【課題を解決するための手段】上記目的を達成するため
に本発明は、メモリカード内に予め格納された、システ
ムプログラムの入力を制御する起動用プログラムをフラ
ッシュメモリに転送するプログラム転送方法であって、
前記メモリカードを前記フラッシュメモリの起動メモリ
領域に配置する処理と、前記起動用プログラムを起動さ
せる処理と、前記起動用プログラムを前記フラッシュメ
モリの起動メモリ領域とは異なる領域に設けられたワー
クエリアに転送する処理と、前記メモリカードを前記フ
ラッシュメモリの起動メモリ領域から切り離す処理と、
前記ワークエリア内のプログラムにより、前記起動用プ
ログラムを前記フラッシュメモリ内に転送し、格納する
処理とを順次行うことを特徴とするプログラム転送方法
であり、また、前記メモリカードは、前記フラッシュメ
モリ搭載基板とカードソケットを介して互いに接続した
状態で、 前記フラッシュメモリ搭載基板上に設けた前
記メモリカードの起動認識手段による前記起動用プログ
ラムを起動させる処理と、前記起動用プログラムを前記
フラッシュメモリの起動メモリ領域とは異なる領域に設
けられたワークエリアに転送する処理と、転送完了によ
り前記メモリカードを前記フラッシュメモリの起動メモ
リ領域から切り離し、別領域に配置する処理と、前記ワ
ークエリア内のプログラムにより、前記起動用プログラ
ムを前記フラッシュメモリ内に転送し、格納する処理と
を順次行うことを特徴とするプログラム転送方法であ
る。
In order to achieve the above object, the present invention is a program transfer method for transferring to a flash memory a start-up program which is stored in advance in a memory card and which controls the input of a system program. hand,
A process of arranging the memory card in a boot memory area of the flash memory, a process of booting the boot program, and the boot program in a work area provided in a region different from the boot memory region of the flash memory. A process of transferring, a process of separating the memory card from the boot memory area of the flash memory,
In the program transfer method, a program in the work area transfers the boot program to the flash memory and stores the program sequentially, and the memory card has the flash memory installed. A process of activating the activation program by the activation recognition means of the memory card provided on the flash memory mounting substrate in a state of being connected to each other via the substrate and a card socket, and activating the activation program of the flash memory. By a process of transferring to a work area provided in a region different from the memory region, a process of separating the memory card from the boot memory region of the flash memory when the transfer is completed and arranging it in another region, and a program in the work area. , Flash the boot program This is a program transfer method characterized by sequentially performing a process of transferring and storing in a memory.

【0005】[0005]

【発明の実施の形態】以下に、本発明の実施の形態につ
いて図面を参照して説明する。図1は、本発明のプログ
ラム転送方法の実施の形態を示す図であり、(a)はメ
モリの構成を示すメモリマップ、(b)は処理の流れを
示すフローチャートである。本形態は図1(a)に示す
ように、RAM内のワークエリア10と、フラッシュメ
モリに書き込まれるシステムプログラム20と、予めP
CMCIAメモリカードなどのメモリカードに書き込ま
れ、システムプログラム20の入力を制御する起動用プ
ログラム30とからメモリが構成されている。以下に、
本形態における起動用プログラム30の転送方法につい
て図1(b)を参照して説明する。まず、外部に設けら
れている設定スイッチ(不図示)により、フラッシュメ
モリへの起動用プログラム格納モードを選択し、それに
より、フラッシュメモリの起動メモリとしてメモリカー
ドを選択する(STEP1)。次に、電源投入等のシス
テム起動手段(不図示)により、メモリカードに格納さ
れている起動用プログラム30を起動させ(STEP
2)、それにより、メモリカードに格納されている起動
用プログラム30をRAM内のワークエリア10へ転送
し、その後、ワークエリア10内のプログラムを実行す
る(STEP3)。次に、ワークエリア10内のプログ
ラムにより、メモリカードを起動メモリ領域とは別領域
に配置し(STEP4)、そのメモリ領域にシステム用
フラッシュメモリを接続する。次に、ワークエリア10
内のプログラムにより、ワークエリア10内に転送され
ている起動用プログラム30をフラッシュメモリに転送
し、格納する(STEP5)。起動用プログラム30の
フラッシュメモリへの格納が完了した後、起動用プログ
ラム格納完了処理終了をオペレータへ通知し、外部に設
けられている設定スイッチにより、システムプログラム
実行モードを選択し、それにより、フラッシュメモリ内
のシステムプログラム20を実行する。図1に示すよう
に、本形態においてはまず、システムを起動させるため
に電源を投入し、起動用メモリカード選択スイッチ(不
図示)によって、起動用プログラム30が格納されてい
るメモリカードが起動メモリ領域に配置されているかど
うかを検出する。STEP1においてメモリカードが起
動メモリ領域に配置されていることが検出された場合、
本来のシステム起動用のフラッシュメモリをメモリカー
ドとは別メモリ領域に配置する。次に、メモリカードに
格納されている起動用プログラム30を起動させ、起動
プログラムをワークエリア10へ転送後、ワークエリア
にプログラム制御を移し、ワークエリアのプログラムよ
り、起動プログラムをフラッシュメモリに転送し、格納
する。次に、起動用メモリカード選択スイッチ(不図
示)を元に戻し、転送処理を終了する。その後、起動用
メモリカード選択スイッチ(不図示)によって、起動用
プログラムが格納されているメモリカード30が起動メ
モリ領域に配置されていないことを検出し、フラッシュ
メモリ内のシステムプログラム21を実行する。ここ
で、フラッシュメモリに格納されているシステムプログ
ラム21の内容を変更する場合は、書き換えプログラム
をワークエリア10に転送した後、ワークエリア10内
のプログラムにより、フラッシュメモリに格納されてい
るシステムプログラム21の書き換えを実行する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a diagram showing an embodiment of a program transfer method of the present invention, (a) is a memory map showing a memory configuration, and (b) is a flowchart showing a processing flow. In this embodiment, as shown in FIG. 1A, a work area 10 in a RAM, a system program 20 written in a flash memory, and a P
The memory is composed of a boot program 30 which is written in a memory card such as a CMCIA memory card and controls input of the system program 20. less than,
A transfer method of the boot program 30 in this embodiment will be described with reference to FIG. First, an external setting switch (not shown) is used to select a boot program storage mode for the flash memory, thereby selecting a memory card as the flash memory boot memory (STEP 1). Next, the system start-up means (not shown) such as power-on starts the start-up program 30 stored in the memory card (STEP
2) As a result, the boot program 30 stored in the memory card is transferred to the work area 10 in the RAM, and then the program in the work area 10 is executed (STEP 3). Next, the program in the work area 10 arranges the memory card in an area different from the boot memory area (STEP 4) and connects the system flash memory to the memory area. Next, work area 10
The internal program transfers the boot program 30 transferred in the work area 10 to the flash memory and stores it (STEP 5). After the startup program 30 is completely stored in the flash memory, the operator is notified of the completion of the startup program storage completion process, and the system program execution mode is selected by the setting switch provided externally. The system program 20 in the memory is executed. As shown in FIG. 1, in the present embodiment, first, the power is turned on to start the system, and the memory card in which the boot program 30 is stored is booted by the boot memory card selection switch (not shown). Detects whether it is placed in the area. If it is detected in STEP 1 that the memory card is located in the boot memory area,
The original flash memory for system startup is arranged in a memory area different from the memory card. Next, the boot program 30 stored in the memory card is booted, the boot program is transferred to the work area 10, the program control is transferred to the work area, and the boot program is transferred to the flash memory from the program in the work area. ,Store. Next, the boot memory card selection switch (not shown) is returned to the original state, and the transfer process is terminated. Thereafter, the boot memory card selection switch (not shown) detects that the memory card 30 storing the boot program is not located in the boot memory area, and executes the system program 21 in the flash memory. Here, when changing the contents of the system program 21 stored in the flash memory, after transferring the rewriting program to the work area 10, the program in the work area 10 causes the system program 21 stored in the flash memory to be changed. Rewrite.

【0006】[0006]

【発明の効果】上記のように構成された本発明において
は、メモリカード内に予め格納され、システムプログラ
ムの入力を制御する起動用プログラムをフラッシュメモ
リに転送、格納した後、メモリカードをフラッシュメモ
リの起動メモリ領域から切り離してメモリカードが配置
されていたメモリ領域をフラッシュメモリに戻し、その
後、フラッシュメモリに転送されたシステムプログラム
を起動させるので、基板組立以前に起動用プログラムを
フラッシュメモリに格納しておく必要なく、かつ、シス
テムにおける書き換え可能なメモリ領域に制約が生じる
ことなく、システムプログラムの実行が行われる。その
ため、システムメモリ空間の有効活用と設備的機能コス
ト及び設置スペースの削減、並びに、プログラム格納済
みのフラッシュメモリをシステムあるいはプロセッサ毎
に準備しておくための在庫管理費用の削減を実現させる
ことができる。また、起動メモリとして、市販のメモリ
カードを使用できるので、起動メモリとして特殊なハー
ドウェアを製作・準備する必要がなく、接続用のコネク
タを製品仕様として準備されているPCMCIAコネク
タをそのまま使用できるので、原価低減となる。
According to the present invention configured as described above, the boot program, which is stored in advance in the memory card and controls the input of the system program, is transferred to and stored in the flash memory, and then the memory card is loaded into the flash memory. The memory area where the memory card was placed is separated from the boot memory area of and returned to the flash memory, and then the system program transferred to the flash memory is started, so the boot program is stored in the flash memory before board assembly. The system program can be executed without needing to keep it, and without causing a restriction on the rewritable memory area in the system. Therefore, it is possible to effectively use the system memory space, reduce the facility functional cost and the installation space, and reduce the inventory management cost for preparing the flash memory storing the program for each system or each processor. . Also, since a commercially available memory card can be used as the startup memory, it is not necessary to manufacture and prepare special hardware as the startup memory, and the connector for connection can be used as it is as the PCMCIA connector prepared as a product specification. The cost will be reduced.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明のプログラム転送方法の第1の実施の形
態を示す図であり、(a)はメモリの構成を示すメモリ
マップ、(b)は処理の流れを示すフローチャートであ
る。
FIG. 1 is a diagram showing a first embodiment of a program transfer method of the present invention, (a) is a memory map showing a memory configuration, and (b) is a flowchart showing a processing flow.

【図2】従来の、フラッシュメモリが採用されたシステ
ム内のメモリの一構成例を示すメモリマップである。
FIG. 2 is a memory map showing a configuration example of a conventional memory in a system using a flash memory.

【図3】従来の、フラッシュメモリが採用されたシステ
ム内のメモリの一構成例を示すメモリマップである。
FIG. 3 is a memory map showing a configuration example of a conventional memory in a system using a flash memory.

【符号の説明】[Explanation of symbols]

10 ワークエリア 20 システムプログラムが格納されるフラッシュメモ
リ 21 起動領域に配置された起動プログラムが格納され
たフラッシュメモリ 30 起動プログラムが格納されているメモリカード 31 メモリカード領域 32 起動用プログラム予め格納されたROM 33 起動用プロプログラムが予め格納されたフラッシ
ュメモリ
10 work area 20 flash memory 21 in which system program is stored flash memory 30 in which boot program is stored in boot area 30 memory card 31 in which boot program is stored memory card area 32 boot program ROM stored in advance 33 Flash memory with pre-loaded boot pro program

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 メモリカード内に予め格納された、シス
テムプログラムの入力を制御する起動用プログラムをフ
ラッシュメモリに転送するプログラム転送方法であっ
て、 前記メモリカードを前記フラッシュメモリの起動メモリ
領域に配置する処理と、 前記起動用プログラムを起動させる処理と、 前記起動用プログラムを前記フラッシュメモリの起動メ
モリ領域とは異なる領域に設けられたワークエリアに転
送する処理と、 前記メモリカードを前記フラッシュメモリの起動メモリ
領域から切り離す処理と、 前記ワークエリア内のプログラムにより、前記起動用プ
ログラムを前記フラッシュメモリ内に転送し、格納する
処理とを順次行うことを特徴とするプログラム転送方
法。
1. A program transfer method for transferring, to a flash memory, a boot program, which is stored in advance in a memory card and controls input of a system program, wherein the memory card is arranged in a boot memory area of the flash memory. Processing, a process of starting the boot program, a process of transferring the boot program to a work area provided in an area different from the boot memory area of the flash memory, and the memory card of the flash memory. A program transfer method comprising: sequentially performing a process of separating from a boot memory area and a process of transferring the boot program into the flash memory and storing the program by a program in the work area.
【請求項2】 請求項1に記載のプログラム転送方法に
おいて、 前記メモリカードは、前記フラッシュメモリ搭載基板と
カードソケットを介して互いに接続した状態で、 前記フラッシュメモリ搭載基板上に設けた前記メモリカ
ードの起動認識手段による前記起動用プログラムを起動
させる処理と、 前記起動用プログラムを前記フラッシュメモリの起動メ
モリ領域とは異なる領域に設けられたワークエリアに転
送する処理と、転送完了により前記メモリカードを前記
フラッシュメモリの起動メモリ領域から切り離し、別領
域に配置する処理と、 前記ワークエリア内のプログラムにより、前記起動用プ
ログラムを前記フラッシュメモリ内に転送し、格納する
処理とを順次行うことを特徴とするプログラム転送方
法。
2. The program transfer method according to claim 1, wherein the memory card is provided on the flash memory mounting substrate in a state of being connected to the flash memory mounting substrate via a card socket. Process for activating the boot program by the boot recognizing means, transferring the boot program to a work area provided in an area different from the boot memory area of the flash memory, and transferring the memory card when the transfer is completed. A process of separating from the boot memory area of the flash memory and arranging the flash memory in a different area, and a process of transferring the boot program into the flash memory and storing the boot program by a program in the work area are sequentially performed. How to transfer the program.
JP2001187601A 2001-06-21 2001-06-21 Method for transferring program Pending JP2003005971A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001187601A JP2003005971A (en) 2001-06-21 2001-06-21 Method for transferring program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001187601A JP2003005971A (en) 2001-06-21 2001-06-21 Method for transferring program

Publications (1)

Publication Number Publication Date
JP2003005971A true JP2003005971A (en) 2003-01-10

Family

ID=19026868

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001187601A Pending JP2003005971A (en) 2001-06-21 2001-06-21 Method for transferring program

Country Status (1)

Country Link
JP (1) JP2003005971A (en)

Similar Documents

Publication Publication Date Title
KR100280637B1 (en) Computer system capable of data update of fixed flash ROM and its control method
US20060047938A1 (en) Method and apparatus to initialize CPU
JP4527348B2 (en) Interface device, method of updating firmware in interface device, and program thereof
JP2001195241A (en) Computer
WO2017000567A1 (en) Bootrom upgrading method and device
US7386711B1 (en) Method and apparatus for redirecting the boot operations of one or more systems
JP2000293367A (en) Nonvolatile-memory built-in microcomputer
US6795915B2 (en) Computer system and method for setting up information on an operating system thereof
US20020078339A1 (en) Booting system and booting method for an assistant operation system
JP4482044B2 (en) Information processing apparatus and device controller drive control method
JP2002175193A (en) Device and method for rewriting program
JP2003005971A (en) Method for transferring program
JPH10283172A (en) Flash rom data rewrite system
US20120159108A1 (en) Control device for a vending machine
JPH11282690A (en) Method for writing control program, information processor and information processing system
JPH07281986A (en) Extended board, information processor using the same and control method for peripheral device
JP2001256167A (en) Information processor and option board loaded on the same
JPH10207712A (en) Method for transferring program
JP2003281487A (en) Portable electronic device, and method for providing application and data area in memory
CN113778474A (en) Upgrading method, device, equipment and storage medium
JPH08307246A (en) Method for configuring integrated circuit device and logic circuit
KR19990077915A (en) Computer system having a distinctive operating system
JPH11272642A (en) 1-chip microcomputer and start address setting method
JPH1145182A (en) Firmware
JPH11338690A (en) Flash memory, firmware use system device and firmware rewriting method