MattD

03-05-2013, 05:20 PM

Hello,

I am trying to program a CM-530 using C and the examples provided by Robotis. The problem is that I am having trouble with floating point math because there is a problem with the math.h library being linked during the building of the project. I have been looking for a solution for days, so I thought I would ping the community to see if anyone else has had success doing floating point math on a CM-530. The interesting thing is that if you use math.h functions with constants, the compiler pre-calculates the values and skips the linking (that tricked me in to thinking things were working fine), but if the compiler can't pre-calculate, then the library has to be linked and I get a linking error.

From what I have read, the Cortex-M3 processor supports at least software floating point, so it seems like it should work. I'm open to any and all ideas. Thank you in advance.

I am trying to program a CM-530 using C and the examples provided by Robotis. The problem is that I am having trouble with floating point math because there is a problem with the math.h library being linked during the building of the project. I have been looking for a solution for days, so I thought I would ping the community to see if anyone else has had success doing floating point math on a CM-530. The interesting thing is that if you use math.h functions with constants, the compiler pre-calculates the values and skips the linking (that tricked me in to thinking things were working fine), but if the compiler can't pre-calculate, then the library has to be linked and I get a linking error.

From what I have read, the Cortex-M3 processor supports at least software floating point, so it seems like it should work. I'm open to any and all ideas. Thank you in advance.