Skip to content

How to use custom linker script with mbed-cli? #7126

@drahnr

Description

@drahnr

Description

mbed-os 5.9.1-rc1
mbed-cli 1.7.2

Trying to use a custom linker file always fails:
Just placing it under my custom target dir still yields the issue as described in ARMmbed/mbed-cli#687 and #6914

Also trying to explicitly set the linker file via the cmd line opt -l fails the same way:

mbed compile --target MY_TARGET --app-config ./config/mbed_app.json --profile ./config/debug.json -N artifact -DLAUNCH_APP=18 -l ./src/TARGET_MY_TARGET/MY_TARGET.ld

The underlying question is more, on how to properly use a custom linker file by means of defineing a custom target and exploiting the implicit directory structure, such that the derived MCU linker file does not collide with the custom linker script?

Issue request type

[x] Question
[ ] Enhancement
[x] Bug

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