Hello,
Are there any procedures to check if an ATmega chip has any bootloader in it after doing a "chip erase"?
I'm using mega32A. Installed the bootloader from this thread (first post) ATMEGA32A-PU in place of ATMEGA328 - Microcontrollers - Arduino Forum
Procedure followed:
The programmer used here to upload bootloader, sketches & doing a "chip erase" is USBasp.
Successfully uploaded the bootloader. (Lock fuse is 0X0F in boards.txt)
uploaded blink sketch to check if it is working... It was successful too.
Then tried to upload sketches without using bootloader, so I did a "chip erase" using avrdude gui software.
Read the Lock fuse in avrdude gui & it is 0XFF
Uploaded the blink sketch again & it works, tried with different pins & also successful.
Now, here is the confusion. When the lock bits are 0X0F, according to the datasheet it means
SPM is not allowed to write to the Boot Loader section, and LPM executing from the Application section is not allowed to read from the Boot Loader section. If interrupt vectors are placed in the Application section, interrupts are disabled while executing from the Boot Loader section.
So what is the status of the bootloader after the "Chip Erase"? Any help shall be appreciated.
Thanking you in anticipation.
Good day.