AnsweredAssumed Answered

Linker error when trying to use interrupt vector for MC9S12DG255

Question asked by Allen Babb on Jul 11, 2011
Latest reply on Jul 12, 2011 by Allen Babb

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:

Outcomes