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
Solved! Go to Solution.
Hi Ron,
I goofed. I meant following:
Try using the name "arm_cortexM4lf_math"...without "" and without the prefix "lib".
Regards,
David
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
Here the lib settings in project properties.
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.
Hi Ron,
Try using the name "libarm_cortexM4lf_math".
Regards,
David
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
Hi Ron,
I goofed. I meant following:
Try using the name "arm_cortexM4lf_math"...without "" and without the prefix "lib".
Regards,
David
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