Skip to content
This repository has been archived by the owner on Jul 6, 2019. It is now read-only.

Generate layout.ld from templates + data #408

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mcoffin
Copy link
Contributor

@mcoffin mcoffin commented Dec 6, 2016

Fix #329

Obvously, k20 is still a special case, but I think this gives a good base on which to build a generator that will work generically accross all supported MCUs. (We still have #109) to track the k20 layout in.

I would make an attempt, but I don't have a k20 board or anything, so maybe @bgamari could take a look at some additions to this generator?

I think the way forward is to have like flash_config: Option[McuFlashConfig] in McuLayout and then struct McuFlashConfig { ... } elsewhere... but that could be a naive solution that I just came up with at first glance.

@coveralls
Copy link

coveralls commented Dec 6, 2016

Coverage Status

Coverage remained the same at 85.657% when pulling c3e54e6 on mcoffin:layout-mcu#329 into 64aa605 on hackndev:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same at 85.657% when pulling c3e54e6 on mcoffin:layout-mcu#329 into 64aa605 on hackndev:master.

@mcoffin
Copy link
Contributor Author

mcoffin commented Dec 6, 2016

Looks like rebuilding everything for every example is starting to bit us in the butt a little. Might have to split each example in to it's own travis matrix now, which would... suck to say the least. Or at least provide a way to build example subsets until we could finally use cargo's [[example]] again.

@mcoffin
Copy link
Contributor Author

mcoffin commented Jan 7, 2017

@farcaller I'm gonna hold off on this until we can fix the build times issue, especially since it doesn't truly add a ton of value quite yet until the generator can get more advanced.

@@ -0,0 +1,3 @@
---
vectors: rom
memories: []
Copy link
Member

Choose a reason for hiding this comment

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

This naming is slightly awkward. Why not memory_ranges?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed. Much better.

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

Successfully merging this pull request may close these issues.

3 participants