Skip to content

Conversation

@Yaya-Cout
Copy link
Member

@Yaya-Cout Yaya-Cout commented Jun 14, 2025

Fix corrupt slotinfo handling:
With an old Upsilon bootloader (prior to 1.0.13), slotInfo magic was getting corrupted after suspending the calculator on Epsilon. In #9, I added a workaround for people who didn't upgrade, but it was broken (and nobody reported it until today). This pull request fix it.

Add UTF-8 scripts support:
Upsilon.js mostly supported writing UTF-8 scripts (the files just had to be NFKD encoded by the library user manually), but not reading them. I added automatic NFKD encoding on write and changed script reading to handle UTF-8 correctly. UTF-8 characters are automatically stripped on write as the OS isn't supporting it (I had corruption on Epsilon 24, but it's maybe also a bug in my testing implementation) and Upsilon.js won't parse the filename correctly if it's UTF-8-encoded
I tested this change on both Epsilon 24.1.0 N0110 with Upsilon bootloader 1.1.0 - RECOVER and Upsilon e971681.

This PR also fix Epsilon 24.2.1 and 24.3.0. In the previous state, we never set the alternate setting, and Epsilon 24.2.1 started enforcing correct alternate usage. By default, we were using bAlternateSetting=0, which is the Flash. Older Epsilon version didn't check weather the alternate setting was correct.

Found DFU: [0483:a291] ver=0115, devnum=15, cfg=1, intf=0, path="3-2", alt=1, name="@SRAM/0x20000000/01*252Ke", serial="XXXXXXXXXXXXXX"
Found DFU: [0483:a291] ver=0115, devnum=15, cfg=1, intf=0, path="3-2", alt=0, name="@Flash/0x90030000/61*064Kg,64*064Kg", serial="XXXXXXXXXXXXXX"

@Yaya-Cout Yaya-Cout changed the title Add UTF-8 scripts support and fix corrupt slotinfo handling Add UTF-8 scripts support, fix corrupt slotinfo handling and add support for Epsilon 24.2.1+ Aug 7, 2025
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.

1 participant