AnsweredAssumed Answered

Forcing float on a matlab generated code

Question asked by ofri.igal on Jan 22, 2014
Latest reply on Jan 23, 2014 by fm
Hi all,

I use matlab to generate c code and have this code compile in IAR for STM32F4 as a library. So I have no ST libraries added just the c code and h files from matlab.

Matlab uses sqrt, sin functions etc. declared at math.h, these functions use double and I'm looking for a way to force the compiler to use float (so the FPU will be used), I can't go through the entire code and switc every function used for the float equivalent. is there a simple way to do so?

Thank you