Answer the question
In order to leave comments, you need to log in
File storage on MK?
The bottom line is that somewhere you need to store the data of the default setting and the last measured parameters and so that the settings are saved after the restart, so I want to keep the data in a file, but how to place it in the MK without third-party flash memory?
Answer the question
In order to leave comments, you need to log in
eeprom and not in the file.
What prevents you from attaching an external sd or, for example, an SPI flash per megabyte or 8?
Delve into the datasheet on the mk
depends on the MC. This can be an EEPROM or (if the controller allows it) a piece of flash memory for a program used for other purposes (or for its intended purpose, again, depending on which MK)
Well, either use it in external storage (there are a bunch of EEPROMs connected via I2C or SPI)
User Manual for your controller. Page 607 just tells how to work with the built-in flash memory.
Specifically, the MK did not work with this, but the general impressions are as follows.
Your program is in flash memory. If you want to load some special information into the built-in flash, then you need to allocate a special place in the flash for this. In the IDE, when creating a project, or in the project properties, you can search, and / or there is a separate file with memory delimitation. Well, it is clear that there will be less space for the program.
Besides, it's still a flash. Accordingly, there is a resource limit for recording. If you write there often, it will end quickly. It is necessary to evaluate whether there are enough write cycles for the lifetime of the device. Otherwise, you need either an external removable flash, or you need to allocate an excess amount for this data and monitor its uniform use (as in an SSD).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question