mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-05-09 08:25:44 +02:00
[GH-ISSUE #329] Save Python scripts to flash storage #146
Labels
No labels
bug
duplicate
easy
enhancement
enhancement
fixed
fixed
good first issue
hard
invalid
pull-request
wontfix
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Upsilon#146
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @andrigamerita on GitHub (Jun 26, 2023).
Original GitHub issue: https://github.com/UpsilonNumworks/Upsilon/issues/329
Is your feature request related to a problem? Please describe.
When the calculator crashes, or I simply just need to go through the bootloader to switch between Upsilon and Epsilon, all Python scripts are lost, since they're only saved to SRAM. I can only rarely backup them to the NumWorks website to avoid losing them, and I can even more rarely restore them after a reset (because I don't have a PC at hand 100% of the time).
Describe the solution you'd like
There should be some way to save the Python scripts to the available flash storage.
The ideal solution, I think, would be having Python directly work on the flash storage, and this would mean 2 main benefits:
However, I can imagine that this would be hard to implement, since the entire Python IDE is built to work on the SRAM, and so would require big changes.
A good alternative, that doesn't grant any storage advantage, but still allows for scripts to never be lost on reset, would be to integrate some sort of automatic backup system into the Python IDE:
@AngeDieu commented on GitHub (Jun 28, 2023):
This could lead to a very great number of erasing-writing in the flash memory, that could wear it out prematurately. (see the warning of the KhiCAS flash writer)
Maybe a button (with a warning) allowing to update the flash could be created, rather than an automatic job. It would be a good compromise, allowing users to use it when they want, and therefore less than each time they exit Python.
@UnknownAMD commented on GitHub (Sep 14, 2023):
bump