EEVblog Electronics Community Forum

Products => Computers => Programming => Topic started by: foxhole99 on March 10, 2020, 02:56:53 pm

Title: ATMEGA328P U defult firmware
Post by: foxhole99 on March 10, 2020, 02:56:53 pm
I have an ATMEGA328P U that I messed up the programing for. I wanted to get the default firmware on it. Is there a download to a .bin file that I can use my TL866II Plus to reprogram it? I'm new to this so I'm not sure if that's what I need. I used an Arduino Uno, I have that chip on the board but I can't upload any sketches to it.

Edit. before I started messing with it I did do a backup. or thought I did a backup of the chip. I tried to reload the "backup" but nothing seems to be working.
Title: Re: ATMEGA328P U defult firmware
Post by: TK on March 10, 2020, 03:06:15 pm
If the chip is from an arduino uno board or compatible, it has a bootloader called optiboot that can be reprogrammed using another arduino or an avr programmer. If by default you mean the arduino sketch, originally only has a sketch that does some sort of self test and blink the onboard LED.
Title: Re: ATMEGA328P U defult firmware
Post by: DrG on March 10, 2020, 06:41:20 pm
I have an ATMEGA328P U that I messed up the programing for. I wanted to get the default firmware on it. Is there a download to a .bin file that I can use my TL866II Plus to reprogram it? I'm new to this so I'm not sure if that's what I need. I used an Arduino Uno, I have that chip on the board but I can't upload any sketches to it.

Edit. before I started messing with it I did do a backup. or thought I did a backup of the chip. I tried to reload the "backup" but nothing seems to be working.

Could be a number of things. I would suggest that you consider reprogramming the fuses since you have a TL866II which can do HVPP - right?

https://www.youtube.com/watch?v=UuHpA8OjblE (https://www.youtube.com/watch?v=UuHpA8OjblE)

LOTS of info when you search for Bricked Arduino.

Hope this helps.
Title: Re: ATMEGA328P U defult firmware
Post by: foxhole99 on March 10, 2020, 08:19:55 pm
I do have the programmer. Let me do some searching
Title: Re: ATMEGA328P U defult firmware
Post by: TK on March 10, 2020, 09:19:28 pm
The UNO bootloader is distributed with the Arduino IDE.  You can find under the Arduino installation folder (directory).  The firmware has the .hex extension, and you need to google also for the right fuses to set and also the protection fuses to avoid erasing the bootloader in the future.