1
TinyDuino Processors & TinyShields / Re: Cannot reprogram my Tinyduino
« on: May 27, 2016, 07:02:26 PM »
Solving the problem is easy once you realize what the problem is. The symptoms are identical to all of the other can't program because the programmer can't talk to the chip errors. All of those errors end up spewing a confusing set of messages about the "stk500...". Popular causes include connections on pins 1 or 2, power supply issues, wrong Arduino choice in the IDE, corrupt bootloader, etc... Figuring out which is the real problem is not easy. Although, this situation would only develop after loading a sketch with Serial.print() calls.
I read a few long threads turned up by googling those error messages. None of them mentioned "talking too much or too fast" as a cause. So I am assuming this issue is limited to codebender.cc, and within codebender.cc, it probably only appears in some configurations. I could get the behavior with the Chrome plugin on a MacBook Air, and a Chromebook, on both a real Uno, and on a TinyDuino. Since I can make it happen with the Uno, it definitely is not your problem.
If your customers have the issue, ask them if they are using Codebender. If so have them try using the standard Arduino IDE instead. If that isn't an option, they can also
1. unplug the USB cable from their computer.
2. fix the sketch so there is a delay() in any loop with Serial.print(), or put in a delay at the start of the program.
3. Saved the fixed sketch.
4. Hold "shift" and click on the refresh the page icon (the shift key gets Chrome to reload the Codebender plugin. Merely reloading the page is not sufficient.)
5. Once Codebender finishes reloading, make sure it is the right sketch
6. Plug in the TinyDuino
7. Once the USB device shows up, click on "Run on Arduino"
If it doesn't work, try again. If it still doesn't work, try something else. Unfortunately, there are a gazillion errors that cause the same set of messages.
I read a few long threads turned up by googling those error messages. None of them mentioned "talking too much or too fast" as a cause. So I am assuming this issue is limited to codebender.cc, and within codebender.cc, it probably only appears in some configurations. I could get the behavior with the Chrome plugin on a MacBook Air, and a Chromebook, on both a real Uno, and on a TinyDuino. Since I can make it happen with the Uno, it definitely is not your problem.
If your customers have the issue, ask them if they are using Codebender. If so have them try using the standard Arduino IDE instead. If that isn't an option, they can also
1. unplug the USB cable from their computer.
2. fix the sketch so there is a delay() in any loop with Serial.print(), or put in a delay at the start of the program.
3. Saved the fixed sketch.
4. Hold "shift" and click on the refresh the page icon (the shift key gets Chrome to reload the Codebender plugin. Merely reloading the page is not sufficient.)
5. Once Codebender finishes reloading, make sure it is the right sketch
6. Plug in the TinyDuino
7. Once the USB device shows up, click on "Run on Arduino"
If it doesn't work, try again. If it still doesn't work, try something else. Unfortunately, there are a gazillion errors that cause the same set of messages.