cmaglie / FlashStorage

A convenient way to store data into Flash memory on the ATSAMD21 and ATSAMD51 processor family
203 stars 69 forks source link

Persist data when uploading new sketch #26

Open probonopd opened 5 years ago

probonopd commented 5 years ago

Is there a way to persist data when uploading new sketch?

The README says:

The content of the FlashStorage is erased each time a new sketch is uploaded?

Yes, every time you upload a new sketch, the previous content of the FlashStorage is erased.

There are use cases where you want e.g., configuration data to survive the upload of a new sketch version.

If this is absolutely not possible, is there at least a way to read out the old data, then merging it with the compiled new sketch prior to uploading the new sketch?

pomplesiegel commented 5 years ago

I'm curious if it would be possible to specify the "user page" as the location for the FlashStorage to be stored, as that could potentially achieve this. Any thoughts?

FedeBev commented 4 years ago

Hi there, what about this?

HarshadZade commented 1 year ago

Hey there, Did anyone find a solution to this?