AnsweredAssumed Answered

Linker Error in Codewarrior

Question asked by Yomi Oyefesobi on May 21, 2014
Latest reply on May 23, 2014 by stanish

Hi ,

   I'm getting the error below when i build my project. I can't seem to find how to solve this. Can someone please tell me what I'm doing wrong? I've included all the files where the said functions are declared and referenced. I've also attached the code.

 

 

 

 

 

**** Build of configuration MCF51JM128_Internal_Flash for project mcf51jm128_demo ****

 

 

"C:\\Freescale\\CW MCU v10.6\\gnu\\bin\\mingw32-make" -j8 all

'Building target: mcf51jm128_demo.elf'

'Executing target #19 mcf51jm128_demo.elf'

'Invoking: ColdFire Linker'

"C:/Freescale/CW MCU v10.6/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf" -o "mcf51jm128_demo.elf" @@"mcf51jm128_demo.args" 

C:/Freescale/CW MCU v10.6/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Error

>Undefined : "eMBRegCoilsCB"

>Referenced from "eMBFuncWriteMultipleCoils" in

C:/Freescale/CW MCU v10.6/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Error

>Undefined : "eMBRegDiscreteCB"

>Referenced from "eMBFuncReadDiscreteInputs" in

C:/Freescale/CW MCU v10.6/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Error

>Undefined : "eMBRegHoldingCB"

>Referenced from "eMBFuncReadWriteMultipleHoldingRegister" in

C:/Freescale/CW MCU v10.6/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Error

>Undefined : "vMBPortSerialEnable"

>Referenced from "eMBRTUSend" in

C:/Freescale/CW MCU v10.6/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Error

>Undefined : "vMBPortSerialEnable"

>Referenced from "xMBRTUTransmitFSM" in

C:/Freescale/CW MCU v10.6/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Error

>Undefined : "xMBPortSerialGetByte"

>Referenced from "xMBRTUReceiveFSM" in

C:/Freescale/CW MCU v10.6/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Error

>Undefined : "xMBPortSerialInit"

>Referenced from "eMBRTUInit" in

C:/Freescale/CW MCU v10.6/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Error

>Undefined : "xMBPortSerialPutByte"

>Referenced from "xMBRTUTransmitFSM" in

C:/Freescale/CW MCU v10.6/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Error

>Link failed.

 

 

Errors caused tool to abort.

mingw32-make: *** [mcf51jm128_demo.elf] Error 1

 

 

 

Update:

I added HCS08 to the environment and that took care of the undefined errors. Still have a few errors to contend with though. Any assistance would be appreciated. Below are the rrors I'm still dealing with. Thanks

 

 

 

 

 

**** Build of configuration MCF51JM128_Internal_Flash for project mcf51jm128_demo ****

 

 

"C:\\Freescale\\CW MCU v10.6\\gnu\\bin\\mingw32-make" -j8 all

'Building target: mcf51jm128_demo.elf'

'Executing target #18 mcf51jm128_demo.elf'

'Invoking: ColdFire Linker'

"C:/Freescale/CW MCU v10.6/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf" -o "mcf51jm128_demo.elf" @@"mcf51jm128_demo.args" 

C:/Freescale/CW MCU v10.6/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Usage|Error

>No library file found matching 'libC:/Freescale/CW MCU v10.6/MCU/

>prog{.dylib|.a}' or 'C:/Freescale/CW MCU v10.6/MCU/prog'

mingw32-make: *** [mcf51jm128_demo.elf] Error 1

Original Attachment has been moved to: mcf51jm128_demo.zip

Outcomes