-->
Page 1 of 1

Error when loading Arduino blink program

PostPosted: Wed Jul 01, 2015 3:39 am
by onehorse
I designed and assembled an ESP8266 [url]https://www.oshpark.com/shared_projects/0FfXBo62//url]breakout[/url] board and firrst trid node mcu bootloader. This seemed to be successful but I couldn't get anywhere with luaLoader so I tried the Arduino IDE. I think I hooked it up the same and correct way but when I try to upload a blink program I get a serial read failure:

Code: Select all/* LED Blink, Teensyduino Tutorial #1
   http://www.pjrc.com/teensy/tutorial.html
 
   This example code is in the public domain.
*/
#define myLed 16

void setup() {
  Serial.begin(38400);
  pinMode(myLed, OUTPUT);
  digitalWrite(myLed, HIGH);

}

// the loop() methor runs over and over again,
// as long as the board has power

void loop() {
//  if (Serial.available() > 0) {
//    Serial.write(Serial.read());
//  }
    digitalWrite(myLed, !digitalRead(myLed));
delay(1000);
}



I can't seem to copy the verbose serial output but it says warning: espcomm_sync failed and error: espcomm_open failed.

Any idea what I might be doing wrong?

Re: Error when loading Arduino blink program

PostPosted: Wed Jul 01, 2015 1:14 pm
by martinayotte
Do you mean that you are not able to upload ?
Turn on the "verbose" checkbox in Arduino IDE, maybe you will see more.
Are you having all proper connections and having GPIO0 at LOW during flashing ?
Are you running on Windows or Linux ?
On Linux, it is usually because you don't have USB serial port permissions.

Re: Error when loading Arduino blink program

PostPosted: Thu Jul 02, 2015 3:41 am
by tytower
That error is telling you Arduino cant upload to the chip so something is wrong with your connections . See the wiki above on this page . When set right and you power up the blue led flashes once . Then you can upload the code if your serial port is set right.

Re: Error when loading Arduino blink program

PostPosted: Tue Jul 14, 2015 11:43 pm
by Psifrost
I had this problem for a while as well. The solution I found that works was strange. I GPIO 0 connected to ground prior to powering the chip, then disconnected it after powering the chip but before starting the flash. Credit goes to quintinjvr for this fix. The thread on it is here , if you'd like to read more