Bare Metal User Guide

ID 683211
Date 11/30/2015
Public
Document Table of Contents

1.8.1.2.1. ARM C Compiler Settings

  1. In "Target", set Target CPU" to "Cortex-A9" and check the "Disable unaligned accesses" box.
    Figure 56. ARMCC Target Settings
  2. Add the preprocessor macro “ALT_FPGA_ENABLE_DMA_SUPPORT=1” to ensure that the code responsible for configuring the FPGA uses the DMA in the HPS.
    Figure 57. ARMCC Preprocessor Settings
  3. Add the preprocessor macro "soc_cv_av" to set the Cyclone V device family.
  4. Select the next category down (“Includes”) and click the “+” button to the right to add the include paths to Build Settings.
    Figure 58. ARMCC Include Path Settings
  5. Select “Source Language” and set “Source language mode” to “-c99”.
    Figure 59. ARMCC Source Language Settings

    Leave "Optimizations", “Debugging”, “Warnings and Errors”, and “Miscellaneous” settings to default values.