Additional information...
I went back to basics - Blink. To my surprise, it did upload and work. So I tried adding only the includes for my project, none of the code, and then it didn't upload again. My test sketch is below. I tried commenting out the includes one-by-one and found that with blink only or blink and the SPI.h include, it would upload and fail to upload randomly. Repeated tries, one after another, would work a few times, then fail many more, then work again... I never got it to upload with either of RadioHead's libraries. It builds, but won't upload.
I've tried many, many times to get the timing right on the build/reset button/upload sequence. Could the issue be, not that the upload doesn't start within 10 seconds, but that it's not done in 10 seconds?
Code: Select all
//#include <RHReliableDatagram.h>
//#include <RH_RF95.h>
//#include <SPI.h>
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
digitalWrite(LED_BUILTIN, HIGH);
delay(250);
digitalWrite(LED_BUILTIN, LOW);
delay(250);
}