Use Arm Compiler 6.20 with Hard Floating to Compile SCP-firmware
Hi ALL,
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:
Use 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");
Use 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 : )