Page 1 of 1

Problem with arm_math functions

Posted: Sat Jan 05, 2013 4:42 pm
by kling
Hello Everyone,

I have spent whole day on looking for solution how to execute some functions from arm_math.h

I have NO problem with arm_sqrt_f32() function. Program compiles without errors. But...
When I want to use arm_mat_add_f32() function compilers shouts with error:

Code: Select all

undefined reference to `arm_mat_init_f32'
!!

What's wrong with it? ;/

Re: Problem with arm_math functions

Posted: Sat Jan 05, 2013 5:07 pm
by Giovanni
Hi,

Both are functions from CMSIS, in ChibiOS only the CMSIS headers are included by default not the .c modules. arm_sqrt_f32() works because it is an inline function declared in the header.

I recommend you download the whole CMSIS and include the required modules into your project.

Giovanni

Re: Problem with arm_math functions

Posted: Sat Jan 05, 2013 5:20 pm
by kling
I have downloaded DSP_Libs, but I have no idea what to do next...
What I have to add to makefile? Do I have to change any includes?

Re: Problem with arm_math functions

Posted: Sat Jan 05, 2013 5:23 pm
by Giovanni
You have to include in your makefile the C modules containing the functions you need.

Giovanni

Re: Problem with arm_math functions

Posted: Sat Jan 05, 2013 6:28 pm
by kling
Thank's!
Now, everything works fine!