Skip to content

Compiling uses wrong linker script with libopencm3 framework #3

Description

@smaug-g

See thread: thread

This goes over my head, but when building, the compiler seems to be using the incorrect linker script. According to the board file, it should use

"ldscript": "lm4fcpp_blizzard.ld"

but in reality it uses:

"~/.platformio/packages/framework-libopencm3/lib/lm4f/libopencm3_lm4f.ld"

The issue is that libopencm3_lm4f.ld does not define memory regions. The compiler will build and upload the code, but the processor will go into a blocking handler and sit in a while(1) loop.

I fixed the issue by defining the memory regions in libopencm3_lm4f.ld.

I was told by PlatformIO's maxgerhardt to open an issue here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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