Forums: Help (Thread #5821)

CRE_FLGを記述すると割込みがマスクされます? (2004-08-21 15:44 by Anonymous #10696)

SH-2でHOSを利用させていただきたい初心者です。
よろしくお願いいたします。

コンフィグレーションファイルでCRE_FLGでフラグを生成すると割込みがマスクされたままタスクが起動します。記述をコメントにすると割込みはマスクされずタイマ割込みが発生できるようになります。

_hospac_ena_int の_hopac_sh_imskの値が異なっているところまではわかったのですが、何か考えられる原因がありますでしょうか。

Reply to #10696×

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: CRE_FLGを記述すると割込みがマスクされます? (2004-08-21 16:20 by hamayan #10698)

SH2を、ルネサスコンパイラver.7で使用していますが、コンフィギュレーションファイルにCRE_FLGを記述しても、特にその様な現象は発生していません。

ところで、システムタイマの割込みレベルは、優先度を高くしていますか?。
Reply to #10696

Reply to #10698×

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: CRE_FLGを記述すると割込みがマスクされます? (2004-08-21 16:47 by Anonymous #10699)

ご回答ありがとうございます。
タイマの優先度は最高位15にしています。

メールボックス、セマフォを生成しても現象は発生しないのですが、フラグの記述で発生してしまいます。

ヒープサイズ、初期スタック領域、割込みスタックなどを変更しましたがフラグの記述でタスク起動時のステータスフラグのマスク値がFになってしまいました。

処理系はexeGCCを使用しスタートアップルーチンを変更していますので、再度よく見直します。
ありがとうございました。
Reply to #10696

Reply to #10699×

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: 付属のサンプルプログラムではOKでした。 (2004-08-21 17:11 by Anonymous #10700)

すみません、ちなみに、同じスタートアップルーチンを使った付属のサンプルプログラムではこの現象は発生しませんでした。
よくみなおします。お手数おかけしたしました。




Reply to #10696

Reply to #10700×

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

すみません、私の単純な間違いでした。HOSはすばらしい。 (2004-08-22 21:08 by Anonymous #10709)

私の初歩的な間違いでした。フラグ生成でIDのところにIDを定義せずに(定数)数値を記述したためでした。
現在は軽快に動いています。HOSの便利さに今は感動しています。すばらしいソフトウェアをありがとうございます。
Reply to #10696

Reply to #10709×

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: すみません、私の単純な間違いでした。HOSはすばらしい。 (2004-08-23 21:28 by hamayan #10714)

HOSの便利さ、と言うかITRONと言うか、RTOSって便利ですよね。
私もHOSではなかったのですが、初めてITRONを使った時、感動しました。今までシングルタスクでプログラミングしていましたが、もう世界観が変りましたね。
リソースの小さなマイコンで無い限り、もうシングルタスクには戻れません。
大は小を兼ねる。マルチタスクはシングルタスクを兼ねる!。と言った感じでしょうか。
Reply to #10709

Reply to #10714×

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