Skip to content

Incorrect gcc_arm linker script name for stm32f407xg #14866

@byq77

Description

@byq77

Description of defect

So I have a custom board that incorporates the stm32f407xG mcu. I was able to successfully configure a custom target using Mbed Os 6.12 and CLI2. I followed this guide. However, I found that the linker script name for this model is incorrect for some reason. It is in uppercase, but the CMakeLists.txt in the mbed-os/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407xG/ directory reference to the name in lowercase. It looks like the lowercase is also the naming convention you use. Converting STM32F407XG.ld to stm32f407xg.ld fixed the issue.

Target(s) affected by this defect ?

custom_target.json -> stm32f407xG

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

GCC_ARM

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

mbed-os-6.12.0

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

mbed CLI2

How is this defect reproduced ?

The problem is obvious, because the stm32f407xg linker script file name dosen't match the name in the line:

set(LINKER_FILE TOOLCHAIN_GCC_ARM/stm32f407xg.ld)

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