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

Using probe-rs to initialise memory.x #107

Open
romixlab opened this issue Jun 30, 2021 · 5 comments
Open

Using probe-rs to initialise memory.x #107

romixlab opened this issue Jun 30, 2021 · 5 comments

Comments

@romixlab
Copy link

Wouldn't it be great to automatically create a proper linker configuration based on the selected chip? It seems that this information can be easily pulled from yaml files in probe-rs/targets/. Probably someone is already thought about it, in that case just close this right away.

@rubberduck203
Copy link
Contributor

I’m fairly certain there would need to be changes to cargo generate to make something like this work.

cargo-generate/cargo-generate#17

@romixlab
Copy link
Author

Some way of getting values out of yaml files will also be required, maybe it's easier to create a cargo tool tailored specifically for that task...

@rubberduck203
Copy link
Contributor

Oh! Hey! Some of the required functionality landed in cargo-generate v0.6.0!

https://github.com/cargo-generate/cargo-generate#template-defined-placeholders

@romixlab
Copy link
Author

romixlab commented Jul 2, 2021

Great! That can be used for improvements.

As for the memory size part, probably some scripting functionality from cargo-generate will be required. I wonder what would be better, add scripting to cargo-generate or create a special tool specifically for creating embedded projects.

@rubberduck203
Copy link
Contributor

I don’t know much about probe-rs.
Couldn’t we use the same user provided value for memory.x and the probe-rs config?

Of course, that assumes adding probe-rs support to the quickstart.

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