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

8 byte stack alignment and some definition changes for RAM on L4 devices #70

Closed
wants to merge 3 commits into from
Closed

Conversation

PhSc
Copy link

@PhSc PhSc commented Jan 28, 2018

Edited the linker script for stack alignment. It is a problem with newlib, that printf and scanf only works fine for floats if the stack is aligned to 8 bytes. See also RIOT-OS/RIOT#1891.

Some L4 devices have a non-contiguous RAM address space. These definitions for memory size were changed to avoid run time errors.

The two SRAM address spaces aren't contiguous on devices from L471 to L486. This led to run time errors (hard fault) on the first call in the start up file.
For the use of printf and scanf it is mandatory, that the stack is 8 byte aligned.
@PhSc PhSc closed this Feb 9, 2018
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

Successfully merging this pull request may close these issues.

1 participant