I'm working on a project want to read the 4 MHz calibration byte and store that in the last home of flash, and then program my atmega 32 AVR using avrdude.
In a batch file Ive written a code that do that for me . In my C code I have written a code which reads the last home of the flash and store that in OSCCAL.
when all the lockbits are disabled , my program works properly . But when I Set the lockbits I cant read that home .
please help me to solve the problem!!!
SomeOne suggested me to use bootloader section but i dont know anything about that . does anyOne know the way to use bootloader ?