Skip to main content
11 votes
Accepted

Can we burn Arduino bootloader into any microcontroller chip?

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, ...
the busybee's user avatar
  • 2,466
10 votes
Accepted

Why was the Atmega16U2 used on the Arduino UNO as a USB to Serial converter?

First reason I'd guess is price: FT232 on octopart: USD2.65 ~ 3 Atmega16U2 on octopart: USD2.12 ~ 2.2 They can probably get much better deals considering that the Atmega328 is also from Atmel (now ...
Wesley Lee's user avatar
9 votes
Accepted

Can I program a factory fresh Atmega328P through UART pins without burning a bootloader?

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, ...
Chris Stratton's user avatar
7 votes
Accepted

Purpose of USB (FTDI) and ICSP connectors

The ICSP is used for 'bare metal' programming. This what you'd use if you wanted to replace or remove the bootloader, change the clock oscillator settings, or program the device as a bare 328. The ...
Neil_UK's user avatar
  • 404
6 votes
Accepted

Extend program space by getting rid of bootloader on NANO

It's enforcing this line from the arduino:avr boards.txt nano.menu.cpu.atmega328.upload.maximum_size=30720 To be clear, the board is assumed to have a bootloader, even if you're not using it to get ...
timemage's user avatar
  • 5,739
3 votes
Accepted

Help understanding how avrdude works with ArduinoISP and why its not working for me

The target board was not reset. The "Arduino as ISP" sketch uses pin 10 to reset the target, not the SS pin. So even on Mega, wire reset of target to pin 10, not to pin 53. Is this an error ...
Juraj's user avatar
  • 18.3k
3 votes
Accepted

When using an Arduino as an ISP, is the capacitor required or not?

The purpose of the capacitor is to prevent the "master" Arduino (the Mega in the first image above) from resetting when the serial port is opened. If that board resets, then programming ...
Majenko's user avatar
  • 106k
3 votes

Suddently, "avrdude: Device signature = 0x000000" with ArduinoISP. Is my chip dead?

Mostly this error is due to connections/powering issues (as already mentioned in your output ). Check connections, especially power and ground also check the resistance between Vcc and GND of your ...
paulplusx's user avatar
  • 171
3 votes

Can we burn Arduino bootloader into any microcontroller chip?

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 ...
Michel Keijzers's user avatar
3 votes
Accepted

How to use any module that has no library for arduino?

About the fingerprint sensors from mobile phones: You might find the answers to this question useful. They explain in detail, why it is not really worth the effort to try interfacing such a ...
chrisl's user avatar
  • 16.6k
2 votes
Accepted

ISP with 115200 baud

You have to edit the programmers.txt file. (The one in ~/.arduino15/packages/arduino/hardware/avr/1.6.21/, not the one in arduino-1.8.x/hardware/arduino/avr/) avrisp.name=AVR ISP avrisp.communication=...
tttapa's user avatar
  • 1,330
2 votes
Accepted

Arduino ISP external power

Even with an external supply, you must still have a common ground reference between the ATmega being programmed, and the Arduino/ATmega doing the programming. According to your comment this was the ...
Chris Stratton's user avatar
2 votes

Lines not pulsed fast enough (?))

The code content works fine while compiled as an Arduino program - that is, using the proper setup() and loop() structure: void setup() { DDRB |= (1 << PB4); DDRB |= (1 << ...
Majenko's user avatar
  • 106k
2 votes

How can I program a ATmega328 au tqfp32 ( SMD ) chip?

To upload compiled code (.hex) to a bare atmega which doesn't have a bootloader installed you can use ISP. As this stands for in-system-programming you don't have to flash the chip before assembly, ...
Sim Son's user avatar
  • 1,878
2 votes
Accepted

Unable to burn bootloader with avrisp

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 ...
sa_leinad's user avatar
  • 3,218
2 votes

When using an Arduino as an ISP, is the capacitor required or not?

If you're using Nick Gammon's programmer, the RESET signal to the target board comes from the Arduino programmer - from Pin 10. Read his instructions: https://www.gammon.com.au/bootloader You modify ...
Jim's user avatar
  • 21
2 votes

How to use ATtiny pins that are usually 'reserved' for chip programming?

You can just normally use all pins except for the reset pin (pin 0). When you want to program the Attiny, you just connect the programmer. It will reset the Attiny through the reset pin and put it ...
chrisl's user avatar
  • 16.6k
2 votes

Why does my 23,032 byte Arduino sketch take 36.32 sec to upload via ISP to an Atmega328p on a breadboard w/code verification disabled?

ISP programmers typically default to low ISP clock rates. Often something like 10khz, sometimes slower, probably to just work by default with very slowly clocked AVR chips. The ISP clock rate must ...
timemage's user avatar
  • 5,739
2 votes
Accepted

Is it possible for Arduino as ISP board to flash an ISP master board?

Yes, you can flash an MCU using ISP even if the MCU acts as an SPI device (be it master or slave). The programmer puts the MCU into reset mode, so at the time the sketch is uploaded, SPI will be ...
Sim Son's user avatar
  • 1,878
2 votes
Accepted

Mega2560 programming megacore avrdude: Device signature = 0x000000

The answer was that you must connect the reset pin of the target ICSP to pin 10 of the programmer Mega 2560. This was not very clear in the tutorial here: https://www.arduino.cc/en/pmwiki.php?n=...
Thom's user avatar
  • 173
2 votes

Failure to recognize the Arduino Mega2560 R2 board by the computer

The "L" LED is controlled by the main MCU. This is blinking because the bootloader is running fine. There is nothing (superficially) wrong with the main MCU. The TX ad RX LEDs are controlled ...
Majenko's user avatar
  • 106k
2 votes
Accepted

Programming barebones ATMega328 with external programmer and no bootloader

The Pocket AVR Programmer is just a standard ISP programmer, meaning it uses the ISP protocol built into the hardware of the microcontroller to write data to flash and EEPROM. That is also the way, ...
chrisl's user avatar
  • 16.6k
2 votes

Arduino IDE 2.x fails to flash 32u4 via ArduinoISP flashed Nano, but 1.8.19 works

try the same thing with the same steps In short, the mention of AVR109/Butterfly in the output contradicts this. Somehow you're not choosing the "Using Programmer" version of Upload when ...
timemage's user avatar
  • 5,739
1 vote

How can I program a ATmega328 au tqfp32 ( SMD ) chip?

I use Atmel AVR ISP MKii, which is a dedicated Programmer - it connects via USB to the PC, and to the Power/Gnd/Reset/SCK/MOSI/MISO pins of the SMD device (i.e. the pins that connect to an ICSP header ...
CrossRoads's user avatar
  • 2,449
1 vote
Accepted

Programing AVR 32u4 via ISP with other ISP device connected

Yes, that is possible and I've done the exact same thing with an ATmega328 which controls a DAC via SPI. If it wasn't possible ISP wouldn't be an option whenever SPI is already in use. You should make ...
Sim Son's user avatar
  • 1,878
1 vote

Using Arduino as ISP and SoftwareSerial at the same time

I'm not really sure, but in the Arduino ISP example there is an if that looks if the ISP is in program-mode. You could try adding in the else statement of that if the Software Serial part.
Elektrokiste's user avatar
1 vote
Accepted

Changing parameters in Arduino without the IDE

Sounds like you need a Standalone programmer. I offer one, it loads the target device from a program you select on SD card. Up to 256 programs can be stored on 1 card. Check it out here www....
CrossRoads's user avatar
  • 2,449
1 vote

Using Due (SAM3X8E) native USB port for programming?

The SAM3X8E comes with a bootloader in ROM. Memories 256 to 512 Kbytes embedded Flash, 128-bit wide access, memory accelerator, dual bank 32 to 100 Kbytes embedded SRAM with dual banks 16 Kbytes ROM ...
Majenko's user avatar
  • 106k
1 vote

parse intel hex into SPI commands for arduino ICSP AVR

I have some code that does exactly what you want on GitHub. Amongst other processors, it supports the At90USB162 chip. The code reads from an SD card in Intel hex format and writes to the chip at the ...
Nick Gammon's user avatar
  • 38.9k
1 vote

Flashing ATmega8U2 using another Arduino

There is an official guide. Arduino as ISP and Arduino Bootloaders But you need to add the 2x3 ISP pin header since some of the signals isn't available on D0-D13 or any other pins.
MatsK's user avatar
  • 1,366

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