Closed ObiKeahloa closed 3 years ago
For sealed units flashed over DFU, the bootloader will automatically choose the last verified firmware when the watch is reset. While that has become fairly robust, it's still not impossible to brick a sealed unit, especially if you mess up flashing the bootloader itself. I would still recommend the unsealed ones for development, you can always use SWD to re-flash those.
For sealed units flashed over DFU, the bootloader will automatically choose the last verified firmware when the watch is reset. While that has become fairly robust, it's still not impossible to brick a sealed unit, especially if you mess up flashing the bootloader itself. I would still recommend the unsealed ones for development, you can always use SWD to re-flash those.
How do you use the SWD? Do you have to do soldering? And how do you set it up?
As @Raupinger said, the bootloader tries its best to prevent bricking : it keeps a copy of the previous firmware and can revert to this copy in the case new firmware does not run (or if the user manually requests it). However, it depends on how bad the broken firmware is. There are edge cases the bootloader cannot support (ex : the broken firmware overwrite the memory region allocated to the bootloader, run into an infinite loop while still refreshing the watchdog,...).
To use SWD, you need a SWD debugger (STLinkV2, JLink, Black Magic Probe,...). Then you need to connect the 4 SWD pins to the PCB of the pinetime (you need to open it). For this, you can use the cables provided with the pinetime, use the pogo jig, solder the wires, a connector,...
Finally, you need a software on your computer (openOCD, for example) to flash firmware using the SWD interface. You can have a look at the wiki and at this doc for more info.
I think we can close this issue. Feel free to reopen it if you have any other question on this topic.
Title.
Explanation: Incase I were to flash an incompatible/broken firmware is the device gone? anyway to rollback if it doesn't boot?
Planning to buy one so I would like to know before hand.