[SOLVED] Sketches will upload but don't run
Posted: Sun Aug 02, 2015 10:12 am
All,
Up until yesterday, I was able to upload sketches from Arduino IDE 1.6.5 to my ESP-01 and they ran. I could see the output on Serial Monitor, connect to WiFi, read i2c sensors send data to remote servers. It was all starting to look brilliant.
However, although this worked on my desktop PC, I found I was unable to do the same thing on my laptop. If I tried to upload the same sketch using my laptop, the sketch upload seemed to go OK, but once the IDE said "Done Uploading", the sketch did not run and there was no output on Serial Monitor. Pressing the reset button I have attached to ESP-01 (switch to ground, 10K pullup) just caused a line of garbage to appear on Serial Monitor. Switch back to the desktop PC and the exact same sketch uploads & runs fine on the same ESP-01. This was strange and awkward but I could live with it.
Yesterday, the same problem suddenly started to happen on my desktop PC. I can't think of anything I changed that could have caused this, I was just making minor amendments to a sketch and it started happening. I have tried removing all but essential components and uploaded a very basic sketch:
When I upload this sketch, I see:
Both desktop and laptop are running Ubuntu 14.04 and Arduino 1.6.5.
Can anyone suggest how I can diagnose the problem please? My ESP development has ground to a halt and it was going so well!
Up until yesterday, I was able to upload sketches from Arduino IDE 1.6.5 to my ESP-01 and they ran. I could see the output on Serial Monitor, connect to WiFi, read i2c sensors send data to remote servers. It was all starting to look brilliant.
However, although this worked on my desktop PC, I found I was unable to do the same thing on my laptop. If I tried to upload the same sketch using my laptop, the sketch upload seemed to go OK, but once the IDE said "Done Uploading", the sketch did not run and there was no output on Serial Monitor. Pressing the reset button I have attached to ESP-01 (switch to ground, 10K pullup) just caused a line of garbage to appear on Serial Monitor. Switch back to the desktop PC and the exact same sketch uploads & runs fine on the same ESP-01. This was strange and awkward but I could live with it.
Yesterday, the same problem suddenly started to happen on my desktop PC. I can't think of anything I changed that could have caused this, I was just making minor amendments to a sketch and it started happening. I have tried removing all but essential components and uploaded a very basic sketch:
Code: Select all
void setup() {
Serial.begin(115200);
}
void loop() {
Serial.println("Test");
delay(1000);
}
When I upload this sketch, I see:
Code: Select all
followed by the "Upload Done" message on the IDE. But nothing on Serial monitor.Sketch uses 207,296 bytes (47%) of program storage space. Maximum is 434,160 bytes.
Global variables use 44,812 bytes (54%) of dynamic memory, leaving 37,108 bytes for local variables. Maximum is 81,920 bytes.
Uploading 211440 bytes from /tmp/build3153175143704989962.tmp/Blink.cpp.bin to flash at 0x00000000
...............................................................................................................................................................................................................
Both desktop and laptop are running Ubuntu 14.04 and Arduino 1.6.5.
Can anyone suggest how I can diagnose the problem please? My ESP development has ground to a halt and it was going so well!