Given that this code was working well like a hour ago. I am compiling for Arduino nano. Pls help.
Edit:heres the error msg
exec: "C:\\Users\\adich\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++": executable file not found in %PATH%
Compilation error: exec: "C:\\Users\\adich\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++": executable file not found in %PATH%
exec: "C:\\Users\\adich\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++": executable file not found in %PATH%
Compilation error: exec: "C:\\Users\\adich\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++": executable file not found in %PATH%
Sketch uses 6348 bytes (20%) of program storage space. Maximum is 30720 bytes.
Global variables use 431 bytes (21%) of dynamic memory, leaving 1617 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=0xd9
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xd9
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xd9
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xd9
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xd9
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xd9
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xd9
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xd9
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xd9
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xd9
Failed uploading: uploading error: exit status 1
Hi @flyex10. I'm going to ask you to provide the full verbose output from an upload attempt.
This procedure is not intended to solve the problem. The purpose is to gather more information.
Please do this:
Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
The "Preferences" dialog will open.
Uncheck the box next to Show verbose output during: ☑ compile in the "Preferences" dialog.
Check the box next to Show verbose output during: ☐ upload.
Click the "OK" button.
The "Preferences" dialog will close.
Attempt an upload, as you did before.
Wait for the upload to fail.
You will see an "Upload error: ..." notification at the bottom right corner of the Arduino IDE window. Click the "COPY ERROR MESSAGES" button on that notification.
Open a forum reply here by clicking the "Reply" button.
Click the <CODE/> icon on the post composer toolbar.
This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
Do you get the same "avrdude: stk500_recv(): programmer is not responding" error when you attempt to upload to both of the boards? Or does the problem only occur with one of the boards?
OK, that is good. The blink after reset eliminates some possible causes of the upload error. We now know two things about the board that blinks:
The primary microcontroller on the board is running
The bootloader program that handles sketch uploads is present on the microcontroller.
You have correctly configured Arduino IDE for use with this board.
This result tells us that one of the following two things is happening on the board that doesn't blink:
The microcontroller on the board is not running.
The bootloader (a program stored in a special area of memory in the microcontroller that handles sketch uploads) was somehow erased or corrupted.
For now, let's focus our attention exclusively on the board that blinks. Trying to troubleshoot two different boards that apparently have different problems will be sure to cause confusion. Please disconnect the board that doesn't blink from your computer and put it in a drawer until we request you to get it back out again.
This error might be caused by having the wrong port selected from the Tools > Port menu in Arduino IDE.
Please perform this experiment to verify that the port you have selected is your Arduino board:
Disconnect the USB cable of the Arduino board that blinks from your computer.
Select Tools > Port from the Arduino IDE menus.
Take note of the ports (if any) listed in the menu.
Close the Tools menu. The ports list is only updated when the Tools menu is re-opened, so this step is essential.
Connect the Arduino board that blinks to your computer with a USB cable.
Select Tools > Port from the Arduino IDE menus. - If a new port is listed in the menu, that is the port of your Arduino board.
If you saw a new port appear at the last step, select that port from the Tools > Port menu and try uploading again.
If this doesn't solve the problem, please reply here on this forum thread with the answers to the following questions:
While following those instructions, did you see a port in the Tools > Port menu at step (6) that was not present at step (3)?
If you did see a new port, was the upload successful after you selected that port?