Visible to Intel only — GUID: lro1424379110508
Ixiasoft
1.1. Introduction
1.2. Bare Metal Overview
1.3. Prerequisites for the Bare Metal Development Environment
1.4. Bare Metal Compiler
1.5. Bare Metal Development Flow
1.6. Using DS-5 AE to Create and Manage Bare Metal Projects
1.7. Importing, Building and Debugging in a Make-Based Example
1.8. DS-5 ARM HWLIBs Project Derived from Make-Based Project
1.9. Minimal Preloader
1.10. Appendix: Troubleshooting
Visible to Intel only — GUID: lro1424379110508
Ixiasoft
1.7.2. Build the Project
Now that the project is imported, make sure the current toolchain (ARM Compiler 5 (DS-5 built-in)) is selected correctly in the Tool Chain Editor. This can be done with the following steps:
- Right click on the project and select "Properties".
- Go to C/C++ Build > Tool Chain Editor.
Next, right click on the project and select "Build Project". This initiates a Make-based build that does the following:
- Copies additional source files from HWLibs into the project.
- Creates an object file of the FPGA image using standard Altera tools and objcopy.
- Compiles and links everything into an AXF executable (ELF-compatible).
Note: For details of what is happening, browse the Makefile that is part of the project.
Included with the project are a number of key items that are used to properly initialize the ARM core:
- A scatter file (scatter.scat) that the ARM tools use for linking
Note: Much simpler that GNU linker syntax
- A DS script file (debug-hosted.ds) that controls debug flow
- Loads and runs the Preloader
- Loads the project executable (HWLIB.axf) and stops at the “main” symbol
- A readme.txt file which describes more about this example