Main Content

Setup CMSIS and CMSIS-DSP

The setup of CMSIS and CMSIS-DSP configuration to update different versions of CMSIS and CMSIS-DSP packages apart from the current installed version with the hardware support package.

  1. Enter the following command at MATLAB command prompt to open hardware setup window.

    cmsisToolsObj = arm_cortex_m.cmsis.ui.CMSISToolsSetupWorkflow;
    launch(cmsisToolsObj)
    

  2. Select the CMSIS to register and click Next.

  3. Unselect the Use CMSIS package downloaded and installed with support package to use a different version of CMSIS other than the current version provided with the installed support package.

  4. Download the required version of CMSIS and click Next.

  5. Click Browse and locate the CMSIS package folder. Validate the CMSIS package.

  6. Register and Validate the CMSIS-DSP package. Click Finish.

After successful installation, run the following command to build and create CMSIS-DSP compiled library with respective to different ARM cortex-M architectures.

cmsisDspObj = arm_cortex_m.cmsis.cmsis_dsp
cmsisDspObj.updateCustomCMSISToolDirectory
('L:\work\cmsis_workspace\ARM.CMSIS-DSP.1.14.3')
cmsisDspObj.buildCustomCMSISLibrary
('all','toolchain','all','optimization',
'speed','buildconfigoptions','
-DWRAPPER=1 -DCONFIGTABLE=1 -DARM_COS_F32=1 -DARM_SIN_F32=1 
-DARM_SQRT_Q31=1 -DARM_SQRT_Q15=1 
-DCFFT_F32_16=1 -DCFFT_F32_64=1 -DCFFT_F32_256=1 -DCFFT_F32_1024=1')
cmsisDspObj.buildCustomCMSISLibrary('all','toolchain','all',
'optimization','speed','buildconfigoptions','-