enabling hardfp psoc 6

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

cross mob
Anonymous
Not applicable

How do you change the default compiler parameters from

  -mfloat-abi=softfp -mfpu=fpv4-sp-d16

to using the hard fpu?

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
GeonaP_26
Moderator
Moderator
Moderator
250 solutions authored 100 solutions authored 50 solutions authored

Hello Shane,

Since PSoC Creator passes hardcoded softfp as a compiler parameter and appends the custom flags to the end of the command line; we are unable to compile hardfp using PSoC Creator 4.2 Beta 2. As a workaround, enable export to Makefile in Build Settings > Target IDEs and adjust the ABI parameters in platform and toolchain specific configuration file (platform_debug.mk / platform_release.mk). Use this makefile and updated platform_debug.mk / platform_release.mk to generate hardfp elf. We are planning to publish a Knowledge Base Article. Meanwhile, please find attached document for reference.

Best Regards,
Geona Mary

View solution in original post

0 Likes
3 Replies
lock attach
Attachments are accessible only for community members.
GeonaP_26
Moderator
Moderator
Moderator
250 solutions authored 100 solutions authored 50 solutions authored

Hello Shane,

Since PSoC Creator passes hardcoded softfp as a compiler parameter and appends the custom flags to the end of the command line; we are unable to compile hardfp using PSoC Creator 4.2 Beta 2. As a workaround, enable export to Makefile in Build Settings > Target IDEs and adjust the ABI parameters in platform and toolchain specific configuration file (platform_debug.mk / platform_release.mk). Use this makefile and updated platform_debug.mk / platform_release.mk to generate hardfp elf. We are planning to publish a Knowledge Base Article. Meanwhile, please find attached document for reference.

Best Regards,
Geona Mary

0 Likes

Geona Mary:

    

   When make using this method,link error. this link lib will be old, why.

pastedImage_1.png

pastedImage_2.png

0 Likes
Joey
Level 1
Level 1
First reply posted Welcome!

Hello, 

How do we generate the makefile with the build error ? Is it possible to bypass this ?  

Joey_2-1622291608140.png

Without this  makefile we can't proceed to the next step

0 Likes