how to link CMSIS DSP to KDS project

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to link CMSIS DSP to KDS project

Jump to solution
1,825 Views
ronyip
Contributor I

I have been trying to link the CMSIS DSP lib to my MK24F project in KDS version 3.0. I am using KSDK version 1.3.0.

I was so glad to have found the instruction provided in this link Adding CMSIS-DSP Library to a KSDK 2.x project in Kinetis Design Studio. It looked like it should have worked. However, I still have the same error after implemented the steps provided in the pdf file.

 

c:/freescale/kds_v3/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld.exe: cannot find -llibarm_cortexM4lf_math.a

collect2.exe: error: ld returned 1 exit status

makefile:116: recipe for target 'mk24f.elf' failed

make: *** [mk24f.elf] Error 1

 

I checked the make sure I was using the '/' instead of the '\' and pasted the path in the file explorer to verify that it was correct. Any idea why the ld.exe was not able to find the lib file?

 

Thank you,

Ron

Labels (1)
0 Kudos
1 Solution
1,440 Views
DavidS
NXP Employee
NXP Employee

Hi Ron,

I goofed.  I meant following:

Try using the name "arm_cortexM4lf_math"...without "" and without the prefix "lib".

Regards,

David

View solution in original post

0 Kudos
6 Replies
1,440 Views
DavidS
NXP Employee
NXP Employee

Hi Ron,

Is you linker pointing to the correct folder where the library is located?

The CMSIS library is in the KSDK path and not the KDS path I think:

C:\Freescale\KSDK_1.3.0\platform\CMSIS\Lib\GCC

Regards,

David

0 Kudos
1,440 Views
ronyip
Contributor I

Here the lib settings in project properties.

pastedImage_0.png

The Library search path is "C:\Freescale\KSDK_1.3.0\platform\CMSIS-SP-00300-r4p5-00rel0\CMSIS\Lib\GCC"

The library name is libarm_cortexM4lf_math.

0 Kudos
1,440 Views
DavidS
NXP Employee
NXP Employee

Hi Ron,

Try using the name "libarm_cortexM4lf_math".

Regards,

David

0 Kudos
1,440 Views
ronyip
Contributor I

Thanks, Dave,

I tried putting "" around the lib name with the same error.

Building target: mk24f.elf

Invoking: Cross ARM C++ Linker

arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb .... -l"libarm_cortexM4lf_math"

c:/freescale/kds_v3/toolchain/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld.exe:

cannot find -llibarm_cortexM4lf_math

collect2.exe: error: ld returned 1 exit status

makefile:115: recipe for target 'mk24f.elf' failed

make: *** Error 1

Best Regards,

Ron Yip

Senior Engineer

Machine Health

Tel: +1 (858) 496-3481, Fax: +1 (858) 496-3515

E-mail: ron.yip@skf.com

Machine Health - Development & Production Centers

Industrial Market

SKF USA Inc

5271 Viewridge Court, San Diego, CA 92123

www.skf.com, Facebook, LinkedIn, Twitter, Instagram, Youtube

SKF – The Power of Knowledge Engineering

0 Kudos
1,441 Views
DavidS
NXP Employee
NXP Employee

Hi Ron,

I goofed.  I meant following:

Try using the name "arm_cortexM4lf_math"...without "" and without the prefix "lib".

Regards,

David

0 Kudos
1,440 Views
ronyip
Contributor I

Thanks, Dave.

It worked.

Best Regards,

Ron Yip

Senior Engineer

Machine Health

Tel: +1 (858) 496-3481, Fax: +1 (858) 496-3515

E-mail: ron.yip@skf.com

Machine Health - Development & Production Centers

Industrial Market

SKF USA Inc

5271 Viewridge Court, San Diego, CA 92123

www.skf.com, Facebook, LinkedIn, Twitter, Instagram, Youtube

SKF – The Power of Knowledge Engineering

0 Kudos