In this post i am going to explain how to compile an elf executable for m5485 board..
WHY ECLIPSE???
Eclipse is a general purpose IDE that can be configured to be used with many applications. The IDE generally used is the Freescale's propriety CodeWarrior which is only available in Evaluation version. But the power of eclipse has been accepted by the fact that the latest CodeWarrior has been released in Eclipse version. This has inspired me to port it to ordinary Eclipse.
The important thing we must have is Eclipse CDT IDE. I am using the Indigo version for this example which can be downloaded here. Also we require a toolchain to compile the code which we can download from here. It is a version for Sourcery CodeBench Lite for ColdFire GNU/Linux which is free. We must either use an Windows or Linux OS here. Here i am explaining for Windows XP.
Coldfire eclipse configuration from rinosh1989 on Vimeo.
for more visit my blog at http://super-ibot.blogspot.com/2011/11/using-eclipse-to-compile-for-for.html
these are values i have used:-
for includes:-
${ToolChain}\CodeSourcery_Linux\lib\gcc\m68k-linux-gnu\4.3.2\include-fixed
${ToolChain}\CodeSourcery_Linux\m68k-linux-gnu\libc\usr\include
${ToolChain}\CodeSourcery_Linux\m68k-linux-gnu\include
${ToolChain}\CodeSourcery_Linux\lib\gcc\m68k-linux-gnu\4.3.2\include
for gcc location
${ToolChain}\CodeSourcery_Linux\bin
prefix values is "m68k-linux-gnu-" without quotes..
${MCPU}=5485 // Change this according to your board
${ToolChain}=C:\Program Files\Freescale\CW MCU v10.1\Cross_Tools //Change this according to where you have installed your toolchain.
This iis my first attempt and i have not tested it on other boards. Please commend if you would like to add more..
Note:-
I have not tried using the toolchain directly downloaded. Will post about it soon..
WHY ECLIPSE???
Eclipse is a general purpose IDE that can be configured to be used with many applications. The IDE generally used is the Freescale's propriety CodeWarrior which is only available in Evaluation version. But the power of eclipse has been accepted by the fact that the latest CodeWarrior has been released in Eclipse version. This has inspired me to port it to ordinary Eclipse.
PROJECT PRE-REQUISITES:-
SO LETS START..
- First install the toolchain and download eclipse CDT.
- The remaining steps in the video below.
Coldfire eclipse configuration from rinosh1989 on Vimeo.
for more visit my blog at http://super-ibot.blogspot.com/2011/11/using-eclipse-to-compile-for-for.html
these are values i have used:-
for includes:-
${ToolChain}\CodeSourcery_Linux\lib\gcc\m68k-linux-gnu\4.3.2\include-fixed
${ToolChain}\CodeSourcery_Linux\m68k-linux-gnu\libc\usr\include
${ToolChain}\CodeSourcery_Linux\m68k-linux-gnu\include
${ToolChain}\CodeSourcery_Linux\lib\gcc\m68k-linux-gnu\4.3.2\include
for gcc location
${ToolChain}\CodeSourcery_Linux\bin
prefix values is "m68k-linux-gnu-" without quotes..
${MCPU}=5485 // Change this according to your board
${ToolChain}=C:\Program Files\Freescale\CW MCU v10.1\Cross_Tools //Change this according to where you have installed your toolchain.
This iis my first attempt and i have not tested it on other boards. Please commend if you would like to add more..
Note:-
I have not tried using the toolchain directly downloaded. Will post about it soon..
No comments:
Post a Comment