Hello!
I have a problem with my mega 2560. Every time I upload sketch using bootloader, I lose bootloader. Then I have to reupload bootloader using USBasp.
Hi, Nixa,
Is it an original arduino (or genuino) I bought a Chinese clone Mega on the internet not so long ago and remember having to install special drivers. The normal drivers seemed to work but caused erratic errors from time to time…
Driver problems are ruled out by the fact that it works once.
Do you have anything connected to the reset line by any chance when you’re trying to upload to it?
Typically this happens because bootrst fuse isn’t set (you say it is), or the chip isn’t being reset when the connection opens, so it’s not running the bootloader.
How do you "make it upload"? Do you use the right arrow of Sketch => Upload? Or do you click upload using programmer? (Yeay, I have seen people do it...)
Upload, write, send code, program micro... My arduino IDE says "Zapiši bootloader", and "Prenesi"
I use USBasp programmer to write arduino bootloader or to send .hex generated bascom.
Only things I programmed with arduino ide are web server for my home heating and cooling system and my 3d printer. Everything else, like datalogers, controll and other simple periferial units, I program with BASCOM AVR. I just use arduino board for simplicity.
I found the problem. It is reset pull up resistor. It is to low, so if there is some program, it doesen't reset. And if I flash bootloafer, there is nothing else but bootloader, it accepts new program.
I can even program it if I manualy reset it at the right moment.