Compile Code Examples Eagle SBC
From Manuals
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
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”.


