Skip to content

Exporters - SWSTEM32 fpu problem #2506

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
0xc0170 opened this issue Aug 22, 2016 · 3 comments
Closed

Exporters - SWSTEM32 fpu problem #2506

0xc0170 opened this issue Aug 22, 2016 · 3 comments

Comments

@0xc0170
Copy link
Contributor

0xc0170 commented Aug 22, 2016

Reported here : https://developer.mbed.org/questions/73309/mbed-os-basic-example-compile-error/#answer10867

Seems that fpu is not correctly set for exported project, a resolution provided by Graham Sayers.

@bcostm @adustm @LMESTM

@sg-
Copy link
Contributor

sg- commented Sep 19, 2016

@bcostm @adustm @LMESTM bump

@bcostm
Copy link
Contributor

bcostm commented Sep 23, 2016

I have exported the Nucleo_RTOS_basic example on SW4STM32 toolchain using Nucleo_F446RE platform. I confirm the build error.

I have also change the FPU setting in my project to:
MCU Settings Flaoting point hardware: fpv4-sp-d16
Floating-point ABI: softfp
Instruction Set: Thumb II
As proposed Graham, and the build and execution are OK

Now, I looked in mbed-os/tools/export folder and there is only one SW4STM32 cproject template common to all platforms: sw4stm32_cproject_common.tmpl. In this template there is nothing concerning the FPU options, this is why the FPU options are empty when the project is generated.

So, this template file must be changed in order to configure the FPU settings differently for each platform. The sw4stm32.py file will have to be changed also...

@bcostm
Copy link
Contributor

bcostm commented Sep 23, 2016

I have already something working. I just need now to check all platforms and set the correct FPU option in the sw4stm32.py file. The PR will come soon...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants