Hi. I am currently using Arduino Nano R3 which is a type of Arduino Mega ADK. When i try to upload my code, i get the the following error:
Sketch uses 8294 bytes (3%) of program storage space. Maximum is 253952 bytes.
Global variables use 358 bytes (4%) of dynamic memory, leaving 7834 bytes for local variables. Maximum is 8192 bytes.
"C:\Users\Bernardo Carlo\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\Bernardo Carlo\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega2560 -cwiring "-PCOM3" -b115200 -D "-Uflash:w:C:\Users\Bernardo Carlo\AppData\Local\Temp\arduino-sketch-DBF0F1D7B2965F6601031771BBCE7815/mainCode_Gas_Analyzer.ino.hex:i"
avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Users\Bernardo Carlo\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
Using Port : COM3
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.
Failed uploading: uploading error: exit status 1
I want to know what wrong and how to fix and I would appreciate your support. Thank you and have a nice day.