Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linker script issue with KL05 #8

Open
MWP opened this issue Oct 1, 2019 · 3 comments
Open

Linker script issue with KL05 #8

MWP opened this issue Oct 1, 2019 · 3 comments

Comments

@MWP
Copy link

MWP commented Oct 1, 2019

I've created a new empty project for the board frdm_kl05z.
I haven't changed the contents of any of the project files at all (including main.c).
On compiling i get this error:

Generating LD script .pio\build\frdm_kl05z\MKL05Z4.ld.link_script.ld Linking .pio\build\frdm_kl05z\firmware.elf c:/users/mark/.platformio/packages/toolchain-gccarmnoneeabi/bin/…/lib/gcc/arm-none-eabi/7.2.1/…/…/…/…/arm-none-eabi/bin/ld.exe:.pio\build\frdm_kl05z\MKL05Z4.ld.link_script.ld:80: syntax error collect2.exe: error: ld returned 1 exit status *** [.pio\build\frdm_kl05z\firmware.elf] Error 1

In the linker script, the error is in the heap section:
.heap : { __end__ = .; end = __end__; *(.heap*) .= ORIGIN(RAM) + LENGTH(RAM) - STACK_SIZE; __HeapLimit = .; } > RAM

On the ".= ORIGIN(RAM) + LENGTH(RAM) - STACK_SIZE;" line.

@valeros
Copy link
Member

valeros commented Oct 1, 2019

Hi @MWP ! Could you please try an older version of the platform?

[env:frdm_kl05z]
platform = [email protected]
framework = mbed
board = frdm_kl05z

@MWP
Copy link
Author

MWP commented Oct 30, 2019

Just tried... that did build fine.
So latest version is broken?

@valeros
Copy link
Member

valeros commented Oct 30, 2019

Hi @MWP ! Yes, at the moment you'd better stay on v4.2.0 until a new version of mbedlib is released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants