Including CMSIS5 Library in a PSoC Creator project – KBA232412
Community Manager
Jul 12, 2021
05:22 AM
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Jul 12, 2021
05:22 AM
Community Translation: PSoC CreatorプロジェクトにCMSIS5ライブラリを組み込む – KBA232412
Version: **
This article is for CMSIS5. For information about a previous CMSIS version, see KBA90457.
Do the following to include the CMSIS5 Library in a PSoC® Creator™ project:
- Download the latest Arm® CMSIS pack from here - ARM.CMSIS.5.7.0.pack.
- 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.
- 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.
- Build the project.
Rate this article: