Hi,
I'd like to know if the floating point hardware on STM32F103 is supported by the fpc cross compiler. ARmv7 this is according to:
http://j-software.dk/stm32f103.php
Will fpc use floating point support on those SoCs?
TIA,
Marc

Mailing lists / fpc-pascal / 2017-01
5 messages · 2 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hi,
I'd like to know if the floating point hardware on STM32F103 is supported by the fpc cross compiler. ARmv7 this is according to:
http://j-software.dk/stm32f103.php
Will fpc use floating point support on those SoCs?
TIA,
Marc
Marc Santhoff wroteHi, I'd like to know if the floating point hardware on STM32F103
What floating point hardware does it have? According to a quick search, it is a Cortex-M3 which has no hardware floating point support?
Indeed, you're right. Having my head wrapped around a cpouple of different SoCs I was blinded by the F in the name. Cortex-M4 may have floating point hardware, if the implementer decides to build it into the chip.
OK, moving the question to the STM32F4xx devices having "ARM FPv4-SP single-precision FPU". Does fpc support that one?
Yes. Compile with -Cffpv4_s16 while using rtl/packages built with CROSSOPT=-Cffpv4_s16, just add this to the command line provided by Jeppe's site.
Very nice. :)
Many thanks for answering and clearing things up,
Marc