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

EEPROM support and flash page / flash size approach #79

Open
disk91 opened this issue Aug 4, 2024 · 2 comments
Open

EEPROM support and flash page / flash size approach #79

disk91 opened this issue Aug 4, 2024 · 2 comments

Comments

@disk91
Copy link

disk91 commented Aug 4, 2024

The notion of flash page and page size requested by the SMTC api is not really good for having a correct abstraction. THis is really related to a technology of flash and should not be concidered by the LBM stack. It up to the MCU to manage the flash and pages as it needs to manage it.

As an example, STM32WL implementation uses a virtual eeprom system and the underlaying flash paging system is abstracted. The LBM should only request a linear storage zone, up to the mcu interface to deal with the paging when required.

@opeyrard
Copy link

Hi,
It is used only for store & forward feature (flash page & page size).
The store & forward algorithm is based on this memory structure.
In your implementation, do you need store & forward ?
We also provide an example with an eeprom (STM32L0 example) but without store & forward.
Many thanks,
Best regards

@disk91
Copy link
Author

disk91 commented Sep 17, 2024

I understand your ploint and it's not blocking for me, but my point is still : a library should not care about the final storage technology ; it's a constraint at the end.

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