AnsweredAssumed Answered

Adding Floating Point in Keil

Question asked by salah_ud_din.osama on Jan 22, 2013
Latest reply on May 10, 2014 by hussnain.shafqat
Hi,

I am using STM32f4discovery board and am trying to write a code which will take moving average of accelerometer data. For this purpose my average variable have to be in floating point. But during initialization when my code reaches to the following statement

avgx = 0.0;

the processor ends up in hard fault handler. Now as Discovery board supports floating point processing I am assuming that I have missed enabling it in Keil. So i have added '--fpu' to assembler flags but now during linking I get this error

startup_stm32f4xx.s: error: A3903U: Argument '-I' not permitted for option 'fpu'.

Can anyone help me to how to enable it i.e which assembler directives do I have to do this

Regards

Outcomes