Hi, I have two arduinos. One arduino Uno and one arduino Mega the Uno is short of genuine (it gets recognized as such at least and the other one is a clone) (https://grobotronics.com/compatible-mega2560-pro-ch340.html). I have a very slow PC so I have to use Linux or I will have a miserable day. Both flash fine on windows. The Uno still flashes normally on Linux but the other one doesn’t (with all the cables that I have tried). What can I do here is the error code I get.
` * Executing task: platformio run --target upload
Processing megaatmega2560 (platform: atmelavr; board: megaatmega2560; framework: arduino)
----------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: (link dedicated to post the post)
PLATFORM: Atmel AVR (5.0.0) > Arduino Mega or Mega 2560 ATmega2560 (Mega 2560)
HARDWARE: ATMEGA2560 16MHz, 8KB RAM, 248KB Flash
DEBUG: Current (avr-stub) External (avr-stub, simavr)
PACKAGES:
- framework-arduino-avr @ 5.2.0
- tool-avrdude @ 1.60300.200527 (6.3.0)
- toolchain-atmelavr @ 1.70300.191015 (7.3.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 8 compatible libraries
Scanning dependencies...
Dependency Graph
|-- Wire @ 1.0
|-- Keypad @ 3.1.1
|-- LiquidCrystal_I2C @ 1.1.4
|-- DFRobotDFPlayerMini @ 1.0.6
Building in release mode
Checking size .pio/build/megaatmega2560/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [==== ] 35.2% (used 2881 bytes from 8192 bytes)
Flash: [= ] 7.4% (used 18802 bytes from 253952 bytes)
Configuring upload protocol...
AVAILABLE: wiring
CURRENT: upload_protocol = wiring
Looking for upload port...
Auto-detected: /dev/ttyS0
Uploading .pio/build/megaatmega2560/firmware.hex
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.
*** [upload] Error 1`