User Tools

Site Tools


embitz_cmsis

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
embitz_cmsis [2018/09/18 17:18]
supergnu [Step by Step process]
embitz_cmsis [2018/09/18 17:40]
supergnu [Step by Step process]
Line 10: Line 10:
  
 ===== Step by Step process ===== ===== Step by Step process =====
 +<WRAP center round important 60%>
 +This is the procedure to use DSP librairies on a Cortex M4 core, it should be more detailed and explain to allow others to understand the procedure and adapt it to their needs
 +</WRAP>
  
-1 - First, unzip the library somewhere on you system, let's say it's in C:\\CMSIS\PATH\. +1 - First, unzip the library somewhere on you system, let's say it's in C:\CMSIS\PATH\CMSIS_X-X.X.X \\ 
-2 -  +2 - Open the project build options window in you Embitz project \\ 
 +3 - In the "compiler settings" tab, in "C-Flags" sub-tab, add "-lm" in others (not sure it is really needed) \\ 
 +4 - In the "Linker settings" tab, in "Linker flags" sub-tab, add "-lm" in others (not sure it is really needed) \\ 
 +5 - In the "Linker settings" tab, in "Librairies" sub-tab, click on add and add "arm_cortexM4lf_math", click a second time on add to add "m" \\ 
 +6 - In the search directories tab, in the includes sub-tab, add C:\CMSIS\PATH\CMSIS_X-X.X.X\Device\ARM\ARMCM4\Include and add C:\CMSIS\PATH\CMSIS_X-X.X.X\CMSIS\DSP\Include \\ 
 +7 - In the search directories tab, in the Linker sub-tab, add C:\CMSIS\PATH\CMSIS_X-X.X.X\CMSIS\Lib\GCC \\ 
 +8 - In your project, you can now add the following includes : \\ 
 +<code c> 
 +#include "ARMCM4_FP.h" 
 +#include "arm_math.h" 
 +#include "arm_const_structs.h" 
 +#include "arm_common_tables.h" 
 +</code>
  
 +You should be able to use CMSIS DSP functions in your project now, happy FFT !
  
embitz_cmsis.txt · Last modified: 2018/09/18 17:40 by supergnu