Need help programming Atmega328-AU with avrdude and USBtinyISP!

USB AVR Programmer and SPI interface. Adafruit's USBtinyISP.

Moderators: adafruit_support_bill, adafruit

Need help programming Atmega328-AU with avrdude and USBtinyISP!

Postby jinx6672 » Fri May 11, 2012 2:09 pm

I need help programming Atmega328-AU with avrdude and USBtinyISP!
I have tried using the Arduino IDE but I couldn't find the pins_arduino.h file for the 328P-AU. Now I am trying to use avrdude and it doesn't reference the 328P-AU either. what files do I need or create to make this happen.
jinx6672
 
Posts: 1
Joined: Fri May 11, 2012 2:05 pm

Re: Need help programming Atmega328-AU with avrdude and USBtinyISP!

Postby adafruit_support_rick » Fri May 11, 2012 2:27 pm

The 328P pinout is the same as the 328, which is what is used in the arduino. You shouldn't have to do anything special.
User avatar
adafruit_support_rick
 
Posts: 2844
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: Need help programming Atmega328-AU with avrdude and USBtinyISP!

Postby BillO » Mon May 14, 2012 8:36 am

The 328 has a different device ID than the 328P. Either create a section in avrdude.conf for the 328, identical to the section for the 328P, except using the correct device ID, or use the -F switch on the avrdue command line like this;

avrdude -pm328p -cusbtiny -Ulock:w:0x0F:m -Uhfuse:w:0xDA:m -Ulfuse:w:0xFF:m -Uefuse:w:0x05:m -V -Uflash:w:ATmegaBOOT_168_atmega328.hex:i -u -F

Which will program the chip with the Arduino Duemilanove bootloader. Just change the "ATMegaBOOT_168_stmega328.hex" to the name of the file you want to use.
BillO
 
Posts: 7
Joined: Tue May 08, 2012 8:44 am


Return to USBtinyISP

Who is online

Users browsing this forum: No registered users and 3 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [105]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[108]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[69]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]