mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-05-09 08:25:44 +02:00
[GH-ISSUE #355] Calculator reset while moving between slots on n0110 #163
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#163
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 @Kaki-In on GitHub (Jan 6, 2024).
Original GitHub issue: https://github.com/UpsilonNumworks/Upsilon/issues/355
Describe the bug
When you install Upsilon on an n0110, you can install it on two slots. The problem is, that you cannot switch between both ("reset" button) without resetting the calculator and so deleting all files.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
When you can install to different OSes, it could be great also to switch between both without loosing all your data at each time you do that.
Device (please complete the following information):
1d00d7d@Yaya-Cout commented on GitHub (Jan 6, 2024):
The Python scripts are stored in RAM. When you press RESET, the RAM is cleared, which is intended.
There is already a pull request which would allow switching from any slot to the Upsilon slot without losing the storage (by backuping the storage in the SRAM, and not reseting the calculator). However, this requires cooperation from the slot, so this is only possible in one way, because we can't edit the slot.
Another solution is to back up the RAM storage into the flash (like for the Archive mode on TI calculators), but the flash has a limited cycle count and is read-only in some cases (when you are on the slot A, the slot B is locked). This solution would not be compatible with Epsilon.
@Kaki-In commented on GitHub (Jan 6, 2024):
Ok, I understand better now.
Thanks for having answered!
@romain1235 commented on GitHub (May 1, 2026):
can we press the reset button without deleting the ram? if yes, we can maybe add an option in the bootloader to reset and else, only changing slot.
@Yaya-Cout commented on GitHub (May 1, 2026):
We can already reset without deleting the RAM if we do a software reset (which is mostly just an intentional crash). When we added the storage recovery feature, we thought RAM wasn't cleared when using the reset button, but after trying to make it work, we realized that the RAM was actually always cleared when pressing the button, which means we can't recover the storage in this case (unless we use the flash to persist files, which isn't really what we want due to flash wear).
But even if we add software reset in the settings (the easiest way currently is to open HexEdit with the EXE key, or with OK then ↑, both will crash the calculator), we still have the issue that the slot itself clear the RAM during normal boot, except for Upsilon's recovery boot.
This means that you can only change slots without clearing storage in the "any slot" → Upsilon direction.