Can't get interrupt vector to link into my application on MC9S08

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Can't get interrupt vector to link into my application on MC9S08

ソリューションへジャンプ
2,499件の閲覧回数
Mr_Freez
Contributor II

Hello

I am having a problem getting my linker to not dead-strip my interrupt service routine out of my application code.  I have searched the forum for similar posts and many refer to either using FORCE_ACTIVE in my linker command file OR using #pragma force_active on around my isr.

I have tried all of these and nothing works.  I believe that the problem is syntax??

Does anyone have any suggestions?  You'd think this would be well documented somewhere??

 

Thanks

Rich

ラベル(1)
0 件の賞賛
返信
1 解決策
1,014件の閲覧回数
Mr_Freez
Contributor II
Thanks! that app note solved numerous problems...

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
1,014件の閲覧回数
CompilerGuru
NXP Employee
NXP Employee

For the S08 the prm file command to add reference roots is ENTRIES.

E.g. "ENTRIES main Table END "

 

FORCE_ACTIVE or the force_active pragma are supported for the ColdFire architecture, check for which architecture a particular forum entry is. The ENTRIES topic came up often for the S08 too in the past.

 

Daniel

0 件の賞賛
返信
1,014件の閲覧回数
bigmac
Specialist III

Hello Rich, and welcome to the forum.

 

There are a number of possibilities available for coding interrupts.  Application note AN2616 briefly describes some of them (within the FAQ section).

 

Perhaps you might alternatively use the PE device initialisation tool when you create the project.  This will provide a framework for your interrupts, including generating a vector table.

 

Regards,

Mac

 

0 件の賞賛
返信
1,015件の閲覧回数
Mr_Freez
Contributor II
Thanks! that app note solved numerous problems...
0 件の賞賛
返信