Linker error when trying to use interrupt vector for MC9S12DG255

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Linker error when trying to use interrupt vector for MC9S12DG255

跳至解决方案
805 次查看
AirDragon
Contributor III

I need to generate 110Hz and 50Hz periodic interrupts so that I can run a fuzzy logic controller designed for use on a small quadrotor.

 

I've made a similar clock scheme for an advanced lab assignment that uses the ECT to generate the needed interrupts at the specified time intervals and was succesful. However, that project used asmIDE and non-relocatable assembly to do this.

 

For the quadrotor, I decided to try using CodeWarrior to make the program in C/C++, to which I have very little experiance with either.

 

I've managed to get a majority of the hardware requirements fullfilled, but when it comes to declaring the interrupt vector table I get a linker error: "L1822: MCU_init__fv not in C:\...\main.cpp.o not defined"

 

I get this message even with a clean project (included) made by the startup wizard, using the same desired hardware initializations.

 

I am using the Device Initialization wizard, CodeWarrior 5.9.0 build 5294 Special Edition

 

P.S. Accidentally posted in the hardware issue forum earlier :smileyindifferent:

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
515 次查看
AirDragon
Contributor III

Yes, that was the case.

 

Aparently the Initialization Device wizard (which I think is a part of the Processor Expert) in this version of CW only works with C or assembler.

 

Now, on to other issues...

在原帖中查看解决方案

0 项奖励
回复
2 回复数
515 次查看
AirDragon
Contributor III

I might've solved this one myself...

 

I made another test project that used only C (not C++) and relocatable assembly and did not have the initialization error.

 

I'll migrate C copies of the AirDragon project and see if that will work.

0 项奖励
回复
516 次查看
AirDragon
Contributor III

Yes, that was the case.

 

Aparently the Initialization Device wizard (which I think is a part of the Processor Expert) in this version of CW only works with C or assembler.

 

Now, on to other issues...

0 项奖励
回复