cancel
Showing results for 
Search instead for 
Did you mean: 

FPU in IAR IDE

manoritesameer
Associate II
Posted on June 12, 2014 at 18:22

Hello, 

       I am using the STm32F4 discovery demo board and using the IAR IDE tool chain, Can anyone tell me how to use(enable) the Floating Point unit.

Thanks for ur help.

Regards

Sameer  
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
francescatodiego
Associate II
Posted on June 12, 2014 at 21:38

1. Project->options

2. general options in the left menu

3.''Target'' tab contain FPU dropdown seleciton list

Posted on June 12, 2014 at 22:24

Remember the FPU only does 32-bit float math, it does not support 64-bit double, or complex functions. Be sure to use the float version of math functions, like sqrtf(), sinf(), cosf(), etc. and constants like 123.4f

 
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..