Reboot to bootloader
1 unresolved thread
1 unresolved thread
Compare changes
+ 20
− 2
@@ -2,6 +2,7 @@
@@ -29,6 +30,11 @@
@@ -68,6 +74,18 @@ int mount(void)
@@ -242,8 +260,8 @@ int main(void)
This implements rebooting to bootloader via os.reset(True)
. To do that we modify the bootloader so that it checks for a special file named .mscmode
and if it's there it removes it and runs msc()
. On Python side we declare .mscmode
as a restricted file and create it before rebooting if needed.
This also improves update-bootloader.bin
building because I didn't get a debugger :D It now automatically uses the latest bootloader, so you can grab update-bootloader.bin
.