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

target.json and linker script need a place to stay #1

Open
mbr opened this issue Sep 24, 2016 · 0 comments
Open

target.json and linker script need a place to stay #1

mbr opened this issue Sep 24, 2016 · 0 comments

Comments

@mbr
Copy link
Member

mbr commented Sep 24, 2016

Regardless of how the embed crate will look like, we still need a convenient way to include linker scripts and target.json files. As a start, I could stuff the ones I have either into embed-rs or a separate repository.

Furthermore, I think they will be hard to share; initially the target.json one I wrote for the STM32F429i-Discovery was simply titled thumbv7em-none-eabi.json, which turned out to be not accurate enough. Now working on an STM32F103CBT6 project, the target file is the same except for the -mcpu setting (which changed from -mcpu=cortex-m4 to -mcpu=cortex-m3).

It seems there is little one can do to prevent this fragmentation and we should be prepared to have one target per board/MCU.

Linker scripts are similarly an issue, if not worse: Due to changing Flash and SRAM-sizes depending on model, I can almost guarantee that there are changes necessary for each and every MCU.

To sum it up, each user project needs at least two extra files at the moment that we need to store and ship somewhere; I would personally attach them in a separate directory in the embed-rs repo; but if anyone argues for an extra repo (where they will most likely end up eventually), I won't object.

@mbr mbr mentioned this issue Sep 24, 2016
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

1 participant