esden / summon-arm-toolchain

This project is not under active development any more. Consider using https://launchpad.net/gcc-arm-embedded instead! A very simple build script for bare metal arm toolchain. NO LINUX!

Home Page:http://summon-arm-toolchain.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hardfloat - support?

thomask77 opened this issue · comments

Hi!

Is there any support for -mfloat-abi=hard yet?

This would be a real killer feature for SAT, because the free version of the commercial toolchains always omit this calling convention. There are also cheap STM32F4 discovery boards which would really benefit from that.

I have been trying to get this working (unsuccessfully) over the last few days also. +1

I know that this is a broadly requested feature. I sadly did not have time till now to take a look into that, and I am not sure when I will. :(

I have had success using the hard floating point unit with MikeSmith's fork of this project.

https://github.com/MikeSmith/summon-arm-toolchain

for the record, the flags you should use are:

-mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -mlittle-endian

I tried to compile summon-arm-toolchain in windows with Git Bash; but encounter the "Found unknown OS. Aborting!" error after running ./summon-arm-toolchain.

Is there a workaround for this? Thanks!

I managed to get a working hardfloat toolchain, though I have heard from some that they are unable to get it to build.

https://github.com/prattmic/arm-cortex-m4-hardfloat-toolchain

Since some time, there's also an official(?) toolchain from ARM(?) with hardfloat-multilibs:

https://launchpad.net/gcc-arm-embedded

I'm using it for all my new projects, replacing the CodeSourcery toolchain.

Hardfloat should be working now. Please open a new issue if this still persists. :)