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

more linker scripts for 4MB flash chips #4040

Closed
everslick opened this issue Dec 28, 2017 · 4 comments
Closed

more linker scripts for 4MB flash chips #4040

everslick opened this issue Dec 28, 2017 · 4 comments

Comments

@everslick
Copy link
Contributor

For 4MB flashes there are only two configurations supported: 1MB SPIFFS and 3MB SPIFFS.

When the binary size of 500KB is reached one is forced to switched from the bigger SPIFFS to the smaller SPIFFS configuration to still be able to use OTA updates. A few more options would allow for a finer grained binary size / spiffs size balance. at least a 2m2m config could be added.

@d-a-v
Copy link
Collaborator

d-a-v commented Dec 28, 2017

@everslick, check this #3722 comment

@everslick
Copy link
Contributor Author

thanks, so i wait until boards.txt.py is merged. but still, boards.txt.py does only create a hard coded list of memory layouts, doesn't it? but i see that a 4m2m config is already planned for inclusion. in the long run it would probably be best to be able to create arbitrary configs by specifying the flash size and the desired size of SPIFFS. (just thinking aloud here)

@d-a-v
Copy link
Collaborator

d-a-v commented Dec 31, 2017

Yes, it currently generates a hard coded list for boards and matching ldscripts files.
It probably is easy to calculate everything from simple inputs.
Once merged it will be opened to enhancements via pull requests.

@earlephilhower
Copy link
Collaborator

I think this is already done, with @d-a-v's changes (i.e. 4m3m, 4m2m, 4m1m options, etc.). If not please could you reopen and explain what you're looking for?

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

3 participants