Go Down

Topic: Uploading sketch problem (Read 523 times) previous topic - next topic

Blake-Cobalt

HI, I am brand new to arduino and I am in need of some assistance. When I try to upload the sketch I get a "Problem uploading to board." error. Here are the error messages:
Arduino: 1.8.5 (Windows Store 1.8.10.0) (Windows 10), Board: "Arduino Nano, ATmega328P"

C:\Users\Dr-Wh\Desktop\Full_Phaser_1\Full_Phaser_1.ino: In function 'setup':

C:\Users\Dr-Wh\Desktop\Full_Phaser_1\Full_Phaser_1.ino:35:21: warning: iteration 10 invokes undefined behavior [-Waggressive-loop-optimizations]

     pinMode(ledPin,OUTPUT);

                     ^

C:\Users\Dr-Wh\Desktop\Full_Phaser_1\Full_Phaser_1.ino:33:3: note: containing loop

   for (int i = 0; i < 11; i++)

   ^

C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.10.0_x86__mdqgnx93n4wtt\hardware\arduino\avr\cores\arduino\main.cpp: In function 'main':

C:\Users\Dr-Wh\Desktop\Full_Phaser_1\Full_Phaser_1.ino:35:21: warning: iteration 10 invokes undefined behavior [-Waggressive-loop-optimizations]

     pinMode(ledPin,OUTPUT);

                     ^

C:\Users\Dr-Wh\Desktop\Full_Phaser_1\Full_Phaser_1.ino:33:3: note: containing loop

   for (int i = 0; i < 11; i++)

   ^

Sketch uses 5150 bytes (16%) of program storage space. Maximum is 30720 bytes.
Global variables use 285 bytes (13%) of dynamic memory, leaving 1763 bytes for local variables. Maximum is 2048 bytes.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x16
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x16
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x16
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x16
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x16
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x16
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x16
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x16
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x16
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x16
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.


Any help is appreciated thanks :)

Column01

What programmer do you have selected? This is the one you should have selected if I remember correctly. Can be found in: Tools -> Programmer in the Arduino IDE v1.8.5

ballscrewbob

Get rid of the window store app and download the proper IDE.
Many people have mentioned issues with the APP version and most seem to be OK once they go to the real IDE.

The programmer wont matter for the NANO as the IDE will use what it needs in that regard.


It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

ballscrewbob

#3
Feb 26, 2018, 03:26 am Last Edit: Feb 26, 2018, 03:26 am by ballscrewbob
What usually works for most is to get the official CH340/341 drivers from here

Mileage on the next two steps varies a little but I always do both and have had no issues.

Turn OFF driver enforcement
Install the drivers as ADMINISTRATOR

Both those steps turn up easy in a google search.

You should be seeing the CH340 device in a similar fashion to the picture below (but not as many LOL)

It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

Go Up