-
Notifications
You must be signed in to change notification settings - Fork 132
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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 for STM32 and/or AVR #252
Comments
There's nothing in modm implemented, since STM32 only supports EEPROM emulation via programming FLASH and we don't have a Flash abstraction. (Flash abstraction would be very useful for many other things too). For AVRs you can attribute a variable as (The SCons Avrdude wrapper also supports but doesn't expose fuse programming either). |
What do you mean by FLASH abstraction? Some class, describing flash layout? |
An HAL driver API for writing to Flash, with information from modm-devices about Flash section size and number and firmware size etc. Would be useful for bootloaders etc. Oh wow, I stand corrected, the STM32L0 have a hardware EEPROM (up to 6kB)! |
Yeah, I've seen that appnote and was hoping modm has a better solution for this. |
A better solution, than that appnote, I meant. modm in general tends to have solutions to many problems the better IMO than other HALs. |
I know, my confused smiley was directed towards the ST code quality ;-P
Yeah, that's what got us into this mess of writing our own HAL… 🥴 |
That flash abstraction class should go both in |
Well… I would let a hypothetical At least that's what we currently use for external SPI flash drivers (and heap and file system implementations). So it might not be completely the right abstraction for internal Flash. |
There's also the limitation that you cannot write-while-read the Flash, so you probably have to relocate the writing parts of your flash driver code into executable (!) SRAM, which is something that modm doesn't have a section for yet ( |
Just FYI, there is a very basic Flash driver for the STM32F4 and STM32G0 now, that implements some functional abtraction for erasing/writing Flash: #417. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
The question is in the title - is there any way to create a persistent storage for rarely-changing, but not compiled items?
The text was updated successfully, but these errors were encountered: