I'd like to have a checksum of the code embedded to the binary. How would I do this?
My application has a custom bootloader. I'd like to get protection from a failed software update to avoid expensive fiend trips. The idea is to have the (protected) bootloader to check that the code in the application area is valid before jumping into it.