After linking in all the source files, change the following default Code Composer Studio project settings:
Right-click the dsplib-cm4f project in the Project Explorer and select Properties.
Expand the Build entry, and then expand the ARM Compiler entry.
Confirm that the Target_processor version (--silicon_version, -mv) entry matches your processor in the Processor Options panel (see Figure 5). For this example, the Target processor should be 7M4 (as opposed to 7M3 for any of the Stellaris Cortex-M3 products).
Figure 5. The Processor Settings for a Cortex-M4 Processor With Hardware FPU Support
Click the Optimization level (--opt_level, -O) drop-down menu in the Optimization panel and select 2 (see Figure 6).
Figure 6. The Proper Optimization Settings for Compiling the DSP_Lib Source Code
Expand the Advanced Options section of the ARM Compiler pane, and select Assembler Options.
Click the Use unified assembly language (--ual) checkbox to select that option (see Figure 7).
Figure 7. Setting the Assembler to Use Unified Assembly Language
Click the Emit diagnostic identifier numbers (--display_error_number, -pden) checkbox in the Diagnostic Options panel to deselect.
Figure 8. Verifying That Diagnostic Identifier Numbers will not be Emitted
Add the DSP library CMSIS-<version>/CMSIS/Include directory to the compiler’s include path in the Include Options panel. This is done by pressing the Add button by the Add dir to #include search path (--include_path, -I) (see Figure 9), then either typing in the path to the CMSIS Include directory or clicking Browse and navigating to the Include directory and navigating to the Include directory (CMSIS-<version>/CMSIS/Include).
Figure 9. Adding the CMSIS Top Level Include Directory to the Compiler's #include Search Path
Expand the Advanced Options menu again and select the Predefined Symbols panel. Create a symbol to tell the DSP library to use Cortex-M4 based math functions. Click the Add... button in the Pre-define NAME (--define, -D) area. In the Enter Value dialog box, type ARM_MATH_CM4 into the Pre-define NAME (--define, -D) field and click OK (see Figure 10). Click the Add… button again type __FPU_PRESENT=1 into the Pre-define NAME (--define, -D) field and click OK.
Figure 10. Adding Project Level #defines for the Processor Characteristics
Select the on option from the Place each function in a separate subsection (--gen_func_subsections, -ms) drop-down menu in the Runtime Model Options panel (see Figure 11).
Figure 11. The Proper Runtime Model Options for Compiling the DSP_Lib Source Code