13.07.2015 Views

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>TASKING</strong> <strong>VX</strong>-<strong>toolset</strong> <strong>for</strong> <strong>ARM</strong> <strong>User</strong> <strong>Guide</strong>To use the CMSIS DSP library in your Eclipse projectPart of the CMSIS standard is a DSP library.The CMSIS DSP library is included in the <strong>TASKING</strong> product'scmsis folder. The library is also available as a pre-built library file in the lib folders <strong>for</strong> v6M, v7M andv7EM. The libraries are dspthumb.lib (double precision floating point) and dspthumbs.lib (singleprecision floating point). MIL libraries are present also: dspthumb.ma and dspthumbs.ma.1. From the Project menu, select Properties <strong>for</strong>The Properties dialog appears.2. In the left pane, expand C/C++ Build and select Settings.In the right pane the Settings appear.3. On the Tool Settings tab, select C/C++ Compiler » Include Paths .4. Enable the option Add CMSIS include paths.5. On the Tool Settings tab, select Linker » Libraries.6. Enable the option Link CMSIS DSP library.This passes the option --dsp-library of the control program (ccarm) <strong>for</strong> compilation of C/C++ filesand <strong>for</strong> linking. With this option the control program sets the compiler macro <strong>ARM</strong>_MATH_CM0,<strong>ARM</strong>_MATH_CM3 or <strong>ARM</strong>_MATH_CM4, depending on the selected processor. These macros arerequired <strong>for</strong> the CMSIS arm_math.h header file to operate correctly. With --dsp-library the controlprogram also selects the appropriate library.<strong>User</strong> libraryYou can create your own libraries. Section 10.4, Archiver describes how you can use the archiver tocreate your own library with object modules.To link user libraries1. From the Project menu, select Properties <strong>for</strong>The Properties dialog appears.2. In the left pane, expand C/C++ Build and select Settings.In the right pane the Settings appear.3. On the Tool Settings tab, select Linker » Libraries.4. Add your libraries to the Libraries box.When you want to link user libraries from the command line, you must specify their filenames on thecommand line:lkarm start.obj mylib.lib202

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!