Does anyone know if you can read and/or set the fuse bits from software?
It would be nice to have your code not run and flash a led or print an error message if the fuses are not set correctly.
Fuse- and lock-bits can be read by software. Lock-bits can be set by software at least from the boot-section. Writing fuses and reseting locks is not possible from software - as far as I know. There is a fine datasheet, i.e. section "Reading the Fuse and Lock Bits from Software" in the ATmega16 datasheet.
I just spaced right past it.
© 2020 Microchip Technology Inc.