Forums: Help (Thread #2764)

H8S2000について (2003-06-06 12:43 by Anonymous #4940)

はじめまして堀と申します。
ハード設計をずっとやっているのですが、最近ソフトに興味を持ちました。簡単なソフトなら書けるように
なったのですが、OSを使ってみたいと思います。
あいにく手元にH8S2350のボードしかないんですけど、
HOSはH8Sには対応してないみたいです。
ソースを読み始めましたが、全然分かりません。
H8Sで動いた実績のあるソースまたはアドバイスを
お願い致します。

Reply to #4940×

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: H8S2000について (2003-06-06 16:23 by ryuz #4941)

 はじめまして、Ryuzと申します。

 とりあえず今のところ私はH8Sでの動作例を知りません。
# どなたかありますか?

 H8S自体はH8/300Hの上位命令互換なので移植自体は
可能だと思います。
 H8Sの場合は積和用のレジスタがいますのでこれの
退避復帰が必要ですが、後はコンパイルオプションの
変更と、スタートアップルーチンの自作ぐらいで
しょうか?
 ただ、上記が一番クセのある部分ですので、仕組みを
つかんでいないとちょっとつらいかもしれません。

 手元にH8Sの環境が無いのでこの程度の助言しか
出来ないです。
 申し訳ありません。
Reply to #4940

Reply to #4941×

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: H8S2000について (2003-06-06 18:47 by m-arai #4942)

m-araiです。

h_sudouさんが、移植、動作確認まで行っておられるようです。
https://sourceforge.jp/forum/message.php?msg_id=3821
ターゲットはH8S/2636(2638)ですが。

>H8Sの場合は積和用のレジスタがいますのでこれの
>退避復帰が必要ですが

MACレジスタ及び命令は2600シリーズのみなので、2350では
この点は不要のようです。

マニュアルに
>そのほか、製品によって、アドレス空間やCCR 、EXRの
>機能、低消費電力状態などが異なる場合があります。
なんて書いてありました。アドレス空間はともかく、
CCR/EXRって…。

色々なバリエーションがあるみたいなので、結構個々の
対応が必要な場合が多いかもしれませんね。

割込みモード0だったら、殆ど300Hのままでいけそうな
感がします。モード1でも、CCRをEXRに置換するほかは、
あまりないのかな?
Reply to #4941

Reply to #4942×

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: H8S2000について (2003-06-09 08:52 by ryuz #4954)

 Ryuzです。
 すみません。DeveloperフォーラムのモニタがOFFに
なってました(半泣)。

 話についていけてないと思ったら...

> MACレジスタ及び命令は2600シリーズのみなので、2350では
> この点は不要のようです。

 そおだったのですね。H8Sには全部ついているのかと
思ってました(--;; > 積和機能

 とんちんかんなレスをつけてしまい申し訳ないです。

Reply to #4942

Reply to #4954×

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: H8S2000について (2003-06-08 16:36 by h_sudou #4950)

以前、H8S/2638に移植をしました。
今も使い続けていますが快調です。移植した時の投稿では、
ちゃんと考えてソフトを作れば、割り込みモード0で問題ないので、
モード1は無視するような事を書いた覚えがありますが、
その後、思い直してモード1でEXRを使った物に作り直し
ました。
pacctx.srcの対応でほぼ出来上がりです。

あと、MACレジスタの件ですが、H8S/26xx用のpacctx.src
からMACH、MACLに関する部分をカットすればできるはず。
2638でもMAC命令を使わなければ、同じことなのでテスト
もできると思います。(やってみましょうか?)

公開するのは一向に構わないんですが、なかなか時間がとれなくて、、
今使っているコード一式をどなたかにお送りして、公開の
作業を代行していただけると嬉しいんですが・・
Reply to #4940

Reply to #4950×

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: H8S2000について (2003-06-08 17:58 by m-arai #4951)

お待ちしていました。B-)

適当にアーカイブして、Patchesに投げて戴いても、私
にメールして戴いてもOKです。


MACについてなんですが、gccであれば保存復帰のケア
が必要なのはpacintの方ではないでしょうか?関数呼出
を跨いで保存しなくても良いものですよね。
#define REGISTER_NAMES \
{ "r0", "r1", "r2", "r3", "r4", "r5", "r6", "sp", "mac", "ap", "rap" }

#define CALL_USED_REGISTERS \
{ 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1 }
ですから。


そういえば、堀さんの開発環境は何でしょうか。
問題はCの仕様(引数の渡し方、レジスタ保存則)なの
ですが。

また、pacctx/pacintのH8S/2350対応だけでなく、
ターゲットボードに応じたメモリマップ情報、バスコ
ントローラ初期化、タイマ設定(、シリアル速度設定)
等も実際に動かすには必要になります。
Reply to #4950

Reply to #4951×

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: H8S2000について (2003-06-09 11:03 by Anonymous #4955)

早速のレスありがとうございます。
開発環境は日立純正コンパイラでVER3.0Cです。
宜しくお願い致します。
Reply to #4940

Reply to #4955×

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: H8S2000について (2003-06-10 18:56 by m-arai #4965)

お待ちしているだけでは何なので、
https://sourceforge.jp/tracker/index.php?func=detail&aid=2311&group_id=183&atid=780

読んで戴ければお分かりになると思いますが、とにかく
そういうことです。
繋ぎ、あるいは議論の呼び水と考えて下さい。
Reply to #4955

Reply to #4965×

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

H8S2000で日立3.0対応について (2003-06-10 19:19 by h_sudou #4968)

私は、日立の最新版のコンパイラをコマンドラインで使ってます。Ver3.0も持っているので対応可能です。その上で、m-araiさんにお願いして公開して頂こうかと思います。
Reply to #4940

Reply to #4968×

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: H8S2000で日立3.0対応について (2003-06-10 21:07 by m-arai #4970)

おまちしています。

最初はPatchesに上げて皆さんのご意見や動作確認などを
いただくことになると思います。
Reply to #4968

Reply to #4970×

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: H8S2000で日立3.0対応について (2003-06-11 12:16 by Anonymous #4985)

こんにちは、堀です。

m-araiさんがあげてくれたパッチを当てて動かしてみました。

・H8S2000、割込モード0固定です
 アセンブラのオプションとAIFDEFは外しました。(なぜかエラーになるので)
・ライブラリ作成はoptlnkでなく日立のライブラリアンを使いました
・stm.l、ldm.l命令のレジスタを( )で囲いました(エラーがでたため)
・pacints.srcの600行目、@+spを@sp+に修正(誤記)
・スタートアップルーチンのバスコントローラ設定
・タイマ初期化にMSTPCRレジスタの設定を追加
 (これを忘れるとレジスタが設定されないので)
・サンプルのSCIは使ってません(ノートPCにCOMポートがないため)
 手持ちの基板のブザーを鳴らしてみました

act_tsk、dly_tsk、slp_tsk、ter_tsk、slp_tsk、wup_tskと
タスク関係のサービスコールしか使っていませんが、
タスクを2個にして動作確認できました。

とり急ぎ、ご報告まで。
Reply to #4970

Reply to #4985×

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: H8S2000で日立3.0対応について (2003-06-11 19:38 by m-arai #4988)

ほう!やはり穴だらけだったようですが、動きましたか。
色々と試して検証していただければありがたいです。
チューンの余地もあり余るほどあるでしょう。

あと、差し支えなかったら、直したものを
[ #2311 ] [HOS-V4] H8S対応
の方に上げる(ページ下の[添付ファイル]で出来ます)か、
メールで送っていただけますか?

後はh_sudouさん版ですね。モード1割込みや26での動作
は重要です。
Reply to #4985

Reply to #4988×

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: H8S2000で日立3.0対応について (2003-06-12 23:13 by m-arai #5001)

トラッキングへのファイル添付は、登録者しか出来なかっ
たようです。失礼しました。
Patchesに上げる場合は「新規登録」から行っていただく
ことになりますね。

また、メールで私にお送り下さる場合は、
  m-arai@users.sourceforge.jp
宛てでお願いします。
Reply to #4988

Reply to #5001×

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: H8S2000で日立3.0対応について (2003-06-19 19:37 by m-arai #5033)

h_sudouさんからHOS-V4 H8S/2600対応のファイルと
アプリケーションプログラム例を送っていただきました。

HOS本体の対応部分についてはかなり早い段階でPatches
の[ #2311] [HOS-V4] H8S対応に上げられると思います。
プログラム例については公開の方法について少し検討
しますので、しばらくお待ち下さい。
Reply to #5001

Reply to #5033×

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