cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 6 MCU

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
GeonaP_26
Moderator
Moderator

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
2 Replies
GeonaP_26
Moderator
Moderator

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
shli_2554466
New Contributor

Geona Mary:

    

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

pastedImage_1.png

pastedImage_2.png

0 Likes
Top labels