Skip to content
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

change FPU flags to use single precision FPU #13

Merged
merged 2 commits into from
Sep 21, 2023

Conversation

MyselfAndJo
Copy link
Contributor

The Cortex-M33F has a single precision fpu, thus the linker fpu settings need to be set to -mfpu=fpv-sp-d16. Otherwise all calls to the floating point abi will lead to a crash.

You can check by just compiling any code with this framework and executing:

float a,b,c;
a= 2.0f;
b=3.0f;
a = powf(b,c);

MyselfAndJo and others added 2 commits September 21, 2023 11:25
The Cortex-M33F has a single precision fpu, thus the linker fpu settings need to be set to -mfpu=fpv-sp-d16. Otherwise all calls to the floating point abi will lead to a crash.

You can check by just compiling any code with this framework and executing:

float a,b,c;
a= 2.0f;
b=3.0f;
a = powf(b,c);
@valeros valeros merged commit 55b8552 into platformio:develop Sep 21, 2023
21 checks passed
@valeros
Copy link
Member

valeros commented Sep 21, 2023

Many thanks for the PR, merged!

@MyselfAndJo
Copy link
Contributor Author

Wow that was fast, thanks for merging it that quickly!

@MyselfAndJo MyselfAndJo deleted the patch-1 branch September 28, 2023 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants