hi CrasyCat,
Thanks for the quick reply. But I am using an evaluation version.I cannot find batch files here.
This is the procedure i followed. Please tell me if anything else is needed.
1) I have opened a sample project for MCF522111. Built it and executed succesfully on IDE.
2) I have compiled the sample main.c from command line to generate main.o with options:
mwccmcf -c -v main.c (is this enough?)
3) I am using only the default ".LCF" file given in project directory.
I have used the following in command line:
mwldmcf -nodefaults -g -proc MCF5221x –map “C:\Program Files\Freescale\CodeWarriorV6.4\(CodeWarrior_Examples)\new\sources\M52211EVB_CONSOLE.lcf" main.o E68k_Startup.o mcf52211_startup.o -L"C:\Program Files\Freescale\CodeWarriorV6.4\E68K_SUPPORT\Libraries"
-L"C:\Program Files\Freescale\CodeWarriorV6.4\E68K_SUPPORT\Runtime"
-L"C:\Program Files\Freescale\CodeWarriorV6.4\E68K_SUPPORT\msl\MSL_C\MSL_E68k\Lib" -lfp_coldfire.o -lC_4i_CF_Runtime.a -lC_4i_CF_MSL.a
But i am getting errors like:
mwldmcf: between 0x00000000 and 0x00007FFF or 0xFFFF8000 and 0xFFFFFFFF in memory
mwldmcf: Illegal 16-bit absolute address reference to symbol '__START_SBSS'
mwldmcf: between 0x00000000 and 0x00007FFF or 0xFFFF8000 and 0xFFFFFFFF in memory
mwldmcf: Illegal 16-bit absolute address reference to symbol '__END_SBSS'
mwldmcf: between 0x00000000 and 0x00007FFF or 0xFFFF8000 and 0xFFFFFFFF in memory
mwldmcf: Illegal 16-bit absolute address reference to symbol '__START_BSS'
mwldmcf: between 0x00000000 and 0x00007FFF or 0xFFFF8000 and 0xFFFFFFFF in memory
mwldmcf: Illegal 16-bit absolute address reference to symbol '__START_BSS'
Please help.