Stuck on upload....

Hello.

I searched loads on this topic on internet, but none seem to work for me.

I bought an Arduino/Genuino Uno VID: 2341, PID: 0043, and was looking forward to getting some programing and testing done. But can’t get the sketch to upload.

I got connection (led on, and L), I got the right board chose (Arduino/Genuino uno) in Arduino 1.8.6, got the right COM-port (Installed drivers from Atmel too get connection with Windows 10).

Followed instructions on how to boot load with Flip version 3.4.7, use device ATmega16U2, use Arduino-usbserial-atmega16u2-Uno-Rev3.hex file. Reset the board several times, boot loaded again, tried different hex-files.

Installed and reinstalled Arduino 1.8.6 three times.

When I upload basic example blink-sketch, then..
The rx-led blinks 3 times, and I get an error message:
Sketch uses 930 bytes (2%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 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=0xff
avrdude: stk500_recv(): programmer is not responding
…….etc…
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xff

Am I missing something simple or is Arduino not that easy to use? Maybe some friendly soul out there can help me?

read my post here. It was a security problem with Windows for me.

https://forum.arduino.cc/index.php?topic=565575.0

@ricronkhite

You were provided with more than enough information about your particular issue.
Not everyone has the same issue as you, which was dealt with.

As already stated and backed up yours is a clearly over aggressive security system.

(sigh)

Hello.
Very much tanks for your time and quick reply’s.

I turned off all Windows firewall functions, but still get the same fail.
Could it be the bootloader program that isn’t working correct? Can I test it somehow?

And I also got a MSP430 board that I use with Energia, and it works with no problems.

Lets start with some simple questions.

Is it a TRUE Arduino or cheap clone ?

What does DEVICE MANAGER show for the device when you plug it in and wait a few moments then unplug it ?

Do you have anything in DEVICE MANAGER that has any type or warnings or unknown devices ?

Are you using USB 2.0 or 3.0 ports ? (USB 3.0 has been known to cause issues)

Thank you for trying to help.

It’s a true Arduino, designed and assembled in Italy.

Arduino Uno (com 5)
Arduino LLC (www.arduino.cc)
Date: 2015-11-24
Version: 1.2.3.0
Digital signed by: Arduino LLC
Port_#0005.Hub_#0001
Driver file: c:\windows\system32\drivers\usbser.sys
When Unplug it disappear.

No warnings in device manager.

I tried both USB 2.0 and 3.0, same result.

The only responses I can find for the "ff" error all tend to relate to programming speed.

Have you made any changes to the programmer selection or COM port details ?

Also have you installed any ADAFRUIT software ?

No, I use default values on com-port, but I tried some other values now that you mentioned it, like 14400 bitrates and turned off FIFO-buffer, but it didn’t help.

Don’t know what Adafruit is, so I googled, its some program so no I don’t have that.

It’s interesting on sketch upload because the rx-LED lights up three times initially, and then for every try
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xff
etc…
it blinks shortly until it gives up after 10 cycles, so there is connection, but something isn’t working properly.

Does this indicate it’s some sort of software fail and not hardware fault?

It maybe that you made some hardware changes on the serial ports inside windows that have had a bad effect.
Normally you would leave those alone completely as the IDE knows what to do in that regards.

If you go back to each port that shows up and call up the PROPERTIES tab for each then hit the ADVANCED and set the FIFO as ticked and both sliders to max or try the DEFAULT button in that tab to make sure it does the same thing.

Click OK on the ADVANCED tab to take you back to the regular properties tab and then hit RESTORE DEFAULTS.

Do that for each port you have and then RESTART your computer.

That would normally fix the default values so long as you didn't play with the COM port numbers too in which case you would really need to do an administrative reset of the COM ports which is a different procedure.

Hello, thanks for your response.

They are all default values now, but I still get the same fault.
Is there some way to reset the software module in Arduino?

That would be what is normally be termed as "burn bootloader" and normally involves another Arduino as ICSP or a small cheap piece of hardware. (google "arduino burn bootloader" or "arduino icsp")

Before you go there did you actually change any COM port numbers eg. swapping COM 1 to COM 2 etc ?
If so it might be worth resetting the windows serial stack which is not all that difficult.

If you do that then unplug as many items that may use COM ports as you can especially Arduinos.

If you get a box to also remove drivers then I would say YES.
When done simply restart the computer and then plug in items one by one and wait for any drivers to finish re-loading.

Ok, I uninstalled COM-drivers, restarted, then reinstall of drivers went automatically when plugging in Arduino again. Restarted windows again. Uninstalled Arduino sketch, restarted windows, installed Arduino again and restarted once more.
Again, windows recognize Arduino on COM port, then I tried to upload example blink sketch.
But now I get a new error message:

WARNING: Category '' in library EEPROM is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library SPI is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library SoftwareSerial is not valid. Setting to 'Uncategorized'
WARNING: Category '' in library Wire is not valid. Setting to 'Uncategorized'
Warning: platform.txt from core 'Arduino AVR Boards' contains deprecated recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}", automatically converted to recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}". Consider upgrading this core.
Sketch uses 450 bytes (1%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 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=0xbe
etc..
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xbe

Same thing as before, board LED rx blinks initialize three times, and then 10 times.

We have done nothing to change the IDE so I am not sure where those warning messages are coming from.

However the stk500 message is now different.
Before it was FF and now it is BE which looks to mean the com port issue is resolved.

Did you make any changes with the IDE at any time ?

If so it may be worth a re-install of the IDE itself to at least 1.8.5 version.
If you go that route there are a few clean up options to consider.

Clean up instructions attached.

Meanwhile I wonder if anyone else has seen the BE stk error and I will have a look myself too.

EDIT...
The BE error seems to be mentioned with BOOTLOADER issues

I remember you used ATMEL FLIP early on and wonder if you corrupted the bootloader somehow.
Now we have the serial ports fixed you are probably seeing the real error.

CLEAN UP BEFORE INSTALLING ANOTHER COPY OF THE IDE OR ARDUINO CREATE.pdf (347 KB)

Again, thanks you for your help.
I think I downloaded a downgrade of the IDE but not sure how I did.
Tried to reinstall the windows way first, and it didn’t work. But now I followed your instructions and the IDE is working again.
I still get error on uploading sketch, but the error code is different this time:
Sketch uses 930 bytes (2%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 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=0x13
etc…
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x13

I notice now that I get different error codes depending on which sketch I run.
Example, Blink without delay gives.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xfa
while example, bare minimum gives.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x70

Those clean up instructions were developed from an Arduino testers point of view and have been used by countless others.

Am almost certain it is going to be a bootloader/board issue at this point.
I use a USBTINY myself to re-load bootloaders but have also had good luck with other Arduinos as ICSP's

So simple to set up and use and no issues.

Ok, I got the USBTINY wired everything up and burned bootloader with no problems or errors.
I noticed that the L LED flickers when receiving, but don’t turn off.
Disconnect USBTINY, restarted windows, verify an empty sketch with no errors.
Everything connected to right com port etc.
But get this message when uploading:
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xbb
…etc…
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xbb
The error code “resp=0x??” changes with every upload attempt.

Followed instructions on how to boot load with Flip version 3.4.7, use device ATmega16U2, use Arduino-usbserial-atmega16u2-Uno-Rev3.hex file. Reset the board several times, boot loaded again, tried different hex-files.

Try the Loop-back test .

https://forum.arduino.cc/index.php?topic=73748.0

Ok, thanks for tip.
Tried that with serial monitor on Arduino IDE and everything echo’s back, so it’s working.

Also installed Arduino IDE and Flip 3,4,7 on another computer with windows 7. Installation works fine and gets connection with Arduino, but when uploading sketch, I get the same error. :frowning: