JP2001100984A - Program link method of flash incorporated microcomputer - Google Patents

Program link method of flash incorporated microcomputer

Info

Publication number
JP2001100984A
JP2001100984A JP27251999A JP27251999A JP2001100984A JP 2001100984 A JP2001100984 A JP 2001100984A JP 27251999 A JP27251999 A JP 27251999A JP 27251999 A JP27251999 A JP 27251999A JP 2001100984 A JP2001100984 A JP 2001100984A
Authority
JP
Japan
Prior art keywords
branch
load module
application program
rewritable
list
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.)
Granted
Application number
JP27251999A
Other languages
Japanese (ja)
Other versions
JP3542529B2 (en
Inventor
Jun Takanashi
潤 高梨
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.)
NEC Microcomputer Technologies Ltd
Original Assignee
NEC Microcomputer Technologies 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 NEC Microcomputer Technologies Ltd filed Critical NEC Microcomputer Technologies Ltd
Priority to JP27251999A priority Critical patent/JP3542529B2/en
Publication of JP2001100984A publication Critical patent/JP2001100984A/en
Application granted granted Critical
Publication of JP3542529B2 publication Critical patent/JP3542529B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PROBLEM TO BE SOLVED: To generate a load module which operates normally without any trouble even after self-writing is carried out in the operation of an application program. SOLUTION: A link-unsolved function call is regarded as a branch instruction to a function present in a load module 5 on the side of a rewritable part 1 and the branch destination of the branch instruction is corrected to a branch table 9 generated afterward in a load module 5 on the side of the rewritable part 1. After the link of the function call is solved, a list 11 of information on a function call at the corrected branch destination is automatically generated by a branch destination correcting routine 8 in a load module 6 on the side of a unrewritable part 2. The list 11 is referred to by a branch table generating routine when application program is linked at the time of the generation of the load module 5 on the side of the rewritable part 1 and the branch table 9 is automatically generated, so even after self-writing is performed, a load module can be generated which instantaneously automates the normal operation of the application program.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、フラッシュ内蔵マ
イコンのプログラムリンク方法に関し、特に、書換可能
部分のアプリケーションプログラムの更新があった場合
にもその動作を自動的に継続することができるロードモ
ジュールを生成することができるフラッシュ内蔵マイコ
ンのプログラムリンク方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program linking method for a microcomputer with a built-in flash, and more particularly, to a load module capable of automatically continuing its operation even when an application program in a rewritable portion is updated. The present invention relates to a program link method for a microcomputer with a built-in flash that can be generated.

【0002】[0002]

【従来の技術】フラッシュEEPROM内蔵の出現によ
りアプリケーションプログラムのセルフ書き換えを行な
うことが多くなってきている。セルフ書き換えを行なう
ことにより、アプリケーションプログラムの機能や情報
の追加・更新、障害の対処を容易に行なうことができる
反面、アプリケーションプログラム開発時には、セルフ
書き換えを行なった後でもアプリケーションプログラム
が正常に動作するような手段を用意してそれを管理しな
ければならない。
2. Description of the Related Art With the advent of a built-in flash EEPROM, self-rewriting of an application program is increasingly performed. By performing self-rewriting, it is easy to add / update the functions and information of the application program, and to deal with failures. However, when developing an application program, the application program can operate normally even after self-rewriting is performed. We have to prepare and manage various means.

【0003】従来の技術では、関数呼び出しの分岐先を
あるアドレスに固定し、そのアドレスに分岐命令を配置
し、二段分岐を行なうようなソースファイルを用意して
ロードモジュールを生成するリンク方法が用いられてい
た。フラッシュEEPROMによるアプリケーションプ
ログラムのセルフ書き換えを用いたこのようなシステム
では、アプリケーションプログラムの規模が大きくなる
とともに、正常に動作させる手段を用意してそれを管理
することに手間がかかっていた。このように手間がかか
る理由は、アプリケーションプログラムのソースファイ
ルを変更し、目的の関数を直接呼び出さずに中継点を経
由するように、関数呼び出し毎に修正を行なわなければ
ならないためである。
[0003] In the prior art, a link method for fixing a branch destination of a function call to a certain address, arranging a branch instruction at that address, preparing a source file for performing two-stage branching, and generating a load module is known. Was used. In such a system using self-rewriting of an application program by a flash EEPROM, the scale of the application program becomes large, and it takes time to prepare a means for operating normally and manage it. The reason for the trouble is that the source file of the application program needs to be changed and the function must be modified every time the function is called so that the target function is not directly called but goes through the relay point.

【0004】フラッシュ内蔵マイコンのアプリケーショ
ンプログラムの動作時にセルフ書き換えを行なった後に
も、手間がかからずに正常に動作することが望まれる。
[0004] Even after self-rewriting is performed during the operation of an application program of a microcomputer with a built-in flash, it is desired that normal operation be performed without any trouble.

【0005】[0005]

【発明が解決しようとする課題】本発明の課題は、アプ
リケーションプログラムの動作時にセルフ書き換えを行
なった後にも、手間がかからずに正常に動作するフラッ
シュ内蔵マイコンのプログラムリンク方法を提供するこ
とにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a program linking method for a microcomputer with a built-in flash which can operate normally without any trouble even after self-rewriting is performed during the operation of an application program. is there.

【0006】[0006]

【課題を解決するための手段】その課題を解決するため
の手段が、下記のように表現される。その表現中に現れ
る技術的事項には、括弧()つきで、番号、記号等が添
記されている。その番号、記号等は、本発明の実施の複
数・形態又は複数の実施例のうちの少なくとも1つの実
施の形態又は複数の実施例を構成する技術的事項、特
に、その実施の形態又は実施例に対応する図面に表現さ
れている技術的事項に付せられている参照番号、参照記
号等に一致している。このような参照番号、参照記号
は、請求項記載の技術的事項と実施の形態又は実施例の
技術的事項との対応・橋渡しを明確にしている。このよ
うな対応・橋渡しは、請求項記載の技術的事項が実施の
形態又は実施例の技術的事項に限定されて解釈されるこ
とを意味しない。
Means for solving the problem are described as follows. The technical items appearing in the expression are appended with numbers, symbols, and the like in parentheses (). The numbers, symbols, and the like are technical items that constitute at least one embodiment or a plurality of the embodiments of the present invention, in particular, the embodiments or the examples. Corresponds to the reference numerals, reference symbols, and the like assigned to the technical matters expressed in the drawings corresponding to the above. Such reference numbers and reference symbols clarify the correspondence and bridging between the technical matters described in the claims and the technical matters of the embodiments or examples. Such correspondence / bridge does not mean that the technical matters described in the claims are interpreted as being limited to the technical matters of the embodiments or the examples.

【0007】本発明によるフラッシュ内蔵マイコンのプ
ログラムリンク方法は、リンク未解決な関数呼び出しを
書換可能部分(1)のロードモジュール(5)に存在す
る関数への分岐命令とみなすこと、分岐先を下記分岐テ
ーブルに修正すること、関数呼出しのリンク解決が終了
した後に、修正による分岐先の関数呼出しの情報の一覧
(11)を自動生成し、書換不可能部分(2)のロード
モジュール(6)内に保管すること、その情報に基づい
て分岐テーブル(9)を書換可能部分(1)のロードモ
ジュール(5)に自動生成することとからなる。アプリ
ケーションプログラムは、その動作時にセルフ書き換え
を行なった後にも手間を要しないで正常に動作する。
A program link method for a microcomputer with a built-in flash according to the present invention regards a function call whose link is unresolved as a branch instruction to a function existing in the load module (5) of the rewritable part (1). After the correction to the branch table and the link resolution of the function call are completed, a list (11) of the information of the function call at the branch destination by the correction is automatically generated, and the load module (6) of the non-rewritable part (2) is generated. And automatically generating the branch table (9) in the load module (5) of the rewritable part (1) based on the information. The application program operates normally without any trouble even after self-rewriting is performed during the operation.

【0008】書換不可能部分(2)のアプリケーション
プログラムのリンク時に未定義関数の呼出しがある場合
に、一覧(11)は、書換不可能部分(2)の側のロー
ドモジュール(6)の生成時のアプリケーションプログ
ラムリンク時に分岐先修正ルーチン(8)により生成さ
れる。書換可能部分(1)のアプリケーションプログラ
ムのリンク時に一覧(11)がある場合に、分岐テーブ
ル(9)は、書換可能部分(1)の側のロードモジュー
ル(5)の生成時のアプリケーションプログラムのリン
ク時に、分岐テーブル生成ルーチン(7)により生成さ
れる。
When an undefined function is called at the time of linking the application program of the non-rewritable part (2), the list (11) is displayed when the load module (6) of the non-rewritable part (2) is generated. Is generated by the branch destination correction routine (8) when the application program is linked. If there is a list (11) at the time of linking the application program of the rewritable part (1), the branch table (9) stores the link of the application program at the time of generating the load module (5) on the side of the rewritable part (1). Sometimes, it is generated by the branch table generation routine (7).

【0009】本発明によるフラッシュ内蔵マイコンのプ
ログラムリンク方法は、更に、書換不可能部分(2)の
アプリケーションプログラムの中の情報を一覧(11)
に保管すること、書換可能部分(1)のアプリケーショ
ンプログラムを更新した場合、一覧(11)を参照して
再び分岐テーブル(9)を生成することにより、書換可
能部分(1)のアプリケーションプログラムをリンクし
て書換可能部分(1)の側のロードモジュール(5)を
生成することとからなり、アプリケーションプログラム
の更新があった場合にも、自動的に動作を継続すること
ができるロードモジュールを生成することができる。
The program linking method of the microcomputer with a built-in flash according to the present invention further includes a step of listing information in the application program of the non-rewritable part (2)
When the application program of the rewritable part (1) is updated, the branch table (9) is generated again with reference to the list (11) to link the application program of the rewritable part (1). To generate a load module (5) on the rewritable part (1) side, and to generate a load module that can automatically continue operation even when an application program is updated. be able to.

【0010】アプリケーションプログラム動作時にセル
フ書き換えを行なうことにより、フラッシュに配置され
たプログラムコードサイズが変化し、関数アドレス1が
変動して、書き換えができない部分からの関数呼び出し
がある場合にプログラムコードは不正になるが、図1に
示されるように、フラッシュに二段分岐用のテーブル
(9)を固定アドレスに用意し、中継して分岐すること
により、関数アドレスの変動に対応することができるよ
うになる。
By performing self-rewriting during the operation of the application program, the size of the program code arranged in the flash changes, and the function address 1 fluctuates. However, as shown in FIG. 1, a two-stage branch table (9) is prepared in the flash at a fixed address, and relaying and branching is performed so that the function address can be changed. Become.

【0011】[0011]

【発明の実施の形態】本発明によるフラッシュ内蔵マイ
コンのプログラムリンク方法の実施の形態は、アプリケ
ーションプログラムが、書き換えが可能である書換可能
部分と、書き換えが不可能である書換不可能部分に分け
られて設けられている。フラッシュ内蔵マイコン上で動
作するアプリケーションプログラムは、図2に示される
ように、書換可能部分1と、書換不可能部分2とに分け
られている。書換可能部分1と書換不可能部分2は、第
1リンカ3と第2リンカ4により、それぞれに書換可能
部分側ロードモジュール5と書換不可能部分側ロードモ
ジュール6を生成する。第1リンカ3と第2リンカ4
は、同一のコマンドでもかまわない。その場合には、オ
プションを指定させる等の動作を切り換える仕組みを用
意する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS In the embodiment of the program linking method for a microcomputer with a built-in flash according to the present invention, an application program is divided into a rewritable portion that can be rewritten and a non-rewritable portion that cannot be rewritten. It is provided. As shown in FIG. 2, the application program operating on the microcomputer with a built-in flash is divided into a rewritable part 1 and a non-rewritable part 2. The rewritable part 1 and the non-rewritable part 2 generate a rewritable part side load module 5 and a non-rewritable part side load module 6 by the first linker 3 and the second linker 4, respectively. First linker 3 and second linker 4
May be the same command. In this case, a mechanism for switching operations such as designating an option is prepared.

【0012】第1リンカ3には、これに属して分岐テー
ブル生成ルーチン7が設けられている。第2リンカ4に
は、これに属して分岐先修正ルーチン8が設けられてい
る。書換可能部分ロードモジュール5には、分岐テーブ
ル9が設けられる。書換不可能部分ロードモジュール6
には、一覧11が設けられる。
The first linker 3 is provided with a branch table generation routine 7 belonging thereto. The second linker 4 is provided with a branch destination correction routine 8 belonging thereto. The rewritable part load module 5 is provided with a branch table 9. Non-rewritable part load module 6
Is provided with a list 11.

【0013】一覧11は、未定義関数呼び出し情報を保
持している。一覧11は、書換不可能部分側ロードモジ
ュール6の生成工程のアプリケーションプログラムリン
ク時に、分岐先修正ルーチン8により生成される。先に
書換不可能部分2のリンク時に未定義関数の呼び出しが
ある場合に、第2リンカ4に属する分岐先修正ルーチン
8で、固定アドレスに配置される分岐テーブル9を呼び
出すようにする。書換不可能部分側ロードモジュール6
内に埋め込まれている未定義関数呼び出しの一覧11
が、書換可能部分1のリンク時に参照され、分岐テーブ
ル生成ルーチン7により分岐命令を羅列した分岐テーブ
ル9が内部で自動生成される。分岐テーブル9は、書換
可能部分側ロードモジュール5の中に埋め込まれる。
The list 11 holds undefined function call information. The list 11 is generated by the branch destination correction routine 8 at the time of linking the application program in the generation process of the non-rewritable part side load module 6. If an undefined function is called when the non-rewritable part 2 is linked first, the branch destination correction routine 8 belonging to the second linker 4 calls the branch table 9 located at a fixed address. Non-rewritable part side load module 6
List of undefined function calls embedded in the file 11
Is referred to when the rewritable part 1 is linked, and the branch table generation routine 7 automatically generates a branch table 9 in which branch instructions are listed. The branch table 9 is embedded in the rewritable part side load module 5.

【0014】書換不可能部分2のリンク時に参照した情
報を一覧11に保管しておくことにより、書換可能部分
1であるアプリケーションプログラムを更新した場合
に、一覧11を参照して再び分岐テーブル9を生成し、
書換可能部分1をリンクして書換可能部分側ロードモジ
ュール5を生成する。このようにして、フラッシュ内蔵
マイコンにおいて、アプリケーションプログラム動作時
にセルフ書き換えを行なった後でも、正常に動作する仕
組みをプログラムリンク時に自動的に解決することが可
能である。
The information referred to when linking the non-rewritable part 2 is stored in the list 11, so that when the application program as the rewritable part 1 is updated, the branch table 9 is referred to again with reference to the list 11. Generate
The rewritable part 1 is linked to generate the rewritable part side load module 5. In this way, in the microcomputer with a built-in flash, even if the self-rewriting is performed during the operation of the application program, it is possible to automatically solve the mechanism that operates normally when the program is linked.

【0015】分岐テーブル9は、二段分岐用の分岐命令
を保持し、書換可能部分ロードモジュールの生成工程の
アプリケーションプログラムリンク時に、分岐テーブル
生成ルーチン7により生成される。
The branch table 9 holds a branch instruction for a two-stage branch, and is generated by the branch table generation routine 7 at the time of linking an application program in a step of generating a rewritable partial load module.

【0016】図3は、既述の実施の形態のうち分岐修正
ルーチン8の動作を示している。分岐先修正ルーチン8
は、リンク未解決な関数呼び出しが存在する場合(ステ
ップS1)、その関数呼び出しを書換可能部分側ロード
モジュール5に存在する関数への分岐命令とみなして
(ステップS1)、分岐先を中継点である分岐テーブル
9に修正する。図6に分岐テーブル9の内部構造が示さ
れるように、分岐先のアドレスは、分岐テーブルの先頭
アドレス+通し番号*テーブルの1要素の大きさから算
出される。全ての関数呼出しのリンク解決終了後に、図
5に示される形式により、修正した分岐先の情報の一覧
11を書換不可能部分側ロードモジュール6に埋め込む
(ステップS3)。
FIG. 3 shows the operation of the branch correction routine 8 in the embodiment described above. Branch destination correction routine 8
When there is a function call whose link is unresolved (step S1), the function call is regarded as a branch instruction to a function existing in the rewritable part side load module 5 (step S1), and the branch destination is set at the relay point. Correct to a certain branch table 9. As shown in FIG. 6, the internal address of the branch table 9 is calculated from the start address of the branch table + the serial number * the size of one element of the table. After link resolution of all function calls is completed, the corrected branch destination information list 11 is embedded in the non-rewritable part side load module 6 in the format shown in FIG. 5 (step S3).

【0017】図4は、既述の実施の形態のうち、分岐テ
ーブル生成ルーチン7の動作を示している。分岐テーブ
ル生成ルーチン7は、分岐先を修正された関数呼び出し
の情報の一覧11を読みこむ(ステップS4)。この情
報を元に、通し番号順に分岐命令を羅列した分岐テーブ
ル9を書換可能部分ロードモジュール5の内部に自動生
成する。その際、各分岐命令に対して、リンク解決に必
要な情報も生成する(ステップS5)。その後、リンク
解決を行ない(ステップS6)、未定義関数呼び出しが
存在するかどうかの判定を行なう(ステップS7)。未
定義関数呼び出しが存在する場合には、エラー処理を行
なう(ステップS8)。なお、分岐テーブル9の中に未
定義関数呼び出しが存在する場合、リンカは、どちらの
ロードモジュール内にあるべき関数であるかの判断を行
なうことができない。リンク解決が正常に終了した場
合、アプリケーションプログラム動作時にセルフ書き換
えを行なった後でも正常に動作するロードモジュールの
生成が完了する。
FIG. 4 shows the operation of the branch table generation routine 7 in the embodiment described above. The branch table generation routine 7 reads the function call information list 11 whose branch destination has been corrected (step S4). Based on this information, a branch table 9 in which branch instructions are listed in the order of serial numbers is automatically generated inside the rewritable partial load module 5. At this time, information necessary for link resolution is also generated for each branch instruction (step S5). Thereafter, link resolution is performed (step S6), and it is determined whether an undefined function call exists (step S7). If an undefined function call exists, error processing is performed (step S8). When an undefined function call exists in the branch table 9, the linker cannot determine which load module should be included in the function. When the link resolution is completed normally, the generation of the load module that normally operates even after the self-rewriting is performed during the operation of the application program is completed.

【0018】図6に示される分岐テーブルによる二段分
岐は、図7に示される関数アドレステーブルを用いたレ
ジスタ間接分岐に代替され得る。書換不可能部分ロード
モジュールの生成工程では、第2リンカ4の分岐先修正
ルーチンのステップ9(図3参照)で、固定アドレスに
配置される関数アドレステーブルのN番目に格納される
アドレスを参照して、分岐を行なうようにリンク解決を
する。
The two-stage branch using the branch table shown in FIG. 6 can be replaced with a register indirect branch using the function address table shown in FIG. In the step of generating the non-rewritable partial load module, in step 9 (see FIG. 3) of the branch destination correction routine of the second linker 4, the N-th address stored in the function address table located at the fixed address is referred to. To resolve the link so as to branch.

【0019】次に、書換可能部分ロードモジュールの生
成工程では、第1リンカ3の分岐テーブル生成ルーチン
7が、情報の一覧11に従って、通し番号順に関数アド
レスを羅列した関数アドレステーブル(図7)を第1リ
ンカ3の内部で自動生成する。この際、各関数アドレス
に対して、リンク解決に必要な情報も生成するようにす
る。このような変更を行うことにより、関数アドレステ
ーブルを用いたレジスタ間接分岐を用いた代替実行が可
能である。なお、どちらのテーブルを用いるかは、生成
するアプリケーションプログラムを動作させるアーキテ
クチャの特性を考慮して判断する。
Next, in the step of generating the rewritable part load module, the branch table generation routine 7 of the first linker 3 generates a function address table (FIG. 7) in which function addresses are listed in order of serial numbers in accordance with the information list 11. Automatically generated inside one linker 3. At this time, information necessary for link resolution is also generated for each function address. By performing such a change, alternative execution using register indirect branching using a function address table is possible. Which table to use is determined in consideration of the characteristics of the architecture for operating the application program to be generated.

【0020】[0020]

【発明の効果】本発明によるフラッシュ内蔵マイコンの
プログラムリンク方法は、書換可能部分の固定アドレス
に分岐命令を配置する分岐テーブルを持ち、そこを介す
る二段階分岐により正しく動作するアプリケーションプ
ログラムがリンカにより自動生成され、アプリケーショ
ンプログラム開発時のユーザは、意識することなく、セ
ルフ書き換え機能を用いることができる。
The program linking method for a microcomputer with a built-in flash according to the present invention has a branch table for arranging a branch instruction at a fixed address of a rewritable portion, and an application program which operates correctly by two-stage branching through the table is automatically executed by the linker. A user who is generated and develops an application program can use the self-rewriting function without being aware of it.

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

【図1】図1は、本発明によるフラッシュ内蔵マイコン
のプログラムリンク方法の概念ブロック図である。
FIG. 1 is a conceptual block diagram of a program link method of a microcomputer with a built-in flash according to the present invention.

【図2】図2は、本発明によるフラッシュ内蔵マイコン
のプログラムリンク方法の実施の形態を示す回路ブロッ
ク図である。
FIG. 2 is a circuit block diagram showing an embodiment of a program link method for a microcomputer with a built-in flash according to the present invention.

【図3】図3は、本発明によるフラッシュ内蔵マイコン
のプログラムリンク方法の実施の形態のうち分岐修正ル
ーチンの動作を示すフローチャートである。
FIG. 3 is a flowchart showing an operation of a branch correction routine in the embodiment of the program link method of the microcomputer with a built-in flash according to the present invention.

【図4】図4は、本発明によるフラッシュ内蔵マイコン
のプログラムリンク方法の実施の形態のうち分岐テーブ
ル生成ルーチンの動作を示すフローチャートである。
FIG. 4 is a flowchart showing an operation of a branch table generation routine in the embodiment of the program link method of the microcomputer with a built-in flash according to the present invention.

【図5】図5は、関数呼出しの情報の一覧である。FIG. 5 is a list of function call information.

【図6】図6は、分岐テーブルである。FIG. 6 is a branch table.

【図7】図7は、関数のアドレスを示すテーブルであ
る。
FIG. 7 is a table showing function addresses;

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

1…書換可能部分(のアプリケーションプログラム) 2…書換不可能部分(のアプリケーションプログラム) 5…書換可能部分側ロードモジュール 6…書換不可能部分側ロードモジュール 7…分岐テーブル生成ルーチン 8…分岐先修正ルーチン 9…分岐テーブル 11…一覧 DESCRIPTION OF SYMBOLS 1 ... Rewriteable part (application program of) 2 ... Non-rewriteable part (application program of) 5 ... Reloadable part side load module 6 ... Rewriteable part side load module 7 ... Branch table generation routine 8 ... Branch destination correction routine 9 ... branch table 11 ... list

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】リンク未解決な関数呼び出しを書換可能部
分のロードモジュールに存在する関数への分岐命令とみ
なすこと、 分岐先を後記分岐テーブルに修正すること、 前記関数呼出しのリンク解決が終了した後に、前記修正
による分岐先の関数呼出しの情報の一覧を自動生成し、
書換不可能部分のロードモジュール内に保管すること、 前記情報に基づいて分岐テーブルを書換可能部分のロー
ドモジュールに自動生成することとからなるフラッシュ
内蔵マイコンのプログラムリンク方法。
1. A function call whose link has not been resolved is regarded as a branch instruction to a function existing in a load module of a rewritable part, a branch destination is corrected to a branch table to be described later, and link resolution of the function call has been completed. Later, automatically generate a list of function call information of the branch destination by the correction,
A program link method for a microcomputer with a built-in flash, comprising: storing in a load module of a non-rewritable part; and automatically generating a branch table in the load module of a rewritable part based on the information.
【請求項2】請求項1において、 前記一覧は、前記書換不可能部分のロードモジュールの
生成時のアプリケーションプログラムリンク時に、分岐
先修正ルーチンにより生成されるフラッシュ内蔵マイコ
ンのプログラムリンク方法。
2. The program link method according to claim 1, wherein the list is generated by a branch destination correction routine when an application program is linked when the load module of the non-rewritable portion is generated.
【請求項3】請求項1において、更に、 書換不可能部分のアプリケーションプログラムのリンク
時に未定義関数の呼出しがある場合に、分岐先修正ルー
チンにより、前記分岐テーブルを呼び出すことからなる
フラッシュ内蔵マイコンのプログラムリンク方法。
3. The microcomputer with built-in flash according to claim 1, further comprising, when an undefined function is called at the time of linking the non-rewritable part of the application program, calling the branch table by a branch destination correction routine. Program link method.
【請求項4】請求項3において、更に、 書換可能部分のアプリケーションプログラムのリンク時
に前記一覧を参照することからなるフラッシュ内蔵マイ
コンのプログラムリンク方法。
4. A program linking method for a microcomputer with a built-in flash according to claim 3, further comprising referring to the list when linking an application program of a rewritable portion.
【請求項5】請求項4において、 前記自動生成は、分岐テーブル生成ルーチンにより実行
されるフラッシュ内蔵マイコンのプログラムリンク方
法。
5. The method according to claim 4, wherein the automatic generation is performed by a branch table generation routine.
【請求項6】請求項1において、更に、 書換不可能部分のアプリケーションプログラムのリンク
時の前記情報を前記一覧に保管すること、 書換可能部分のアプリケーションプログラムを更新した
場合、前記一覧を参照して再び前記分岐テーブルを生成
することにより、書換可能部分の前記アプリケーション
プログラムをリンクして書換可能部分のロードモジュー
ルを生成することとからなるフラッシュ内蔵マイコンの
プログラムリンク方法。
6. The information processing apparatus according to claim 1, further comprising: storing the information at the time of linking the non-rewritable portion of the application program in the list; and referring to the list when updating the rewritable portion of the application program. A program linking method for a microcomputer with a built-in flash, comprising: linking the application program in a rewritable portion to generate a load module in a rewritable portion by generating the branch table again.
JP27251999A 1999-09-27 1999-09-27 Program link method of microcomputer with built-in flash Expired - Fee Related JP3542529B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27251999A JP3542529B2 (en) 1999-09-27 1999-09-27 Program link method of microcomputer with built-in flash

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27251999A JP3542529B2 (en) 1999-09-27 1999-09-27 Program link method of microcomputer with built-in flash

Publications (2)

Publication Number Publication Date
JP2001100984A true JP2001100984A (en) 2001-04-13
JP3542529B2 JP3542529B2 (en) 2004-07-14

Family

ID=17515036

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27251999A Expired - Fee Related JP3542529B2 (en) 1999-09-27 1999-09-27 Program link method of microcomputer with built-in flash

Country Status (1)

Country Link
JP (1) JP3542529B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102005053847B4 (en) * 2005-04-29 2013-11-14 Mediatek Inc. Storage arrangement method and system
WO2018100633A1 (en) * 2016-11-29 2018-06-07 三菱電機株式会社 Control device and program update method
JP2019219995A (en) * 2018-06-21 2019-12-26 日本電気通信システム株式会社 Information processing apparatus, load module generating method and program, and dynamic program updating system and method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102005053847B4 (en) * 2005-04-29 2013-11-14 Mediatek Inc. Storage arrangement method and system
WO2018100633A1 (en) * 2016-11-29 2018-06-07 三菱電機株式会社 Control device and program update method
JPWO2018100633A1 (en) * 2016-11-29 2019-03-14 三菱電機株式会社 Control device and program update method
JP2019219995A (en) * 2018-06-21 2019-12-26 日本電気通信システム株式会社 Information processing apparatus, load module generating method and program, and dynamic program updating system and method
JP7081805B2 (en) 2018-06-21 2022-06-07 日本電気通信システム株式会社 Information processing equipment, load module generation methods and programs, and dynamic program update systems and methods

Also Published As

Publication number Publication date
JP3542529B2 (en) 2004-07-14

Similar Documents

Publication Publication Date Title
CN102486733B (en) The upgrade method of boot and device
JP3542529B2 (en) Program link method of microcomputer with built-in flash
JP2526686B2 (en) Method of modifying program contents in control program of programmable controller
EP3584697B1 (en) Information processing device
JPH0371232A (en) Electronic equipment
JPH09198243A (en) Information processor
JP2004126658A (en) Processor system
JPH0876990A (en) Control circuit for camera
JP2004078294A (en) Signal processor
JPH06314190A (en) Electronic device
JPH08194614A (en) Microcomputer
JP2005332228A (en) Program switching controller
CN116302626A (en) Replacement repair method for embedded equipment and ROM function
JPH09288655A (en) Processor extension method
JPH0759129A (en) Loading system and addressing system
JPH05150983A (en) Program calling method
JPH03100730A (en) Method for emergency correction data generation processing with high grade language
JPH05204654A (en) Start-up program updating system for cpu incorrorating device
JPH05150972A (en) Program correcting system
JP2000276348A (en) One-chip microcomputer, having built-in flash memory for repairing program
JPH08185319A (en) Microcomputer and its program correction method
JPH10232772A (en) Program changing device
JPH05119996A (en) Program generation device
JPH02310627A (en) Link method for object program in language processing programming
JPH05334070A (en) Correction system for operating system

Legal Events

Date Code Title Description
TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040304

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040331

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080409

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090409

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100409

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110409

Year of fee payment: 7

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110409

Year of fee payment: 7

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120409

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120409

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130409

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140409

Year of fee payment: 10

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees