Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arduino: Dictionaries extending in EEPROM #98

Open
4 of 7 tasks
mitra42 opened this issue Mar 7, 2021 · 2 comments
Open
4 of 7 tasks

Arduino: Dictionaries extending in EEPROM #98

mitra42 opened this issue Mar 7, 2021 · 2 comments
Labels

Comments

@mitra42
Copy link
Owner

mitra42 commented Mar 7, 2021

Idea is to have dictionaries extend in EEPROM rather than RAM -

  • JS: extend the Mem classes to have an EEPROM reserved write area
  • C: extend code that decides ROM v RAM to have EEPROM area as well
  • Use EEPROM.build(xx) to reserve some of that area
  • Instead of switching pointers to Ram, switch to EEPROM on startup -
  • Allow switching pointers dynamically, so can test in Ram, then go back to EEPROM and write, then test more in RAM
  • Figure out how to know have EEPROM initialized
  • Make sure to test with EEPROMSIZE 0 or undefined e.g. for Arduino

See

@mitra42 mitra42 added the NextUp label Mar 9, 2021
@mitra42
Copy link
Owner Author

mitra42 commented Mar 9, 2021

  • Think through design - issues ...
    • Phase 1: Writing to ROM, variables in RAM
    • Phase 2: Writing to EEPROM, variables in RAM
      • independent of whether EEPROM has been committed or not.
    • Phase 3:
      • Operating after booting with EEPROM

Sorry, something went wrong.

@mitra42
Copy link
Owner Author

mitra42 commented Mar 9, 2021

JS build - on separate branch

  • Add extra memory Eeprom - like Ram and Rom
  • Extend Mem class to check it
  • define useEprom, like useRam

Sorry, something went wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant