Hi everyone
I have Arduino clone ELEGOO UNO R3 and it has Atmega16U2 programmer with Atmega328p 28 Dip chip. I have an issue using Arduino under Debian Linux. I haven't tried under win or mac either.
/home/petty/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/bin/avrdude -C/home/petty/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf -v -pm328p -carduino -P/dev/ttyACM0 -b115200 -D -Uflash:w:/tmp/arduino_build_808690/Blink.ino.hex:i
......
......
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
I tried with different baud rates -b19200 and -b57600 and
-carduinoisp -carduinoisp -carduinoisporg -cavrisp -cavrisp2
Looks like you're trying to upload using programmer which is via the ICSP header (the 6 pin header at the side of the board, not the one next to the USB).
Why? I guess the confusion comes from the below
That's not a programmer, it's the TTL-to-USB converter.
For a normal upload via USB to an Uno, the command should look like below; this is for a windows system, you'll have to translate for linux.
If I try to use those parameters I still get these errors
[code]
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
[/code]
Is it possible to check Atmega16U2 TTL-to-USB converter If it works?
The same issue under Windows 7. But I get some numbers in Arduino if I get “Tools > Get Board Info" and also com15 available.
BN: Arduino Uno
VID: 2341
PID: 0043
SN: 7573532......
C:\Users\Petty\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude -CC:\Users\Petty\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf -v -patmega328p -carduino -PCOM15 -b115200 -D -Uflash:w:C:\Users\Petty\AppData\Local\Temp\arduino_build_496849/Blink.ino.hex:i
Using Port : COM15
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=0x57
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x57
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x57
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x57
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x57
I used the install.sh from Linux Mint GUI rather than the console which should not matter but I have completed this numerous times on multiple hardware. I did not have to install using sudo.
But the problem is also under W7 and it looks like the board is visible there. It is something with the bootloader or HW.
I would try loop-back test as sterretje wrote.
I do not have an ELEGOO but since it has a 16U2, That chip is the USB interface for the board. This means, when you jack the USB into your PC, a Windows driver is invoked via the plug&play Windows interface. The driver then provides the necessary software connection to mimic a Com port... said Com port if correctly enumerated will appear in your Device Manager utility.
Microsoft also provides other utilities: USBview being one: Universal Serial Bus Viewer in Windows - Windows drivers | Microsoft Learn
Discussed further here:
See section Common Issues
Are you really certain you are selecting the correct Board & submenu in the IDE?
same thing with windows 7 also drivers are all loaded properly. But same error
[code]
System wide configuration file is "C:\Users\Petty\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
Using Port : COM15
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=0x6d
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x6d
[/code]At the end I took off all the connection jumpers as usual. Reset-GND, TX-RX
I just tried with the Original Arduino Uno from the old project everything works fine. I think there is something wrong with the drivers or Elegoo device.
Drivers should be the same. There is the same USB/serial - ATmega16U2. Its FW is the only thing it could be different. How it comes that it works with lnx? A cable or some another trivial thing?
Anyway, if it works under Debian so the next step could be the bootloader. Check it again with e.g. the blink sketch. Be sure your settings are correct.
If it will not work, you can replace the bootloader with Arduino as ISP. Use the original Arduino UNO. Or, you can interchange Atmega328P MCUs between them to see what happen.
I mean Loop-Back Test works for the both operating systems Debian and Win. I going to try Arduino as an ISP and load a Bootloader. I think your statement is reasonable. I have a CH340g usb stick with 8 yellow female plugging. Could it be used as an ISP?
which chip did we flash during Arduino Elegoo for the bootloader? Atmega16U2 or Atmega328p. I thought ft232 and ch340g doing same thing as Atmega16U2 does.