Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2017-01

fpc for ARM on STM32F103

5 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Florian Klämpfl
to Marc Santhoff
Marc Santhoff wrote
Hi, 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?

Show quoted text 15 lines
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 _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Marc Santhoff
to Florian Klämpfl
Florian Klämpfl wrote 7 lines
Am 22.01.2017 um 19:33 schrieb Marc Santhoff: > Hi, > > 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?

Show quoted text 20 lines
> 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 > > > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal > _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Florian Klämpfl
to Marc Santhoff
Marc Santhoff wrote 16 lines
On So, 2017-01-22 at 21:20 +0100, Florian Klämpfl wrote: > Am 22.01.2017 um 19:33 schrieb Marc Santhoff: >> Hi, >> >> 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.

Marc Santhoff
to Florian Klämpfl
Florian Klämpfl wrote 20 lines
Am 22.01.2017 um 21:43 schrieb Marc Santhoff: > On So, 2017-01-22 at 21:20 +0100, Florian Klämpfl wrote: >> Am 22.01.2017 um 19:33 schrieb Marc Santhoff: >>> Hi, >>> >>> 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