How to use ARM CMSIS DSP lib in ModusToolbox2.4

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Ray_Liang
Employee
Employee
50 sign-ins 10 questions asked 5 likes given

Hi all,

I am looking for a guide line about how to enable the DSP lib to use the dsp API in PSoC6 CM4 project.

Is there a document here? Or can someone help to provide setup steps?

Regards,

Ray

0 Likes
1 Solution
Ray_Liang
Employee
Employee
50 sign-ins 10 questions asked 5 likes given

Lingling,

Thanks! Because the link you sharing was an old topic in 2020, which is using MTB2.1, I am looking somethings newer.

And there is also somethings changed on https://github.com/ARM-software/CMSIS_5/ 

Actually, I find a way to use DSP lib now. Here is the step I try:

Step 1 (For the user does not install MDK IDE, if user already install MDK IDE, skip this step )

Clone the CMSIS git repository in a separate folder using the command

git clone https://github.com/ARM-software/CMSIS.git

I run it in the MTB2.4 terminal , and git clone to workspace folder, as below:

JiaweiL_16_0-1648795718362.png

 

Step2  Modify makefile to add the path of DSP library, just like the post you sharing.

  • DSP_DIR=../CMSIS/CMSIS/
  • INCLUDES=$(DSP_DIR)/Include
  • VFP_SELECT=hardfp
  • LDLIBS=$(DSP_DIR)/Lib/GCC/libarm_cortexM4lf_math.a

(For the user installed MDK IDE, should use the path of MDK DSP lib)

 

Then, it should be OK to call the math function. 

 

Regards,

Ray

View solution in original post

0 Likes
3 Replies
LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked

The following linker is talking about the DSP lib,  you can refer to it:

https://community.infineon.com/t5/ModusToolbox-General/Install-CMSIS-DSP-for-CY8CPROTO-062-4343W-on-...

0 Likes
Ray_Liang
Employee
Employee
50 sign-ins 10 questions asked 5 likes given

Lingling,

Thanks! Because the link you sharing was an old topic in 2020, which is using MTB2.1, I am looking somethings newer.

And there is also somethings changed on https://github.com/ARM-software/CMSIS_5/ 

Actually, I find a way to use DSP lib now. Here is the step I try:

Step 1 (For the user does not install MDK IDE, if user already install MDK IDE, skip this step )

Clone the CMSIS git repository in a separate folder using the command

git clone https://github.com/ARM-software/CMSIS.git

I run it in the MTB2.4 terminal , and git clone to workspace folder, as below:

JiaweiL_16_0-1648795718362.png

 

Step2  Modify makefile to add the path of DSP library, just like the post you sharing.

  • DSP_DIR=../CMSIS/CMSIS/
  • INCLUDES=$(DSP_DIR)/Include
  • VFP_SELECT=hardfp
  • LDLIBS=$(DSP_DIR)/Lib/GCC/libarm_cortexM4lf_math.a

(For the user installed MDK IDE, should use the path of MDK DSP lib)

 

Then, it should be OK to call the math function. 

 

Regards,

Ray

0 Likes

谢谢分享哦~

0 Likes