Hello all,
I am very new to Maple and i have (i believe) a basic understanding on Arduino language. I have many difficulties understanding the way the Mapple's EEPROM library operates and since i am not an Electronic engineer i am also unable to understand many of the concepts of the Flash EEPROM emulation process mentioned on the STM32 document. My questions are spread in many aspects of how the library is utilized (even with the example) and what type of data can be stored. If you please, please, please make or refer to a good tutorial on how to use the library and what limitations it has. In other case please explain to me the basics of how to use this.
Thank you
Constantinos
EEPROM-FLASH
(5 posts) (4 voices)-
Posted 4 years ago #
-
I ended up wrapping code from the bootloader libraries into my standard libraries that allows you to unlock and write to flash. There was some discussion about it here:
http://forums.leaflabs.com/topic.php?id=550#post-2942
it requires a bit of hacking, but may be included in future releases of the IDE if the maple folks choose to do so.
Posted 4 years ago # -
this is on the stack to be added as either a library or to libmaple. I should clarify, however, that there is a difference between EEPROM and Flash memory. Maple does not come with any onboard EEPROM, but it does come with 128KB of flash memory. Both these memory types are non volatile and unless you *really* meant EEPROM, you can probably use the flash ;)
In the event you just want to stuff some static data into flash at compile time you can tag your data structure like this:
int myAwesomeThing[18240] __attribute__ ((section (".USER_FLASH"))) = {element1, element2...};
where 18240 integers would definitely not fit in RAM, but fit happily in FLASH. If you want to write to FLASH at runtime, checkout that good thread structuresound pointed out - but officially its not yet supported. Be careful with runtime flash accesses as you only get ~10,000 read/write cycles!
Posted 4 years ago # -
Thanks for the replies,
Making myself more clear i need to create a procedure that will load all previously stored data in an array (during boot up) and additionally give the ability to the user to edit the data, delete them and store them in the Flash memory of the STM32 as if you would in a text file. All this must include characters and unsigned integers. In this case what you would recommend me to go with and if you may how?
Thanks
ConstantinosPosted 4 years ago # -
See this thread
http://forums.leaflabs.com/topic.php?id=196Posted 4 years ago #
Reply
You must log in to post.