Using hard FPU

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
MeSh_3749161
Level 2
Level 2
First like given

We are trying to use hard FPU in PSoC 6, but in core_cm4.h FPU requires setting __SOFTFP__ into 0u:
pastedImage_1.png

however, it seems PSoC creator is using soft FPU by default:

pastedImage_0.png

In this thread, GeonaM_26​ has explained how to make new Makefile to change softfp into hardfp:https://community.cypress.com/thread/32197?q=Using%20hard%20FPU

but, this requires compiling the whole project outside of PSoC creator. Is there any way to change this parameter without manipulating a Makefile?

0 Likes
1 Solution
RodolfoGL
Employee
Employee
250 solutions authored 250 sign-ins 5 comments on KBA

You can use the ModusToolbox tool instead of PSoC Creator. That configuration can easily be changed in a Eclipse based environment.

However, the tool does not support UDBs yet, in case you are using it.

View solution in original post

0 Likes
3 Replies
RodolfoGL
Employee
Employee
250 solutions authored 250 sign-ins 5 comments on KBA

You can use the ModusToolbox tool instead of PSoC Creator. That configuration can easily be changed in a Eclipse based environment.

However, the tool does not support UDBs yet, in case you are using it.

0 Likes

It seems we need to eventually switch to Modus ToolBox ; however, we actually do use UDB in our project. Do I have to use arm gnu toolchain to compile the make file? I have tried it and it is giving me errors at time of make:

Export/prebuildCortexM0p.sh

make (e=-1): Error -1

make: *** [prebuild_CortexM0p] Error -1

0 Likes

Ensure that you follow the steps in enabling hardfp psoc 6

Could you share the PSoC Creator project to recreate the issue at our end?

0 Likes