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, ...
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 ...
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, ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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=...
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 ...
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 << ...
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, ...
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 ...
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 ...
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 ...
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 ...
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 ...
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=...
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 ...
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, ...
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 ...
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 ...
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 ...
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.
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....
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 ...
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 ...
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.
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
isp × 134bootloader × 30
arduino-uno × 24
atmega328 × 19
avrdude × 15
programmer × 14
avr × 13
attiny × 12
arduinoisp × 12
programming × 11
arduino-nano × 10
arduino-mega × 8
spi × 8
uploading × 8
arduino-ide × 7
usb × 6
serial × 4
pins × 4
arduino-due × 4
arduino-leonardo × 4
atmega2560 × 4
shields × 3
arduino-pro-mini × 3
arduino-pro-micro × 3
flash × 3