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

Add support for section length arithmetic using + sign as used in stm32f7xx-hal crate. #14

Merged
merged 2 commits into from
Nov 10, 2020
Merged

Add support for section length arithmetic using + sign as used in stm32f7xx-hal crate. #14

merged 2 commits into from
Nov 10, 2020

Conversation

matoushybl
Copy link
Contributor

This change adds support for defining the RAM region's length as 10K + 10M. This type of notation is used in the stm32f7xx-hal crate and flip-link failed with the message MEMORY.RAM found after scanning linker scripts which was also fixed to add the missing not.

Copy link
Member

@japaric japaric left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! The implementation looks good to me.

CI is currently failing due to unrelated reasons. PR #15 should fix that. Will come back and merge once CI is fixed and passing.

@jonas-schievink
Copy link
Contributor

Yeah this seems fine to me, but it doesn't allow multiple RAM regions, right? Just addition in the length specification?

@japaric
Copy link
Member

japaric commented Nov 9, 2020

Yeah this seems fine to me, but it doesn't allow multiple RAM regions, right? Just addition in the length specification?

yeah, the title is not accurate: it doesn't enable multiple RAM regions; it enables arithmetic (addition) in the LENGTH info of RAM regions

@japaric
Copy link
Member

japaric commented Nov 9, 2020

PR #15 has landed. restarting CI still fails though (I re-started the CI job). I think rebasing (or maybe just pushing a new commit?) may be needed.

@matoushybl could you rebase this PR against the tip of the "main" branch?

@matoushybl matoushybl changed the title Add support for defining multiple RAM regions using + sign as used in stm32f7xx-hal crate. Add support for section length arithmetic using + sign as used in stm32f7xx-hal crate. Nov 9, 2020
@matoushybl
Copy link
Contributor Author

Thank you for the fast review, CI seems to be fixed now. I have renamed the PR for future reference so that the name is not misleading.

Copy link
Member

@japaric japaric left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again!

@japaric japaric merged commit 3a9ac30 into knurling-rs:main Nov 10, 2020
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.

3 participants