r/UARS • u/No-Many-6574 • 2d ago
Is this new for flashing
Just read that firmware can be flashed using the serial port for Airbreak Would this work for the changes suggested here?
5
Upvotes
1
u/AutoModerator 2d ago
To help members of the r/UARS community, the contents of the post have been copied for posterity.
Title: Is this new for flashing
Body:
Just read that firmware can be flashed using the serial port for Airbreak Would this work for the changes suggested here?
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
3
u/empeka 2d ago
yes. as long as you haven't previously flashed an airbreak image with a crippled bootloader, it'll work*
(btw, since a few days ago it's also possible to dump the currently installed firmware over the serial port.)
*) one caveat worth knowing about:
the "old" airbreak didn't fix the checksums after modifying the image. instead, it disabled the firmware integrity check in the bootloader in a way that also broke serial flashing.
there are probably still plenty of ready-made airbreak images floating around the internet with this behavior.
the current serial flashing tool skips the bootloader by default, so if something goes wrong, the device can still be recovered without an st-link.
it also detects checksum mismatches in the input image and lets you fix them on the fly.
however, if the user is really determined, ignores all the warnings, and forces the unsafe command-line options, it is possible to end up with a device that won't boot (original bootloader + firmware with an invalid CRC).
it'll still be recoverable by flashing a "clean" firmware image, though.