I am creating a standalone arduino project and I should program bootloader on the Atmega 328P.
I use an USBasp device and the MCU is recognized.
I programmed it using a video on youtube, but the LockByte was set to 0x0F so I programed it like that
Now I cannot detect the MCU anymore
Each time I try to detect I have the following message in AVRDUDE :
avrdude.exe: set SCK frequency to 1500000 Hz avrdude.exe: warning: cannot set sck period. please check for usbasp firmware update. avrdude.exe: error: programm enable: target doesn't answer. 1 avrdude.exe: initialization failed, rc=-1 Double check connections and try again, or use -F to override this check.
I would like to reset this lock byte to the right value 0x3F, or completely erase the ship to redo the programing.
Do you know a way ?