TI-Planet / webdfu_numworks

Web-based NumWorks calculator OS updater (WebDFU fork)
https://ti-planet.github.io/webdfu_numworks
Other
14 stars 11 forks source link

[Suggestion] App Uninstaller/DFU Reset #4

Open imreallyliam opened 4 years ago

imreallyliam commented 4 years ago

I've recently experienced a bug with an app I installed and am wanting to uninstall it. I tried everything, from resetting it to doing a full firmware reset. The solution I found works was actually writing 0xFF to a 8mb file and then writing it to the calculator.

adriweb commented 4 years ago

Hm I'm not an expert on that matter, what do @zardam and @boricj think?

boricj commented 4 years ago

I'm not sure exactly what was going on, because normally the first step in flashing a firmware is performing a mass erase on the Flash. If a mass erase is not performed but rather individual sectors erases for the area the firmware will take, it is possible that the TAR file located further away from the firmware will survive the operation.

The bit about flashing a file with 8 MiB worth of 0xFF bytes was a way to force the equivalent of a mass erase no matter what TI-Planet's DFU page was actually doing. It also raises questions about how external storage is handled and how it should be handled going forward, but that's a separate issue.