Pages: [1]   Go Down
Author Topic: flashing brand new atmega 8u2  (Read 1317 times)
0 Members and 1 Guest are viewing this topic.
italy
Offline Offline
Jr. Member
**
Karma: 0
Posts: 52
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

hello, I'd like to embed arduino in a project.
I want to build my own board with smd components, but I'm not sure about the way to go for the usb to serial chip
I'd like to use the atmega8u2 used by arduino uno, but I don't know if it's possible to upload the firmware into a brand new atmega8u2.
I think I'll need an AVR ISP, where can I find the firmware for this purpose?
or do you think is better to go for the good old FTDI chip?
Logged

Berks, UK
Offline Offline
Full Member
***
Karma: 0
Posts: 153
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
here are the instructions for upgrading the 8u2, including a link for the v.001 firmware, so it should be possible if you
have a programmer, and incorporate the necessary connections in your design.
http://arduino.cc/en/Hacking/DFUProgramming8U2

Texy
Logged

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 524
Posts: 26441
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

One advantage of the "good old FTRI chip" is that it allows for Bit-banging a bootloader using it's DCD, DSR, CTS, and RI pins (see  the X3 connector on the Deumilanove schematic) and connecting them via jumpers to the ICSP pins. (MISO, MOSI, SCK, Reset)

http://www.geocities.jp/arduino_diecimila/bootloader/index_en.html

I think both can be difficult to solder.
What else are you putting on the board?

AVR ISP programmers are not very much $, good tool to have also.
I have been using this one very successfully with '1284 chips with these 2 lines added to programmers.txt:

usbasp.name=MDFLY
usbasp.protocol=usbasp

http://www.mdfly.com/index.php?main_page=product_info&cPath=5_6&products_id=415
Logged

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.

italy
Offline Offline
Jr. Member
**
Karma: 0
Posts: 52
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

do you think this one could be ok?
the atmega 328 and atmega 8u2 are not shown in the supported device list, maybe they forgot to add it?
It's a bit expensive related to others, but I like it because it has an enclosure to protect it, my environment is not always so clean

http://www.ebay.com/itm/ATMEL-AVR-ISP-programmer-MKII-upgrade-Xmega-clone-/250887521724?pt=LH_DefaultDomain_0&hash=item3a6a0fc5bc#ht_4317wt_1163

then I downloaded atmel FLIP and then went here
https://github.com/arduino/Arduino/tree/master/hardware/arduino/firmwares

here I can choose to download
1 - arduino usb dfu
2 - arduino usb-serial
3 - both combined

I downloaded the last one, since my ATmega 8u2 is empty

Now when I try to load the hex file with FLIP it returns this error message: invalid HEX file syntax
Am I missing something?

Thnks for helping a novice like me!
The board I want to make is an arduino with some relay onboard, i want to have them made by a manufacturer in a small number (20 or so), just to serve my definitive applications.



Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey,

I couldn't find many good resources on reprogramming the 8U2, so after attempting it successfully, I blogged about it.  You can find it here:

http://blog.ethanfrei.com/2011/10/arduino-uno-revived.html

Hopefully that will help you out!
Logged

Pages: [1]   Go Up
Jump to: