Closed ryan-summers closed 9 months ago
It looks like sequential-storage is using an internal buffer of 16-bytes, but my flash chip as a write size of 32-bytes.
I think the fix is to size the buffer based on S::WRITE_SIZE instead of 16 bytes
Ah! Ok, yeah that's annoying. I thought 16 bytes was a decent upper limit. I guess STM does indeed use 256-bit words. Annoying. I'll up it for the next release.
Closed by #9
When attempting to call
store_item<>
, I got an internal panic due to indexing insequential-storage
:For reference, the calling
FlashSettings::save()
is what's doing this in the following PR https://github.com/quartiq/stabilizer/pull/811