Problem uploading to an ATmega328P-CH340G-UNO-R3-Board

Hi to all
I recently bought from ebay this:

https://www.ebay.com/itm/ATmega328P-CH340G-UNO-R3-Board-USB-Cable-Compatible-with-Arduino-L2/173019953288?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2057872.m2749.l2649o a ATmega328P-CH340G-UNO-R3-Board

I tried to upload the basic code for blinking and i always get the same error:

When i use Arduino/Genuino Mega board i get the error:

avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
An error occurred while uploading the sketch

I have check the COM port
Can anyone help me?

I use arduino IDE for uploading
I am new to arduino and i don’t know if this board is an arduino UNO R3 board since it is a clone.
I have tried many Arduino/Genuino UNO and Mega boards types and many programmers that comes with the software.
I have change USB port in my laptop.

when i use Arduino/Genuino UNO board i get the error:

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x44

I use windows 10 x64

Any help would be appriciated

Thank you

Clones most often require a driver that is NOT included in the IDE.

When you plug it into the computer (USB 2.0 port) what does device manager show for the COM port or other devices ?

I have already download the drivers for the device even if windows found the device corectly and set it in COM3 or COM4 (accordingly to the USB port).
In device manager the device is

USB-SERIAL CH340 (COM4)

serial.JPG

Please do this:

  • File > Preferences > Show verbose output during: > compilation (uncheck) > upload (check) > OK
  • Sketch > Upload
  • After the upload fails you’ll see a button on the right side of the orange bar “Copy error messages”. Click that button.
  • Paste the error messages in a reply here USING CODE TAGS (</> button on the toolbar).
Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Archiving built core (caching) in: C:\Users\Yannis\AppData\Local\Temp\arduino_cache_696238\core\core_arduino_avr_mega_cpu_atmega2560_be115bd345af9e4e1d9926fa248d6f27.a
Sketch uses 1462 bytes (0%) of program storage space. Maximum is 253952 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 8183 bytes for local variables. Maximum is 8192 bytes.
C:\Users\Yannis\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9/bin/avrdude -CC:\Users\Yannis\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9/etc/avrdude.conf -v -patmega2560 -cwiring -PCOM4 -b115200 -D -Uflash:w:C:\Users\Yannis\AppData\Local\Temp\arduino_build_367725/Blink.ino.hex:i 

avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Users\Yannis\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9/etc/avrdude.conf"

         Using Port                    : COM4
         Using Programmer              : wiring
         Overriding Baud Rate          : 115200
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

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.

I don't know if i have select the right board.
The above messages appears for Arduino/Genuino Mega board.

If i select Arduino/Genuino Uno board i get these messages:

Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Uno"

Build options changed, rebuilding all
Archiving built core (caching) in: C:\Users\Yannis\AppData\Local\Temp\arduino_cache_696238\core\core_arduino_avr_uno_be115bd345af9e4e1d9926fa248d6f27.a
Sketch uses 928 bytes (2%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
C:\Users\Yannis\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9/bin/avrdude -CC:\Users\Yannis\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9/etc/avrdude.conf -v -patmega328p -carduino -PCOM4 -b115200 -D -Uflash:w:C:\Users\Yannis\AppData\Local\Temp\arduino_build_367725/Blink.ino.hex:i 

avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Users\Yannis\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9/etc/avrdude.conf"

         Using Port                    : COM4
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x65
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x65
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x65
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x65
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x65
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x65
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x65
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x65
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x65
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x65

avrdude done.  Thank you.

Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

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

Also i have another question.
Is it normal to light up both red leds when i connect it to a USB?
The leds that are on are ON and L

Hi,

Same proble here as JDIX, I'm using the Web Editor. Even both red lights are turned on, L light blinking.

Mine is also the Arduino R3 UNO.

In the Boards option I don't see an "Arduino R3 UNO" or "Arduino UNO R3". So I'm using "Arduino UNO Wifi" from option list.

jxid:
I don't know if i have select the right board.
The above messages appears for Arduino/Genuino Mega board.

If i select Arduino/Genuino Uno board i get these messages:

Arduino/Genuino Mega is wrong. Arduino/Genuino Uno is correct.

jxid:
Is it normal to light up both red leds when i connect it to a USB?
The leds that are on are ON and L

L should blink for a couple seconds after plugging in the board. After that its behavior will depend on what program is running on your Uno. L is connected to pin 13 of the Uno. So if the program running is blinking pin 13 then the L LED will blink. If the program sets pin 13 to the state that turns the LED on the the L LED will be on. If the program sets pin 13 to the state that turns the LED off the the L LED will be off. And so on...

ogonzales:
In the Boards option I don't see an "Arduino R3 UNO" or "Arduino UNO R3". So I'm using "Arduino UNO Wifi" from option list.

That shouldn't cause any problems but Arduino/Genuino Uno is more correct.

pert:
Arduino/Genuino Mega is wrong. Arduino/Genuino Uno is correct.
L should blink for a couple seconds after plugging in the board. After that its behavior will depend on what program is running on your Uno. L is connected to pin 13 of the Uno. So if the program running is blinking pin 13 then the L LED will blink. If the program sets pin 13 to the state that turns the LED on the the L LED will be on. If the program sets pin 13 to the state that turns the LED off the the L LED will be off. And so on...
That shouldn't cause any problems but Arduino/Genuino Uno is more correct.

L led is not blinking after connecting the board.It is always ON.
So i assume that the board is faulty.

Probably, you will need upload/repair the bootloader. Unfortunately, it requires some ISP programmer or another Arduino.

Problem solved.The board had no bootloader.
So i got another arduino and i burn the bootloader.
Now it works fine.
Thank you for your help