Skip to content

Correct linker option for Cortex-M4 #14236

Closed
@JeanMarcR

Description

@JeanMarcR

Description of defect

To be able to run correctly the blink application on the target NUCLEO_WL55JC, I need to add "--cpu=Cortex-M4.no_fp" in the linker’s file : develop.cmake.
Despite the fact that “mcpu=cortex-m4 and -mfpu=none” is present in the compiler’s file : Cortex-M4.cmake
The blink application is obtained thanks to the following command:
mbedtools compile -t ARM -m NUCLEO_WL55JC

Target(s) affected by this defect ?

NUCLEO_WL55JC

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

mbedtools 4.6.1

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

6dd44e7
("Merge pull request #14190 from 0xc0170/fix_ns_cores", 2021-02-03)

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

-- The C compiler identification is ARMClang 6.13.100
-- The CXX compiler identification is ARMClang 6.13.100
-- The ASM compiler identification is ARMClang
-- Found assembler: C:/Keil_v5/ARM/ARMCLANG/bin/armclang.exe

How is this defect reproduced ?

If I removed "--cpu=Cortex-M4.no_fp" of the linker’s file : develop.cmake
the blink application does not run correctly on the target.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions