16L-YT

16L-YT

Member Since 1 year ago

@16Lab-Inc ,

Experience Points
1
follower
Lessons Completed
1
follow
Lessons Completed
2
stars
Best Reply Awards
1
repos

221 contributions in the last year

Pinned
⚡ Arm Mbed OS is a platform operating system designed for the internet of things
Activity
Nov
22
2 months ago
Activity icon
issue

16L-YT issue ARMmbed/mbed-os

16L-YT
16L-YT

float-abi flag configuration

Description of defect

The compiler and linker flag float-abi to select the float engine option seems can't be configured from application. It is fixes with soft for GCC and hard for ARM compilers in the following file: mbed-os/tools/cmake/cores/Cortex-M4F.cmake. Howevere, In my application, I had to select the -mfloat-abi:hard option and the only way was to modify the file mbed-os/tools/cmake/cores/Cortex-M4F.cmake and change the GCC option to hard. This workaround is not portable as it changes a file shipped with Mbed-os. This issue is a result of the discussion went in the forum.

Target(s) affected by this defect ?

Issue does not seem to be target specific. I tried with an Ambiq target.

Toolchain(s) (name and version) displaying this defect ?

gcc-arm-none-eabi-9-2020-q2-update

What version of Mbed-os are you using (tag or sha) ?

mbed-os-6.14.0

What version(s) of tools are you using. List all that apply (E.g. mbed-cli)

mbed-tools 7.31.1, Mbed Studio 1.4.3

How is this defect reproduced ?

Try to build using mbed-tools any example/demo code with library compiled with -mfloat-abi:hard.

Activity icon
issue

16L-YT issue comment ARMmbed/mbed-os

16L-YT
16L-YT

float-abi flag configuration

Description of defect

The compiler and linker flag float-abi to select the float engine option seems can't be configured from application. It is fixes with soft for GCC and hard for ARM compilers in the following file: mbed-os/tools/cmake/cores/Cortex-M4F.cmake. Howevere, In my application, I had to select the -mfloat-abi:hard option and the only way was to modify the file mbed-os/tools/cmake/cores/Cortex-M4F.cmake and change the GCC option to hard. This workaround is not portable as it changes a file shipped with Mbed-os. This issue is a result of the discussion went in the forum.

Target(s) affected by this defect ?

Issue does not seem to be target specific. I tried with an Ambiq target.

Toolchain(s) (name and version) displaying this defect ?

gcc-arm-none-eabi-9-2020-q2-update

What version of Mbed-os are you using (tag or sha) ?

mbed-os-6.14.0

What version(s) of tools are you using. List all that apply (E.g. mbed-cli)

mbed-tools 7.31.1, Mbed Studio 1.4.3

How is this defect reproduced ?

Try to build using mbed-tools any example/demo code with library compiled with -mfloat-abi:hard.

16L-YT
16L-YT

Thanks for pointing CMAKE_TOOLCHAIN_FILE option out. I did not know about it. This is for sure solved my issue.

For future refer: This option is set using similar command in the main CMakeLists.txt set(CMAKE_TOOLCHAIN_FILE "${CMAKE_CURRENT_SOURCE_DIR}/file_name.cmake" CACHE STRING ""). I basically copied mbed-os/tools/cmake/cores/Cortex-M4F.cmake content and changed the needed.

Nov
21
2 months ago
Activity icon
issue

16L-YT issue ARMmbed/mbed-os

16L-YT
16L-YT

float-abi flag configuration

Description of defect

The compiler and linker flag float-abi to select the float engine option seems can't be configured from application. It is fixes with soft for GCC and hard for ARM compilers in the following file: mbed-os/tools/cmake/cores/Cortex-M4F.cmake. Howevere, In my application, I had to select the -mfloat-abi:hard option and the only way was to modify the file mbed-os/tools/cmake/cores/Cortex-M4F.cmake and change the GCC option to hard. This workaround is not portable as it changes a file shipped with Mbed-os. This issue is a result of the discussion went in the forum.

Target(s) affected by this defect ?

Issue does not seem to be target specific. I tried with an Ambiq target.

Toolchain(s) (name and version) displaying this defect ?

gcc-arm-none-eabi-9-2020-q2-update

What version of Mbed-os are you using (tag or sha) ?

mbed-os-6.14.0

What version(s) of tools are you using. List all that apply (E.g. mbed-cli)

mbed-tools 7.31.1, Mbed Studio 1.4.3

How is this defect reproduced ?

Try to build using mbed-tools any example/demo code with library compiled with -mfloat-abi:hard.