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

SPIFFS won't initialise when booting from second rBoot slot #1922

Closed
mikee47 opened this issue Oct 30, 2019 · 0 comments · Fixed by #1923
Closed

SPIFFS won't initialise when booting from second rBoot slot #1922

mikee47 opened this issue Oct 30, 2019 · 0 comments · Fixed by #1923

Comments

@mikee47
Copy link
Contributor

mikee47 commented Oct 30, 2019

For example, setting up a SPIFFS volume of 2MByte works fine when booting from slot #0 at 0x2000, but switching to slot #1 at 0x202000 fails to iniitalise.

Can result in spiffs_get_storage_config() reporting the requested SPIFFS size is too big.

The problem is with flashmem_get_info() which assumes that memory location 0x4020000 is the start of flash. However, rBoot remaps this address so it falls over. Instead, it should call flashmem_read at location 0. The sector at offset 0x200000 never gets properly initialised so returned data will be unpredictable.

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 a pull request may close this issue.

1 participant