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,564 次查看
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,079 次查看
Mr_Freez
Contributor II
Thanks! that app note solved numerous problems...

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,079 次查看
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,079 次查看
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,080 次查看
Mr_Freez
Contributor II
Thanks! that app note solved numerous problems...
0 项奖励
回复