chipKIT® Development Platform

Inspired by Arduino™

CMSIS

Created Sun, 28 Sep 2014 18:41:57 +0000 by hustav


hustav

Sun, 28 Sep 2014 18:41:57 +0000

Hi Folks,

What is necessary to link CMSIS libraries in MPIDE?

I would like to run FFT code from the CMSIS DSP lib. I would like to make some performance tests for FFT in my MAX32 board. My code is compiling ok, but the linker provides the following error messages:

/Applications/mpide.app/Contents/Resources/Java/hardware/pic32/compiler/pic32-tools/bin/../lib/gcc/pic32mx/4.5.2/../../../../pic32mx/bin/ld: skipping incompatible /Applications/mpide.app/Contents/Resources/Java/hardware/pic32/compiler/pic32-tools/bin/../lib/gcc/pic32mx/4.5.2/libarm_cortexM4l_math.a when searching for -larm_cortexM4l_math /Applications/mpide.app/Contents/Resources/Java/hardware/pic32/compiler/pic32-tools/bin/../lib/gcc/pic32mx/4.5.2/../../../../pic32mx/bin/ld: cannot find -larm_cortexM4l_math collect2: ld returned 1 exit status

My test code:

#define ARM_MATH_CM4 #include <arm_math.h>

arm_cfft_radix4_instance_q15 C; arm_rfft_instance_q15 S;

q15_t out[640]; q15_t outsq[1280];

void setup() { }

void loop() { arm_rfft_q15(&S,out,outsq); arm_cmplx_mag_squared_q15(outsq,out,256); }

Thanks, Gustavo.


majenko

Sun, 28 Sep 2014 19:43:44 +0000

It would appear you are trying to use an ARM library on a MIPS processor. That's not going to work... ever...