redsees
Junior Member level 1
Do Atmega16u2/32u4 chips contain a bootloader to be programmed with USB
Hello everyone,
I wanted to start working on Atmega16u2/32u4 and such chips typically because of the existence of a USB interface (D-/D+/UGND pins).
I'm not talking about working on the chip with the Arduino IDE, I'm going to build my firmware using the Atmel studio and the usual AVR toolchain.
So, my question is, could these chips (specifically the 16u2/32u4) be programmed by simply plugging a USB port into the D-/D+/UGND pins and that's it?
No need for any bootloader?
I'm mainly willing to build that circuit (please ignore the battery part, the power would be from the 5Vdc from the USB):
https://cdn-learn.adafruit.com/assets/assets/000/028/445/original/microcomputers_feathershc.png
So can I just build the above circuit, plug in my USB and start developing?
Mentioning a similar case, AFAIK the bootloader in the Atmega328p (Arduino Uno board) is used to just make the latter chip programmable using the UART interface instead of the SPI, and the Atmega16u2 was the conversion circuitry between USB-to-serial.
I've been programming the Atmega16u2's (in the Uno boards) using the USB using dfu-programmer tools. are the Atmega16u2's in the Uno boards come preprogrammed with bootloaders to support being programmed by USB?
Much Regards
Hello everyone,
I wanted to start working on Atmega16u2/32u4 and such chips typically because of the existence of a USB interface (D-/D+/UGND pins).
I'm not talking about working on the chip with the Arduino IDE, I'm going to build my firmware using the Atmel studio and the usual AVR toolchain.
So, my question is, could these chips (specifically the 16u2/32u4) be programmed by simply plugging a USB port into the D-/D+/UGND pins and that's it?
No need for any bootloader?
I'm mainly willing to build that circuit (please ignore the battery part, the power would be from the 5Vdc from the USB):
https://cdn-learn.adafruit.com/assets/assets/000/028/445/original/microcomputers_feathershc.png
So can I just build the above circuit, plug in my USB and start developing?
Mentioning a similar case, AFAIK the bootloader in the Atmega328p (Arduino Uno board) is used to just make the latter chip programmable using the UART interface instead of the SPI, and the Atmega16u2 was the conversion circuitry between USB-to-serial.
I've been programming the Atmega16u2's (in the Uno boards) using the USB using dfu-programmer tools. are the Atmega16u2's in the Uno boards come preprogrammed with bootloaders to support being programmed by USB?
Much Regards