How to get rid of all save() flash memory code? #520
Replies: 4 comments
-
Posted at 2016-01-07 by @gfwilliams That's odd. Does it work better if you do There isn't a way to 'mute' save I'm afraid, but using Have you seen the Flash EEPROM Library - that will allow you to save data to flash memory, but it does so using a simple 'journalling' system which means that all of the flash memory gets used up before it is erased. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-01-07 by UliMerkel Hi Gordon, looks like the setSleepIndicator() is not affected by the save() for whatever reason. thanks for the link to Flash EEPROM Library, I will have a look. For codingnights, I just create a sequence of experiments with the 'bare' PICO |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-01-08 by UliMerkel Hi Gordon,
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-01-08 by @gfwilliams Ahh, thanks! I just fixed this, so it'll be in the next version |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2016-01-07 by UliMerkel
I experiment with some standalone datalogger which issues save() internally for data persistency.
When I use reset(), the code is still in the flash memory and can be used with load(). That's OK.
But what is the correct way to reset the flash memory to a neutral state?
For the moment in time I use "reset();save()"
But when the PICO is connected to a USB I get a constant green LED and the dump() says:
1st question:
So is there a way to clear the flash so there is no "setSleepIndicator(B12); digitalWrite(B12,1);" ?
2nd question:
Is there a way for a 'mute' save().
save() generates a lot of output to the console; in standalone this may overflow the buffers.
Greetings from Frankfurt/Germany, Uli
Beta Was this translation helpful? Give feedback.
All reactions