Altera SoC Embedded Design Suite User Manual

Page 73

Advertising
background image

Compiling the Bare-Metal Debugging Sample Application

The sample application is compiled using the Mentor bare-metal GCC tool chain invoked by the

Makefile.
1. To compile the application, select the project in Project Explorer.

2. Select Project > Build Project.

Figure 4-32: Project Compiled

3. The project compiles and the Project Explorer shows the newly created hello.axf executable file as

shown in the above figure. The Console dialog box shows the commands and responses that were

executed.

Running the Bare-Metal Debugging Sample Application

Before running the sample application, perform the following setup:
Setup the board as described in

Getting Started with Board Setup

• Connect mini USB cable from DevKit board connector J37 to PC

• Connect 19V power supply to the DevKit

• Turn on the board using the PWR switch
1. Select Run > Debug Configurations.. to access the launch configurations. The sample project comes

with a pre-configured launcher that allows the application to be run on the board.

2. In the Debug Configurations dialog box, on the left panel, select

DS-5 Debugger > Altera-SoCFPGA-

HelloWorld-Baremetal-Debug

.

4-54

Compiling the Bare-Metal Debugging Sample Application

ug-1137

2014.12.15

Altera Corporation

Getting Started Guides

Send Feedback

Advertising