Hi Ajays,
I will explain to you what I have done to make CodeWarrior work with RTRT. I’m not very experienced with CodeWarrior neither, so you may need to look further. I would say, however, that your problem comes from the vector table defined in your LCF file.
But before starting, the first question is if you have a working project with the IDE. If the answer is no, you will need to make things work.
Once you have a project working with the IDE, you have all the elements. For the compilation, what I do is:
mwccmcf -c -pragma "mpwc_relax on" -gccext on -nodefaults -msgstyle gcc -gccinc -ppopt line,full,space -g -model far -abi compact -proc MCF5282 -inline off -I"<include_paths>" "C:\main.c" -o "main.o"
Like this for all your C files (you may also need to use the assembler if you have some files also). For the linking, you need to use the following command:
mwldmcf -nodefaults -msgstyle gcc -g -proc MCF5282 -map "C:\PROGRA~1\Rational\TESTRE~1\targets\CWARRI~2\CW\PF08476.lcf" "<O files>" -o ".\cwarrior_coldfire_t32_common_bootloader\bootloader.elf" -L"C:\Program Files\Freescale\CodeWarrior for ColdFire V6.3\E68K_Support\Runtime" -L"C:\Program Files\Freescale\CodeWarrior for ColdFire V6.3\E68K_Support\Libraries" -L" C:\Program Files\Freescale\CodeWarrior for ColdFire V6.3\E68K_Support\Runtime" -L"C:\Program Files\Freescale\CodeWarrior for ColdFire V6.3\E68K_Support\msl\MSL_C\MSL_E68k\Lib" -lfp_coldfire.a -lC_4i_CF_Runtime.a -lC_4i_CF_MSL.a
You need to be sure that you will pass to the linker as many files as you have in the “Link Order” tab of your IDE for your working project.
It’s not an easy task to make RTRT work with CodeWarrior, but it’s not impossible.
Good luck,
Javier