Program blank ATmega48 with a DC Boarduino

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
jmvl
 
Posts: 7
Joined: Fri Dec 24, 2010 6:16 am

Program blank ATmega48 with a DC Boarduino

Post by jmvl »

Hello to all,
This is my first post .. and call for help.
I got an Boarduino for developing sketches, and that is going fine, thanks to this wonderful community.

What I am not finding in the forum is how to use a Boarduino to program a blanK ATmage48v-10PU.
I am building the Game of life from the PCB and need to Program the blank chip with the version 1.4 program.
My specific questions are:
1) Can I use the Boarduino as a standart AVR programer.
There is a hint to it in th ressources section
2) can I use the Arduino development environemen to load a Hex file and program th fuses of the ATmega48?
3) any link to the instructions would help greatly.

Thanks for your help.
From France with love,
JM

User avatar
westfw
 
Posts: 2008
Joined: Fri Apr 27, 2007 1:01 pm

Re: Program blank ATmega48 with a DC Boarduino

Post by westfw »

Search for "ArduinoISP"
can I use the Arduino development environemen to load a Hex file and program th fuses of the ATmega48?
The arduino environment does not support hex files at all. Well, the FILES installed as part of the arduino environment will support it, but not the IDE itself.

User avatar
jmvl
 
Posts: 7
Joined: Fri Dec 24, 2010 6:16 am

Re: Program blank ATmega48 with a DC Boarduino

Post by jmvl »

Thanks for the answer.
I am looking towards the WinAVR environement to program a blank AVR Chip.
Thanks again for your answer.
JM

User avatar
westfw
 
Posts: 2008
Joined: Fri Apr 27, 2007 1:01 pm

Re: Program blank ATmega48 with a DC Boarduino

Post by westfw »

The arduino IDE install includes the entire WinAVR environment as well, except it doesn't set up any of the system paths to be able to use it, just allows the IDE to use the utilities itself. So in theory, if you have Arduino installed, you already have WinAVR. In practice, given the $50/TB disks that abound, it might be easier to just have two installs...

User avatar
jmvl
 
Posts: 7
Joined: Fri Dec 24, 2010 6:16 am

Re: Program blank ATmega48 with a DC Boarduino

Post by jmvl »

Thanks Westfw,
I have downloaded and installed winavr.
I have been folowing the AVR programing tutorial on this site.

I am currently looking at using AVRDUDE with my Boarduino as the AVR programmer.
I see that version avrdude 5.10 list the ARDUINO as a compatiple programmer.
If I do not succeed, I'll by a low cost usb programmer.
Still working on it.

Thanks for your help.
JM

User avatar
westfw
 
Posts: 2008
Joined: Fri Apr 27, 2007 1:01 pm

Re: Program blank ATmega48 with a DC Boarduino

Post by westfw »

I am currently looking at using AVRDUDE with my Boarduino as the AVR programmer.
I see that version avrdude 5.10 list the ARDUINO as a compatiple programmer.
Yes, but that's for programming an arduino via its bootloader, not for using arduino as a programmer for other devices. The ArduinoISP sketch emulates a STK500v1 programmer, and that's what you should tell AVRDude. Probably.

The Arduino bootload PARTIALLY emulates a STK500v1, and the "Arduino" programmer type tells avrdude to avoid the parts that it doesn't emulate (and to do the stuff needed for auto-reset.)

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”