Compile Code Examples Eagle SBC
From Manuals
(Created page with '===Compiling Code Examples with EWARM=== To load the StellarisWare workspace in the IAR IDE, select Programs> Micromint Eagle> IAR> StellarisWare examples from the Windows Start …') |
(→Compiling Examples with the GNU Toolchain) |
||
| Line 11: | Line 11: | ||
====Compiling Examples with the Eclipse IDE==== | ====Compiling Examples with the Eclipse IDE==== | ||
| + | Follow these steps to compile an example using the Eclipse IDE. | ||
| + | * 1. Open the Eclipse IDE. | ||
| + | * 2. When prompted browse to the "StellarisWare\boards\eagle" directory. | ||
| + | * 3. Click 'OK'. | ||
| + | * 4. Press the 'F5' key on the keyboard to refresh the files. | ||
| + | * 5. Close all of the open projects by right clicking on the project and selecting "Close Project". | ||
| + | * 6. Open a project by right clicking on the desired project and selecting "Open Project". If the Sourcery G++ Lite compiler is not installed and devkitARM is installed then click on "Window>Preferences>C/C++>Build>Environtment" and add a variable called "COMPILER" with the value set to "devkitARM". | ||
| + | * 7. Right click on the project and select build. | ||
====Compiling Examples with the GNU Toolchain from the Command Line==== | ====Compiling Examples with the GNU Toolchain from the Command Line==== | ||
Revision as of 14:35, 3 April 2012
Contents |
Compiling Code Examples with EWARM
To load the StellarisWare workspace in the IAR IDE, select Programs> Micromint Eagle> IAR> StellarisWare examples from the Windows Start menu. The IAR Embedded Workbench for ARM will start and you will see a screen similar to that in Figure 2.5. Select the Blinky project by clicking on the drop down menu circled red in Figure 2.5. Be sure to select the board that you are using. In the case of Figure 2.5 the Eagle 50E was being used. To rebuild the project select the “Make” button on the toolbar. You can also right click on the project name to select “Make” or “Rebuild”. This will build a binary (.BIN) image file in the “board type\ewarm\Exe\” directory of the project. For example the binary for the blinky project using the Eagle 50E is in the “C:\Program Files\Micromint\Eagle\StellarisWare\boards\eagle\blinky\eagle-50e\ewarm\Exe” directory if the Eagle BSP was installed in the default directory. To load the application on the board please see the Firmware Download Procedures section in this manual. If the build and download is successful, the user LED on the Eagle SBC will start blinking.
Compiling Examples with the GNU Toolchain
Compiling Examples with the CodeBlocks IDE
To load the StellarisWare workspace in the CodeBlocks IDE, select Programs> Micromint Eagle> CodeBlocks> StrellarisEare examples from your Windows Start menu. The CodeBLocks IDE will start and you will see a screen similar to that on Figure 2.6. Select the Blinky project by right clicking the project name and selecting “Activate project”. Select the appropriate board using the dropdown menu circled red in figure 2.6. To rebuild the project select the “Rebuild” button on the toolbar. You can also right click on the project name to select “Build” or “Rebuild”. This will build a binary (.BIN) image file in the “board type\gcc\” directory of the project. For example the binary for the blinky project using the Eagle 50E is in the “C:\Program Files\Micromint\Eagle\StellarisWare\boards\eagle\blinky\eagle-50e\gcc” directory if the Eagle BSP was installed in the default directory. To load the application on the board please see the Firmware Download Procedures section in this manual. If the build and download is successful, the user LED on the Eagle SBC will start blinking.
Compiling Examples with the Eclipse IDE
Follow these steps to compile an example using the Eclipse IDE.
- 1. Open the Eclipse IDE.
- 2. When prompted browse to the "StellarisWare\boards\eagle" directory.
- 3. Click 'OK'.
- 4. Press the 'F5' key on the keyboard to refresh the files.
- 5. Close all of the open projects by right clicking on the project and selecting "Close Project".
- 6. Open a project by right clicking on the desired project and selecting "Open Project". If the Sourcery G++ Lite compiler is not installed and devkitARM is installed then click on "Window>Preferences>C/C++>Build>Environtment" and add a variable called "COMPILER" with the value set to "devkitARM".
- 7. Right click on the project and select build.
Compiling Examples with the GNU Toolchain from the Command Line
All example programs include a Makefile that allows you to build binary images from the command line using the GNU toolchain. The GNU “make” utility is installed as part of the GNU toolchain on the Eagle Setup CD. To build an image using the command line, just change to the project directory and execute “make”. To build the image for blinky you would perform the following:
- 1. Open a command prompt.
- 2. Type “CD\Program Files\Micromint\Eagle\StellarisWare\boards\eagle\blinky”.
- 3. Press “Enter”.
- 4. Type “make”.
- 5. Press “Enter”.


