Go Down

Topic: Arduino Mini - Windows 10 - Not uploading sketch (Read 123 times) previous topic - next topic

antoinems

I'm new in Arduino World.
I'm trying to update the blink sketch, but not getting it because error at uploading.
Windows 10. Arduino Mini.
I've been reading for many threads but cannot find the solution to my issue.
Port is well detected : COM5. I selected 'Arudino Mini' board and Programmer 'AVR ISP'.
My device manager detects the port as 'USB-SERIAL CH340 (COM5).
If I try to upload the driver with the ones in the zip, it says that best driver is already installed.
In port settings of the drivers it says 'bits per second 9600'.

I paste here the output with 'upload verbose':

Arduino: 1.8.9 (Windows 10), Board: "Arduino Mini, ATmega328P"

Sketch uses 950 bytes (3%) of program storage space. Maximum is 28672 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
C:\Temp\arduino-1.8.9-windows\arduino-1.8.9\hardware\tools\avr/bin/avrdude -CC:\Temp\arduino-1.8.9-windows\arduino-1.8.9\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM5 -b115200 -D -Uflash:w:C:\Users\TRIM\AppData\Local\Temp\arduino_build_210757/led2.ino.hex:i

avrdude: Version 6.3-20171130
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Temp\arduino-1.8.9-windows\arduino-1.8.9\hardware\tools\avr/etc/avrdude.conf"

         Using Port                    : COM5
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x98
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x80
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x18
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x66
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x86
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x66
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x9e
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xfe
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x9e
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x60

avrdude done.  Thank you.

An error occurred while uploading the sketch

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.


If anyone could suggest any possible sugestion, idea ....



pert

Unlike the modern Arduino boards, the Mini has not auto-reset circuit. This means you need to manually reset the board at just the right time during the upload process.

The tricky thing is that when you press the "Upload" button in the Arduino IDE, it first compiles your sketch before starting the actual upload. So you need to wait until after the compilation finishes before pressing the reset button. The way to get the timing right is to watch the black console window at the bottom of the Arduino IDE window. As soon as you see something like this:
Code: [Select]
Sketch uses 444 bytes (1%) of program storage space. Maximum is 30720 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.

press and release the reset button.

antoinems

I tried dozens of times, pressing and releasing the reset button … but not luck at all :(
Same message all the time…   



Arduino: 1.8.9 (Windows 10), Board: "Arduino Mini, ATmega328P"

Sketch uses 942 bytes (3%) of program storage space. Maximum is 28672 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x98
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x80
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x18
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x66
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x86
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x66
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x9e
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xfe
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x9e
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x60
An error occurred while uploading the sketch

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

pert

Are you sure you have an Arduino Mini and not the much more common Pro Mini?

Go Up