Problem with arm_math functions

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
kling
Posts: 3
Joined: Sat Jan 05, 2013 4:37 pm

Problem with arm_math functions

Post 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? ;/
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Problem with arm_math functions

Post 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
kling
Posts: 3
Joined: Sat Jan 05, 2013 4:37 pm

Re: Problem with arm_math functions

Post 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?
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Problem with arm_math functions

Post by Giovanni »

You have to include in your makefile the C modules containing the functions you need.

Giovanni
kling
Posts: 3
Joined: Sat Jan 05, 2013 4:37 pm

Re: Problem with arm_math functions

Post by kling »

Thank's!
Now, everything works fine!
Post Reply