10 years, 12 months ago.

How can I use the mbed-dsp library with the FRDM-KL25Z?

I've tried to use the mbed-dsp library with my program and have so far failed to compile it.

I've also tried to compile the FIR example program from the Cookbook for the KL25Z and had the same failures.

I get repeated errors like this:

"cannot open source input file "core_cm0.h": No such file or directory" in file "mbed-dsp/cmsis_dsp//arm_math.h", Line: 274, Col: 21

Looking in the SDK, I see "core_cm0plus.h" under vendor/Freescale/KL25Z but no "core_cm0.h".

If I make a file "core_cm0.h" like this:

core_cm0.h

#include "core_cm0plus.h"

then I get these errors/warnings:

"declaration hides built-in function "__clz"" in file "mbed-dsp/cmsis_dsp//arm_math.h", Line: 480, Col: 28
"declaration overloads built-in function "__clz"" in file "mbed-dsp/cmsis_dsp//arm_math.h", Line: 480, Col: 28
" More than one section matches selector - cannot all be FIRST/LAST." in file "/"
"Not enough information to list image symbols." in file "/"

Has anyone got a suggestion to make this work?

1 Answer

Ned Konz
poster
10 years, 12 months ago.

Ah... I had multiple copies of the mbed library, which is what got the "more than one section matches selector" error.

The rest were just warnings.

So the answer might be just to create a "core_cm0.h" that includes "core_cm0plus.h". I'll try this.

Were you able to get this to compile?

posted by Diego Aguilera 19 Jan 2014