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

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

@Yuzuki0821

Description

@Yuzuki0821

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 : )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions