Go Down

Topic: [help] Designing your own Arduino based on Leonardo (atmega32U4) (Read 10 times) previous topic - next topic

JUGmobile

Hello everyone,
I would like to create my own board based on Arduino Leonardo. I bought an fresh atmega32U4 microcontroler and solder it to the board. I added few components like crystal, some capaciotors, few resistors, and USB cable. The atmega32U4 has an USB controller built in so I would like to ask you some questions:


  • Is it possible to burn sketches without Leonardo's official bootloader to the fresh atmega32U4 chip over USB (I mean without external ISP programmer)?

  • Is it possible to burn bootloader onto fresh atmega32U4 over USB (again using only integrated USB controller)?

  • Is it possible to use all of the atmega32U4 chip pins that are not used as digital I/O on leonardo board (like the whole PORTB as digital I/O instead of RX-Led(PB0) and ICSP header(PB1, PB2, PB3)?


This is my current configuration, just atmega32U4 chip, crystal and USB port.


I tryed to find similar topics but with no succes. I have an STK500 programmer, but it would be nice to program just with USB cable.

Thank you, Jakob

CrossRoads

Atmel datasheet says the 32U4 is shipped with a bootloader installed.

"All supplied parts are preprogramed with a default USB bootloader"
Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

JUGmobile

Hi CtossRoads,
I am aware of this, but is this bootloader compatible with Arduino IDE?

CrossRoads

I don't know. Sounds like you are wired up now, give it a try.
Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

CrossRoads

Maybe check the AVR application notes here as well.

http://www.atmel.com/products/microcontrollers/avr/megaAVR.aspx?tab=documents



AVR276: USB Software Library for megaAVR with USB Microcontrollers
(file size: 10255299, 27 pages, revision A, updated: 01/2007)


This application note describes the USB software library for megaAVR with USB and illustrates how to develop a USB device or reduced host applications using this library.



AVR277: On-The-Go (OTG) add-on to USB Software Library for megaAVR with USB
(file size: 197131, 15 pages, revision A, updated: 07/2007)


This application note describes the new features brought by the OTG working group and how they are integrated in the USB software library for megaAVR with USB, illustrating how to develop customizable USB OTG applications.



AVR280: USB Host CDC Demonstration on megaAVR with USB
(file size: 1684150, 14 pages, revision A, updated: 09/2007)


This application note describes how to start and implement a Host CDC application using the STK525 or USBKEY starter kit, and finally introduces a simple example of dual USB-UART bridge between two PCs.


AVR282: USB Firmware Upgrade for megaAVR with USB
(file size: 754660, 13 pages, revision A, updated: 01/2008)


This application note describes how to perform the firmware upgrade of the megaAVR with USB products using the on-chip bootloader and FLIP software.

AVR298: USB Audio Demonstration with ATmega32(16)U4
(file size: 209845, 8 pages, revision A, updated: 11/2008)


This application note describes a simple audio project. It allows to quickly test USB hardware using the ATMega32U4 without any driver installation.

Atmel AVR4023: FLIP USB DFU Protocol
(file size: 143KB, 15 pages, revision A, updated: 03/2012)


This application note describes the FLIP USB DFU Protocol. To perform firmware upgrade, Atmel has developed a Flexible in-system programmer (FLIP). This software allows performing In-System Programming from an USB host controller without removing the part from the system or without a preprogrammed application, and without any external programming interface.


The "Other Documents" section might have something useful as well
http://www.atmel.com/products/microcontrollers/avr/megaAVR.aspx?tab=documents

The Novice Guide to AVR Development

Construct an ATA Hard Drive Controller

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Go Up