Replies: 10 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). |
Beta Was this translation helpful? Give feedback.
-
What do you mean by FLASH abstraction? Some class, describing flash layout? |
Beta Was this translation helpful? Give feedback.
-
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)! |
Beta Was this translation helpful? Give feedback.
-
Yeah, I've seen that appnote and was hoping modm has a better solution for this. |
Beta Was this translation helpful? Give feedback.
-
A better solution, than that appnote, I meant. modm in general tends to have solutions to many problems the better IMO than other HALs. |
Beta Was this translation helpful? Give feedback.
-
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… 🥴 |
Beta Was this translation helpful? Give feedback.
-
That flash abstraction class should go both in |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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 ( |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
The question is in the title - is there any way to create a persistent storage for rarely-changing, but not compiled items?
Beta Was this translation helpful? Give feedback.
All reactions