atsamd-rs / atsamd

Target atsamd microcontrollers using Rust
https://matrix.to/#/#atsamd-rs:matrix.org
Apache License 2.0
537 stars 195 forks source link

"Read-While-Write" EEPROM emulation for ATSAMD21 micros? #705

Open NightEule5 opened 6 months ago

NightEule5 commented 6 months ago

This HAL for ATSAMD51 has support for the NVM and the Smart EEPROM feature. Similar to the SAMD51, the SAMD21 has some flash reserved for EEPROM-like functionality, which can be written while the main program memory is read (called "Read-While-Write EEPROM Emulation" in the datasheet). It's only present on devices with <256KB of flash, and only on some variants (B, C, D, and L)

ianrrees commented 4 months ago

Hi @NightEule5 , and apologies for the slow response! There are certainly functionalities which we don't yet have implemented in the HAL, for chips that we support. I believe you're correct that we don't have an implementation of SAMD21 EEPROM emulation, might you be interested in adding one?