You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.
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 : )
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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 : )
The text was updated successfully, but these errors were encountered: