Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
Change the extension of the downloaded file from .pack to .zip.
Extract the archive file.
Copy the Core and DSP folders in the extracted CMSIS folder and place them in your PSoC Creator project directory.
Right-click on the project in PSoC Creator Workspace Explorer and open Build Settings.
Add .\Core\Include and .\DSP\Include to Additional Include Directories under ARM GCC <version> > Compiler > General as shown.
Note: For PSoC 6 MCU devices, Additional Include Directories will be under <ARM_CPU> ARM GCC <version> > Compiler > General, where <ARM_CPU> represents the Arm CPU that you want to use. It can be CM0+ or CM4. Add the configurations only to the CPU that needs to run the CMSIS-DSP code.
Add the ARM_MATH_XX preprocessor definition where ‘XX’ stands for the corresponding Arm CPU of the device. Some of the preprocessor definitions for Arm CPUS are – ARM_MATH_CM0, ARM_MATH_CM0PLUS, ARM_MATH_CM3, ARM_MATH_CM4.
Add m (math library) under Linker > General > Additional Libraries as follows:
Add the link file in the DSP\Lib\GCC\ directory corresponding to the Arm CPU for the target device in the Additional Link Files field. For example, for an Arm Core M3 device, select DSP\Lib\GCC\libarm_cortexM3l_math.a.
Note: For the CM4 CPU in PSoC 6 MCU devices, libarm_cortexM4lf_math.a cannot be used directly because it uses hardfp which cannot be enabled directly using PSoC Creator. See KBA222890 to learn how to enable hardfp for PSoC 6 MCU devices in PSoC Creator.
Click Apply and then click OK.
Right-click on Source Files in Workspace Explorer, select Add > Existing Item, and add all the necessary source files that you are using. You can also add folders to organize the files.