Hi,
I have an Arduino Micro here, to which I accidentally flashed a bad program (with a main() function in there), which apparently prevents it from reaching the usb initialization of the atmega32u4. The symptoms are the following:
- Attaching the Arduino via USB does not cause it to be recognized on the PC (both Windows & Linux)
- However the power LED goes on
- Hitting the reset button causes the Arduino to to appear for about 5 seconds before disconnecting
- After it disconnects, it seems to be stuck
Now I've read about people with similar issues being able to quickly upload the blink sketch. In my case this does not appear to work, as avrdude seems to take too much time to upload the program (either when executed from the IDE or directly on the command line). Is there some other option I can use to flash a proper program to save the arduino?
Update:
6 hours later I finally got it fixed. I initially tried to use Arduino ISP with my Mega2560. In theory this should work to solve the issue. Sadly you need a capacitor to avoid the reset on the Mega which I didn't have on hand. Finally the solution which worked for me was to just use Linux. Apparently serial communication works a bit faster on Linux compared to Win10, so I was able to flash a bare minimum sketch. Now the Arduino is working fine again.