Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

SCP-firmware Use Arm Compiler 6.20 with Hard Floating #892

Open
Yuzuki0821 opened this issue Feb 27, 2024 · 0 comments
Open

SCP-firmware Use Arm Compiler 6.20 with Hard Floating #892

Yuzuki0821 opened this issue Feb 27, 2024 · 0 comments

Comments

@Yuzuki0821
Copy link

Hi,

I meet a question when I use Arm Compiler 6.20 with Hard Floating compile option.

Use GNU arm-gnu-toolchain-12.2.rel1-x86_64-arm-none-eabi toolchain with soft floating or hard floating compile options, SCP-firmware run successfully, uart has output.
Use Arm Compiler 6.20 with soft floating compile options, SCP-firmware run successfully, uart has output.
Use Arm Compiler 6.20 with hard floating compile options, SCP-firmware cannot tun, uart no output.

I modify cmake/Toolchain/ArmClang-Baremetal file to switch soft floating and hard floating compile option:
for using hard floating compile options
change string(APPEND CMAKE_$(language)FLAGS_INIT "-mfloat-abi=soft ") to string(APPEND CMAKE$(language)_FLAGS_INIT "-mfloat-abi=hard -mfpu=fpv4-sp-d16 ")
delete string(APPEND CMAKE_EXE_LINKER_FLAGS_INIT "--fpu=SoftVFP")

for using soft floating compile options
keep string(APPEND CMAKE_$(language)_FLAGS_INIT "-mfloat-abi=soft ")
keep string(APPEND CMAKE_EXE_LINKER_FLAGS_INIT "--fpu=SoftVFP")

So, whether modifications are correct or what other modifications should I need to do? Thanks : )

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant