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