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

New RTC Has No NVSRAM #135

Closed
frishkorn opened this issue Apr 14, 2017 · 5 comments
Closed

New RTC Has No NVSRAM #135

frishkorn opened this issue Apr 14, 2017 · 5 comments
Assignees
Labels
Milestone

Comments

@frishkorn
Copy link
Owner

PCF8523 contains no NVSRAM like the DS1307, this will cause issues with reloading the last project, as well as what time format user selected. Will need to find a work around.

@frishkorn frishkorn added the bug label Apr 14, 2017
@frishkorn frishkorn added this to the Future milestone Apr 14, 2017
@frishkorn frishkorn self-assigned this Apr 14, 2017
@frishkorn frishkorn modified the milestones: Version 2.2, Future Apr 15, 2017
@frishkorn
Copy link
Owner Author

frishkorn commented Apr 15, 2017

Can use the EEPROM emulation on the flash. However the draw back to this is more write wear compared to a traditional EEPROM. Due to this the follow actions should be taken.

  1. Remove the heartbeat code.
  2. Only when user presses the SELECT button to start the timer, should the last used project be written.
  3. Pressing the RIGHT button to change format time will need to write to flash.
  4. Changing time for shall update the counter.
  5. A counter should be created to keep track of how many time the flash has been written to.
  6. That counter should be displayed over Serial at startup.

@frishkorn
Copy link
Owner Author

Removed all code dealing with heartbeat.

@frishkorn
Copy link
Owner Author

Good library to use to utilize emulated EEPROM address space on ATSAMD21. https://github.com/cmaglie/FlashStorage

@frishkorn
Copy link
Owner Author

New code for Flash EEPROM has been added. Old nvram code has been removed. Testing now.

@frishkorn
Copy link
Owner Author

Operations are now working as expected and this issue can now be closed.

This issue was closed.
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