I would like to store calibration constant, serial number, keys in my seeedruino's XIAO module, and expect them to stay unchanged when i upload new sketch to it.
Can it be done? if so, any example or pointer? Thanks!
I would like to store calibration constant, serial number, keys in my seeedruino's XIAO module, and expect them to stay unchanged when i upload new sketch to it.
Can it be done? if so, any example or pointer? Thanks!
To make a one time storing You need one special code to do that.
Then, if there's a way to store it permanently, that's more difficult. Recently a very similar question passed here and the answer was not positive. Using an external none volatile memory, yes.
For Your controller, let's wait for a more knowing helper.
Which XIAO do you have @xc2947?
I see there are at least three different versions, using different microcontrollers:
Although I don't know it for certainty, it is possible the suggested solutions will depend on which one you have.
OK, that is the ATSAMD21G18-based one.
I think the "go-to" solution for non-volatile storage on this chip is the "FlashStorage" library:
However, as you perhaps are already aware, the data are lost on every upload so that approach won't meet your requirements.
I do see this:
but I don't know anything about it.
Other than that, I can't think of any solution other to use some form of external memory for your non-volatile storage needs.
I did read about the first warning, and I will check the second link you post, thanks!
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.