11

The answer needs to have multiple parts: Yes, in principle you can create a bootloader for any microcontroller, which acts like the Arduino's. Please be aware that there are different bootloaders, not just the common STK500 compatible one. Each of these bootloaders implements a certain protocol to transfer the binary code to the target system. ...


9

No, the ATmega's ISP does not operate over the UART pins but only the ISP pins. To program it via a UART, you need to first load a bootloader, unless your chip was pre-programmed by the vendor, something some offer as a value-added service (or even as an essential stock item, with an Arduino type bootloader)


3

There is a solution with SD card and SD bootloader. You put a bin file on SD card, insert it into the SD adapter and power up the Arduino. The bootloader loads the bin file to flash memory. I use 'avr_boot' SD bootloader by Zevero. It reads a file named firmware.bin from SD card if present and loads it into flash. To generate a bin file for Arduino AVR ...


2

On ATmega328p and similar ATmega MCUs with bootloader support, the application is not allowed to write to flash. Only code running in bootloader area of the flash memory is allowed to write to flash. Bootloader area is at the end of the flash and the beginning is set with the BOOTSZ fuses. The write to flash page is done in two steps. First step is deleting ...


2

The question asks about Y problem. Here is the solution for the problem X in this X->Y situation. I require a slower upload speed than the 115200 baud rate used in the Uno's Optiboot bootloader. The Optiboot bootloader can work on different UART baud rates. The baud rate is configurable as parameter of the make command at build. If don't want to setup ...


2

Yes it will. Both the Arduino Duemilanove and Arduino Uno use the ATMega328P microcontroller. (There is also a version of Arduino Duemilanove ATMega168 that uses the Diecimila bootloader and that is not compatible, so just watch out). The main difference between the Arduino Duemilanove and the Arduino Uno is that the Duemilanove uses FTDI FT232R IC, ...


2

The problem was with the Arduinos i have received from AliExpress All of them are using WAVGAT AVGA 328P-AU chips. I flasthed other Atmel MEGA 328P chip based Arduinos using USbasp and it's working fine. But i dont know how to flash those WAVGAT AVGA 328P-AU chips.


2

I can see you are on Linux so I won't give you instructions for using AVR Studio - but do know that if you have access to a Windows machine that is another option you could try. I can't tell you exactly why it is not working through the Arduino IDE - it could be that the settings are not set correctly or any number of reasons. What I can say is that it is ...


2

The Arduino builder creates for AVR boards not only hex file for the sketch, but it creates a combined hex with bootloader and sketch too. It is for example for Blink.hex a Blink_with_bootloader.hex. If you use in IDE the "Export compiled binary" command in Tools menu, the builder puts the hex files next to ino file in your sketch folder. If you want the ...


2

You cannot just load a sketch into any microcontroller, because every microcontroller has different memory layout, peripherals, ways of uploading, FLASH size etc. You can use the atMega (or any microcontroller) for production purposes though. Of course each MCU type has operation conditions (like min/max temperature), so in e.g. automotive or military ...


1

There is no specific piece of hardware that does what you ask. There are various options though: Write a new bootloader that uses the USB Host Shield to load data from a USB MSD device then flash it to the internal flash of the MCU (hard to do if you don't know low-level programming) Use an embedded Linux computer (Raspberry Pi, etc) to run avrdude and ...


1

You can use a second Arduino as a standalone programmer for it, either to upload your sketch directly, or to upload a bootloader (after which you'd upload your sketch in the normal way). The example program, ArduinoISP, uploaded into the second Arduino is what can do this. Here is a link to a how-to article for doing just that. If you haven't already ...


1

The bootloader is a 'program' that resides inside the Atmel IC and makes that IC an 'Arduino'. The bootloader takes care that a sketch can be retrieved by UART (via the USB) and stored inside the Arduino. The programmer is an external hardware device that can upload a sketch without using the bootloader. Another Arduino can also be used as programmer. In ...


1

Problem solved. The standalone CH340-based converter for whatever reason isn't man-enough to reliably pull down the RX0 line when connected to the Mega 2560 (also with a CH340 converter on board). I've seen suggestions posted in various places that this can be a problem with respect to DTR (though I don't have a problem with it). My solution is to insert a ...


1

The bootloader doesn't care about how many pins the device has. All it cares about is the UART pins, and they are the same. Internally the two chips are the same, it's just the packaging that is different. They take the same silicon chip and mount it on a different lead frame and encapsulate it in epoxy. Which is why the only pin differences are a couple of ...


1

It seems that you are using too high programming speed. SCK period al of 0.1 us renders 10 MHz, which is to fast if crystal is working at 8 MHz. Not sure where to change it in Arduino environment, but you should add this key to avrdude.exe run string: avrdude.exe -B 8 This will set programming speed to 125 kHz. Also I suggest you to buy a cheap USBasp ...


1

use Zadig 2.4 to change the driver for USBasp. USBasp works with 3 drivers but it seems the type of installed driver causes some problems in various software. khazama, progisp on one hand and Arduino on the other hand. despite all of them using avrdude. libusb-win32 : khazama works, Arduino does not WinUSB : khazama doesn't work, Arduino works ...


1

The principle is the same, it's all only ISP (In System Programming), and nothing different from any other microcontroller, that uses ISP. Look at the descriptions of the used pins for the 8-pin Attinys, then connect the pins with the same description on your 20-pin chip. Namely you have to connect the pins MOSI, MISO, SCK, RESET, VCC and GND. MOSI and MISO ...


1

It appears to me that there must be some sort of prepackaged firmware on ESP8266 modules that allows user firmware to be loaded via the Rx/Tx pins on the ESP8266. Indeed there is. If that firmware is corrupted, the ESP8266 is dead. Well, if that firmware gets corrupted, then yes indeed the chip is dead. That's because the firmware is in ROM, not flash -...


1

If you have a timeout issue please ensure the crystal used on board is 16 Mhz. change mega.menu.cpu.atmega2560.upload.protocol=wiring To: mega.menu.cpu.atmega2560.upload.protocol=stk500v2 Thank you! Solved my problem!


1

I tried all the solutions listed on this page: changed ports, checked correct port on Arduino IDE, restarted, reconnected, bought a new arduino mega, etc. Nothing worked. Finally gave up and used the web version of the Arduino IDE and it worked just fine.


1

I managed to figure this out after hours of searching. I wanted to flash the new Nano bootloader to my Nano, but it would fail with the same error as you. For some reason, after Arduino 1.8.5, AVR boards with "Arduino as ISP" were changed so that they no longer work for me. The solution for me was to revert programmers.txt to what it was on 1.8.5, i.e. ...


1

I got this same error when my Arduino COM port was busy with other apps. I closed that app and upload Arduino sketch and error disappeared.


Only top voted, non community-wiki answers of a minimum length are eligible