Arduino Pro 328 3.3V upload issue

Hi,

I got a brand new board and cant easily upload to it.

I tried a FTDI that worked on several other boards. Got error similar to this: avrdude: stk500_initialize(): (a) protocol error, expect=0x14, resp=0x20

I tried Arduino as an ISP to see about loading any sketches or bootloaders to know avail.(similar errors)…

I tried the ATMEL AVR ISP programmer and it works!.. but I’d rather work within the Arduino IDE…

Any help? thank you, thomas

The AVRISP mkII works with the Arduino IDE. I use it to program my custom boards. You do need to do some modifications to the IDE. Google “AVRISP mkII arduino IDE.” I believe it’s just adding another option in the boards.txt file.

Like this one under [installdirectory]/hardware/arduino/boards.txt

##############################################################

avrispmkii328.name= AVRISP mkII - ATmega328p

avrispmkii328.upload.using=avrispmkii
avrispmkii328.upload.maximum_size=32768
avrispmkii328.upload.speed=115200

avrispmkii328.build.mcu=atmega328p
avrispmkii328.build.f_cpu=16000000L
avrispmkii328.build.core=arduino
avrispmkii328.build.variant=standard

##############################################################

MKii.name=ATmega328p w/AVRISP MKii
MKii.upload.using=avrispmkii
MKii.upload.protocol=arduino
MKii.upload.maximum_size=32256
MKii.upload.maximum_ram_size=2048
MKii.upload.speed=115200
MKii.bootloader.low_fuses=0xff
MKii.bootloader.high_fuses=0xde
MKii.bootloader.extended_fuses=0x05
MKii.bootloader.path=optiboot
MKii.bootloader.file=optiboot_atmega328.hex
MKii.bootloader.unlock_bits=0x3F
MKii.bootloader.lock_bits=0x0F
MKii.build.mcu=atmega328p
MKii.build.f_cpu=16000000L
MKii.build.core=arduino
MKii.build.variant=standard

##############################################################

Hey thanks codlink for the info. Yes, I’ve got my AVRISP mkii working with the Ateml Studio and AVRdude. But that was really hard. Too different drivers… and too many headaches…

I like to see that AVRisp mkii gathering dust as much as possible… but thanks anyways… - thoams

Chris with Sparkfun got back to me and gave me a hex file to program with my avrispmkii in avrdude.

It all worked. Everything works. one small victory.

I’ve attached the booloader hex file sparkfun provided. I’m not sure how it is any different than the one in the Arduino cores: “…\arduino-1.0.5-r2\hardware\arduino\bootloaders\atmega\ATmegaBOOT_168_atmega328_pro_8MHz.hex”

well sorry… they wont let me attach it…

Here’s what it looks like in Avrdude:

Here’s the tutorial I always go back to: http://www.ladyada.net/learn/avr/avrdude.html

C:\Users\thomas>avrdude -p m328p -c avrispmkii -P usb -U flash:w:atmega328_pro_bootlaoder_8mhz.hex

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.06s

avrdude: Device signature = 0x1e950f

avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed

To disable this feature, specify the -D option.

avrdude: erasing chip

avrdude: reading input file “atmega328_pro_bootlaoder_8mhz.hex”

avrdude: input file atmega328_pro_bootlaoder_8mhz.hex auto detected as Intel Hex

avrdude: writing flash (32652 bytes):

Writing | ################################################## | 100% 26.24s

avrdude: 32652 bytes of flash written

avrdude: verifying flash memory against atmega328_pro_bootlaoder_8mhz.hex:

avrdude: load data flash data from input file atmega328_pro_bootlaoder_8mhz.hex:

avrdude: input file atmega328_pro_bootlaoder_8mhz.hex auto detected as Intel Hex

avrdude: input file atmega328_pro_bootlaoder_8mhz.hex contains 32652 bytes

avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 138.65s

avrdude: verifying …

avrdude: 32652 bytes of flash verified

avrdude: safemode: Fuses OK

avrdude done. Thank you.