AnsweredAssumed Answered

mwldmcf.exe linker error for coldfire mcf52211(codewarrior v7.2)

Question asked by Suresh Andhe on Feb 12, 2013
Latest reply on Feb 14, 2013 by CrasyCat

I am getting the following linker error when i try to make a command line build(using makefile) for coldfire mcf52211 using codewarrior v7.2:

C:\\"Program Files"\Freescale\\"CodeWarrior for ColdFire V7.2"\ColdFire_Tools\Command_Line_Tools\mwldmcf.exe
-processor MCF521X -msgstyle gcc -lavender model="ewl",print="int",scan="int",io="buffered" -main "__startup"
-force_active '__vect','__cfm' -sreclength 32 -breclength 252 -sreceol unix -keeplocal off -nodeadstrip -listing
-show all -warn on -g  lcf\MCF52211_INTERNAL_FLASH.lcf
... list of object files ...
-o bin\MCF52211_INTERNAL_FLASH.elf
mwldmcf.exe: warning: Specified file 'v2\libm.a' not found
mwldmcf.exe: warning: Specified file 'v2\libc.a' not found
mwldmcf.exe: warning: Specified file 'v2\librt.a' not found
mwldmcf.exe: warning: Specified file 'fp_coldfire.a' not found
mwldmcf.exe: unable to find EWL lib:
mwldmcf.exe: v2\libm.a

I set the following environment variables but for some reason linker is not able to find the library path:

CWFolder       :  'C:\Program Files\Freescale\CodeWarrior\CodeWarrior for ColdFire V7.2'
CWINSTALL      :  'C:\Program Files\Freescale\CodeWarrior for ColdFire V7.2'
LM_LICENSE_FILE:  %CWFolder%\license.dat
MWCIncludes    :  %CWFolder%\ColdFire_Support\ewl\EWL_C\Include; %CWFolder%\ColdFire_Support\ewl\EWL_C\Include\sys
MWLibraries    :  %CWFolder%\ColdFire_Support\ewl\lib

Any help to resolve this issue?

Outcomes