Arduino Mini 04 with ATmega328

The Mini 04 needs the reset button pressed when you upload in my experience. If it has a 328 then try the Pro Mini 328 5V setting for the board. Or the duemilanova - so long as the processor and clock speed match it ought to work.

Has anyone worked this one out yet?

I seem to have the same problem: arduino mini4 with AtMega 28p

I use the setup as described in: http://arduino.cc/en/Guide/ArduinoMini with the usb adapter also (old version_ so different from the example_ could this affect something?)

and after resetting, the led connected to pin13 flashes 3 times, and when i press upload (also tried different timing etc.) it says:

avrdude: stk500_getsync(): not in sync: resp=0x20
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0xc)

also tried different serial ports and different boards / combinations in the tools menu but nothing seems to work

Same problem

however i did notice the arduino is constantly sending 4 byte messages

captured over 5 seconds:

F5 B2 52 FA F5 86 52 FA F5 86 52 FA F5 86 22 FA F5 B6 52 FA F5 86 52 FC F5 86 52 FA F5 86 52 FA F5 86 52 FA F5 86 52 FA 49 86 52 FA F5 86 52 FA F5 B1 52 FA F5 86 22 FA F5 86 22 FA F5 86 52 FA F5 A6 52 FA F5 86 52 FA F5 B1 52 FA F5 86 52 FA

anyone got a solution yet ?

sparkfun mini usb + Sparkfun arduino mini ( with AT328 and unknowed bootloader ) : same issue, same results...
I have looked carefully on arduino pro 5V to apply the same schematic ( reset , supply , DTR connection ) on these arduino mini .
I use arduino software with arduino pro 5V 16 Mhz setting : upload start..and nothing append.
Next step : upload bootloader from arduino software, and try again. I'm waiting my tinyusb board.I have choosed these Sparkfun solution to have efficienty hardware solution : it is not : A lot of time loosed...

I finally got it to work:

So I returned the Arduino 04 mini and received arduino mini pro and had the same problem. Then I thought it was the usb adapter so I ordered a the FTDI Basic Breakout - 5V. Same problem same errors.

avrdude: Recv:
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: Send: Q [51] [20]
avrdude: Recv:
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

avrdude done. Thank you.

Then I tried a different computer running windows XP and it worked! It still does not work on the 64 bit windows 7 for some reason. Both machines were using Arduino 0022. I could also be a driver issue, but I did try updating the drivers for the USB breakout board at some point and it didn't help.

Weird. I tried win xp but wihtin a vmware. I'll reinstall win xp on my test rig and give it a try

Hi everybody

Same problem here. Tried it on Mac OS X 10.6.7 and Windows XP (fresh installation).

Using:
-Arduino Mini 04 with ATmega328
-Arduino Serial USB Board (connected like showed in the guide)
-Arduino SW 0022

Same here. Any solutions?

Problem solved!

Add the following lines to boards.txt:

mini328.name=Arduino Mini with ATmega328

mini328.upload.protocol=stk500
mini328.upload.maximum_size=28672
mini328.upload.speed=115200

mini328.bootloader.low_fuses=0xff
mini328.bootloader.high_fuses=0xd8
mini328.bootloader.extended_fuses=0x05
mini328.bootloader.path=bt
mini328.bootloader.file=ATmegaBOOT_168_atmega328.hex
mini328.bootloader.unlock_bits=0x3F
mini328.bootloader.lock_bits=0x0F

mini328.build.mcu=atmega328p
mini328.build.f_cpu=16000000L
mini328.build.core=arduino

Now you can select your board "Arduino Mini with ATmega328". Do a reset 1 second before upload.

Hello.
After a lot of spending time, I confirm that it works also for me !!

Thank's a lot FRY!!!! Newbie ..but efficient !!!!

how did you understand the solution of these issue??

Same here, works like a charm. you rock dude :wink:

FANTASTIC :slight_smile: :grin: :smiley:

Adding the new board type worked for me.

Thanks for you help.

~Matt

I can't believe they did not publish this change on the site or better update the IDE's files. Only clue was a tiny sticker saying "328" on the mini. But that actually covered the processor so it took me some time to figure out that actually represented the processor type! This cost me half a day of development time...

But thank's a million for the solution or I would still be breaking my head over this.

Hello,

I have the same problem and try use the solution posted, but now i get this;

Binary sketch size: 970 bytes (of a 28672 byte maximum)
C:\Users\Daniel Melo\Documents\Projectos\arduino-0022\hardware/tools/avr/bin/avrdude -CC:\Users\Daniel Melo\Documents\Projectos\arduino-0022\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega328p -cstk500v1 -P\.\COM13 -b115200 -D -Uflash:w:C:\Users\DANIEL~1\AppData\Local\Temp\build3196484183096855382.tmp\BlinkWithoutDelay.cpp.hex:i

avrdude: Version 5.4-arduino, compiled on Oct 11 2007 at 19:12:32
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

System wide configuration file is "C:\Users\Daniel Melo\Documents\Projectos\arduino-0022\hardware/tools/avr/etc/avrdude.conf"

Using Port : \.\COM13
Using Programmer : stk500v1
Overriding Baud Rate : 115200
avrdude: ser_open(): setting dtr
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Recv:
avrdude: stk500_getsync(): not in sync: resp=0x1c
avrdude: Send: Q [51] [20]
avrdude: Recv:
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x1c

avrdude done. Thank you.

I´m using a USB 2 Serial Light to upload the Sketch.

Please help.

Thanks

I have the exact same error that daniel_melo is getting. I updated boards.txt with the new profile. No luck. FTDI and Arduino IDE are up to date, have power, etc.

This is such bull. On the bright side I think this might be the Arduino FAIL that pushes me over the edge. Time to learn to use PICs instead of wasting time and money on a company that doesn't give a shit.

Hi,

I am using the same Arduino Mini 04 with Arduino 1.0 IDE . Insted of using a Mini USB adapter, I am using Arduino Duemilanove. The wiring is as follows

I get supply to the board, but When I try to upload, I get

Binary sketch size: 1026 bytes (of a 28672 byte maximum)
avrdude: stk500_getsync(): not in sync: resp=0x00

I even tried pressing shift while uploading, I get the same error

Also, As suggested, I copied
Mini with ATmega328

mini328.upload.protocol=stk500
mini328.upload.maximum_size=28672
mini328.upload.speed=115200

mini328.bootloader.low_fuses=0xff
mini328.bootloader.high_fuses=0xd8
mini328.bootloader.extended_fuses=0x05
mini328.bootloader.path=bt
mini328.bootloader.file=ATmegaBOOT_168_atmega328.hex
mini328.bootloader.unlock_bits=0x3F
mini328.bootloader.lock_bits=0x0F

mini328.build.mcu=atmega328p
mini328.build.f_cpu=16000000L
mini328.build.core=arduino

to the boards txt. (Thoguh it already had 1)

I still get the same problem. I also tried changing ports and USB cable.

Please suggest

Thankyou
Regards

Gooooooooooooooood, My Arduino Mini 04 it's working.
-Windows 7 64 bits
-Arduino 0022
-Sparkfun Items: DEV-08164 and DEV-08165

with the modify in the file boards.txt:

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

mini328.name=Arduino Mini with ATmega328

mini328.upload.protocol=stk500
mini328.upload.maximum_size=28672
mini328.upload.speed=115200

mini328.bootloader.low_fuses=0xff
mini328.bootloader.high_fuses=0xd8
mini328.bootloader.extended_fuses=0x05
mini328.bootloader.path=bt
mini328.bootloader.file=ATmegaBOOT_168_atmega328.hex
mini328.bootloader.unlock_bits=0x3F
mini328.bootloader.lock_bits=0x0F

mini328.build.mcu=atmega328p
mini328.build.f_cpu=16000000L
mini328.build.core=arduino

Same situation, same problem. I get this error:

avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
this check.