Skip to content

Portable error messages if ML is loaded on a different camera or firmware version

Alex requested to merge branch/portable-error-messages into branch/unified

This experiment made possible a much nicer error handling when ML is loaded on a different camera or firmware version. Rather than freezing and attempting to blink a LED, we can now turn on the display from bootloader and print a nice error message, explaining the user what's going on and what to do.

The easiest way to test this is if you have two cameras. Compile ML for camera A, put the card inside, and it should work just fine. Put the same card in camera B, and it should print a nice error message.

If you only have one camera, you can upgrade or downgrade your Canon firmware to a different version (links), and ML should display the error page. Upgrade your Canon firmware back to your original version, and ML should be up and running again.

@ reviewers: can you suggest some better messages for the error page?

Here's a binary that just displays the error page and nothing else: autoexec.bin

edit: 7D works as well, thanks g3gg0!

Merge request reports