Skip to content

Added persistent storage via built-in 1KB EEPROM#4

Open
ryderhutchings wants to merge 2 commits into
Arc1011:mainfrom
ryderhutchings:main
Open

Added persistent storage via built-in 1KB EEPROM#4
ryderhutchings wants to merge 2 commits into
Arc1011:mainfrom
ryderhutchings:main

Conversation

@ryderhutchings

Copy link
Copy Markdown
  • Adds saveFS() and loadFS() functions
  • Persists virtual filesystem across power cycles using built-in 1KB EEPROM
  • Auto-saves on touch, mkdir, rm, and echo writes
  • Adds sync command to manually force a save
  • On boot, loads from EEPROM if valid data exists, otherwise initializes defaults

@ryderhutchings ryderhutchings changed the title Add persistent storage via built-in 1KB EEPROM Added persistent storage via built-in 1KB EEPROM Apr 28, 2026
@ryderhutchings

Copy link
Copy Markdown
Author

@Arc1011 What are your thoughts on this PR?

@PPPDUD

PPPDUD commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

@Arc1011 What are your thoughts on this PR?

It's possible that they're not merging it yet because there are unresolved conflicts.

@ryderhutchings

Copy link
Copy Markdown
Author

@Arc1011 What are your final thoughts on this PR?

Comment thread KernelUNO.ino
}

void saveFS() {
EEPROM.write(EEPROM_ADDR, EEPROM_MAGIC);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EEPROM.write() should not be used unless it's absolutely necessary because it wears out the EEPROM chip; instead, use the EEPROM.update() function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants