Forums: Help (Thread #3210)

H8/3687へのHOS-V4の利用について質問 (2003-08-18 20:40 by Anonymous #5633)

はじめまして
H8などマイコンについてまったくの初心者です。
HOS-V4について勉強させてもらっています。

AKI-H8/3664の上で、HOS-V4:sample/h83nを動いていますが、そのサンプルをH8/3687に移行すると、うまくいきません。

メインルーチンやシリアル通信などは動きましたが、
TRONのタスクが起動しないようです。
タイマーについては、タイマーAからタイマーB1に、
タイマーWからタイマーZに置き換えています。

割り込みベクター(vector.s)やリンクスクリップト(h83687.x)などに
何か特に気をつけないといけないものがありますか

アドバイスをお願いいたします。
よろしくお願いします。

Reply to #5633×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: H8/3687へのHOS-V4の利用について質問 (2003-08-18 21:28 by m-arai #5634)

はじめましてNoneさん(^^;。

まず、H8の品番とコンパイラを確認させてください。
H8/3687ではなく、H8/3867ではありませんか?
リンカスクリプトということから、お使いのコンパイラは
gccであると推察されますが、バージョンは何でしょう?
3.3より前のものにはノーマルモード対策が必要ですが、
それは施されたものですか?

3867であるとすれば、データシートのメモリマップを見た
限りでは、リンカスクリプトは3664用のままでも一応
問題はありません。割込みベクター部も3867の方が小さい
ので、そのままでも構わないでしょう。
また、ATT_ISRに与える割込み番号は適切でしょうか?

おや、3867にはタイマA,C,G,FH,FLとウオッチドッグ、
非同期イベントしか無いですね…B1とZ?…3867ではない
のでしょうか?
Reply to #5633

Reply to #5634×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: H8/3687へのHOS-V4の利用について質問 (2003-08-23 17:57 by Anonymous #5670)

m-araiさん、
早速のアドバイス、ありがとうございます。
私が使っているH8は3687です。
開発環境はLinuxのgcc3.2です。
3664ではノーマルモードで動いていますので、
恐らく問題ないと思います。
タイマーはB1だけを使っていて、Zは使っていませんでした。
すなわち、割り込み19番を29番に変えてだけです。
よろしくお願いします。
Reply to #5633

Reply to #5670×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: H8/3687へのHOS-V4の利用について質問 (2003-08-23 18:42 by m-arai #5671)

失礼、何故か前回ルネサスのサイトを漁った時は、3687に
辿りつけませんでした。

割込みベクターの違いから、取り敢えず以下のような対処
が必要と思われます。

sample/h83n/system.cfg

-HOS_MAX_INTNO(23); /* 使用する割り込み番号の最大値(省略時 0)
+HOS_MAX_INTNO(32); /* 使用する割り込み番号の最大値(省略時 0)


sample/h83664.x

- vectors : o = 0x0000, l = 0x0034
+ vectors : o = 0x0000, l = 0x0042

sample/vector.s
.word _hos_vector025
+ .word _hos_vector026
+ .word _hos_vector027
+ .word _hos_vector028
+ .word _hos_vector029
+ .word _hos_vector030
+ .word _hos_vector031
+ .word _hos_vector032

src/h83/gcc/pacintn.s

.global _hos_vector025
+ .global _hos_vector026
+ .global _hos_vector027
+ .global _hos_vector028
+ .global _hos_vector029
+ .global _hos_vector030
+ .global _hos_vector031
+ .global _hos_vector032
+_hos_vector026: push.w r0
+ mov.b #26, r0l
+ bra int_handler:16
+_hos_vector027: push.w r0
+ mov.b #27, r0l
+ bra int_handler:16
+_hos_vector028: push.w r0
+ mov.b #28, r0l
+ bra int_handler:16
+_hos_vector029: push.w r0
+ mov.b #29, r0l
+ bra int_handler:16
+_hos_vector030: push.w r0
+ mov.b #30, r0l
+ bra int_handler:16
+_hos_vector031: push.w r0
+ mov.b #31, r0l
+ bra int_handler:16
+_hos_vector032: push.w r0
+ mov.b #32, r0l
+ bra int_handler:16

おそらく、これで3664との割込み部分の相違点は解決
するでしょう。ROM/RAM、分岐の:8化などもありますが、
まずはsampleが動いてからということで。
Reply to #5670

Reply to #5671×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: H8/3687へのHOS-V4の利用について質問 (2003-08-23 18:58 by m-arai #5672)

これも必要でした。

sample/h83n/h83664.x

- rom : o = 0x0034, l = 0x7fcc
+ rom : o = 0x0042, l = 0xdfbe
Reply to #5671

Reply to #5672×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: H8/3687へのHOS-V4の利用について質問 (2003-08-23 21:25 by hamayan #5674)

お世話になっています。
m-araiさん、ご苦労様です。

そうですね、HOS-V3では、コンフィギュレーターが割込みベクターを生成していましたが、HOS-V4は静的に用意されていますので、その部分で今後、同じ問題が発生する可能性が有りますね。

HOS-V3のコンフィギュレーターを基に、適応化のツールが有っても良いかも知れませんね。
Reply to #5672

Reply to #5674×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: H8/3687へのHOS-V4の利用について質問(再々) (2003-08-23 22:37 by Anonymous #5675)

m-araiさん、
ありがとうございます。

pacintn.Sの中に、
_hos_vector024: -> bra int_handler
_hos_vector025: はbra文をつけて、言われたとおり、
_hos_vector026から032まで、bra int_handler:16、
および、bra int_handler:8をつけて、
コンパイルした結果、リンク時にエラーが出ました。
「libh4h83n.a(pacint.o): pacintn.S:9: relocation truncated to fit: DISP8 int_handler+ffffffff」
いくつか似たようなエラーメッセージが出ました。

よろしくお願いします。
Reply to #5633

Reply to #5675×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: H8/3687へのHOS-V4の利用について質問(再々) (2003-08-23 22:52 by m-arai #5676)

>_hos_vector024: -> bra int_handler
>_hos_vector025: はbra文をつけて、言われたとおり、
>_hos_vector026から032まで、bra int_handler:16、
>および、bra int_handler:8をつけて、

実際に何をなさったのか、ちょっとこれでは分からない
のですが…pacintn.Sの変更部分は、そのまま
.global _hos_vector025
の直後に挿入してください。

エラーは、:8で指定された分岐が、その範囲を超えている
ために出ています。
Reply to #5675

Reply to #5676×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: H8/3687へのHOS-V4の利用について質問(再々) (2003-08-23 22:54 by hamayan #5677)

よくよく見てみると、

16bitディスプレイスメントが必要なのは、
int_handler1:と、
_hos_vector005から_hos_vector012辺りではないでしょうか。
追加分は逆に8bit指定でも構わない様な。
Reply to #5675

Reply to #5677×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: H8/3687へのHOS-V4の利用について質問(再々) (2003-08-23 23:01 by m-arai #5678)

修正したり追加したりする箇所が多いとミスが発生しや
すいので、まずは最小限度の操作で実行できる方法をとる
べきだと思います。効率とか見た目は後でいくらでも。

まぁ大して変わりはないとも言えますけどね。
Reply to #5677

Reply to #5678×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: 【動きました!!】H8/3687へのHOS-V4の利用について質問(再々) (2003-08-23 23:42 by Anonymous #5679)

m-araiさん、
ありがとうございました。
H8/3687は動きました。

しかし、Windows版のコンパイル(Renesas-h8300-coff-gcc v0303)ではやはり動きませんでした。
Linuxのコンパイルで(GCC3.2)では動きました。

今後ともよろしくお願い申し上げます。
Reply to #5678

Reply to #5679×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: 【動きました!!】H8/3687へのHOS-V4の利用について質問(再々) (2003-08-23 23:54 by m-arai #5680)

おめでとうございます。

しかし、その動くオブジェクトが出来なかった
「Windows版」というのが気にかかりますね。

日立コンパイラ等の製品と違って、どういう風に作られた
ものなのか、必ずしも特定できないというのは、gccの抱え
る宿命でしょうか。configureのパラメータくらいなら-v
オプションで分かりますが、それだってどんな細工が加え
られているか分かりませんからね。
Reply to #5679

Reply to #5680×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: 今度はH8S/2633へのHOS-V4の利用について質問 (2003-08-24 21:41 by Anonymous #5686)

お世話になっています。

HOS-V4を用いて、H8Sの開発環境の作り方を
教えてください。
(H8/2633チップを使っています)

よろしくお願いします。
Reply to #5633

Reply to #5686×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login