1
TinyDuino Processors & TinyShields / Re: Cannot reprogram my Tinyduino
« on: April 21, 2016, 04:13:20 PM »
Many thanks John.
That link didn't directly solve my issue but it gave me a good hint: I am suspicious that the USB shield is not sending a reset to the processor when trying to start uploading the sketch.
I'll have to get my scope hooked up to it to check this, but I'm thinking that perhaps if my original sketch is chucking too much TX data towards the PC, and isn't being reset, then maybe this is preventing the uploader from establishing comms.
I found that if I unplug the board, wait a minute then plug it back in and quickly try to upload my sketch, it works reliably.
I added a big start-up delay() in my sketch so it doesn't do anything for 5 seconds after power-up, and magically it's become easier to upload sketches.
Annoying, but at least I hadn't somehow bricked the board, which was my main concern.
If I can establish what happens with the reset signal, I'll post the details here...
That link didn't directly solve my issue but it gave me a good hint: I am suspicious that the USB shield is not sending a reset to the processor when trying to start uploading the sketch.
I'll have to get my scope hooked up to it to check this, but I'm thinking that perhaps if my original sketch is chucking too much TX data towards the PC, and isn't being reset, then maybe this is preventing the uploader from establishing comms.
I found that if I unplug the board, wait a minute then plug it back in and quickly try to upload my sketch, it works reliably.
I added a big start-up delay() in my sketch so it doesn't do anything for 5 seconds after power-up, and magically it's become easier to upload sketches.
Annoying, but at least I hadn't somehow bricked the board, which was my main concern.
If I can establish what happens with the reset signal, I'll post the details here...