Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By CheapB
#13375 Problem with executing sketch

I uploaded the udpserver example and it seemed to work. Then I wanted to make some changes and I uploaded again and ever since I have not been able to get any sketch to work.

This is what I have:

- Laptop powersupply with LM2596 Voltage Regulator to provide 3.3v 2A
- Esp-01 (v90 – the one with the blue led to indicate serial communication)
- Silicon Labs CP210x (forgot which one)

My connections (Powersupply = PS, Esp-01 = ESP, CP210x = CP)

ESP TX <-> CP RX
ESP RX <-> CP RX
ESP GND <-> CP GND – PS GND
ESP CS <-> PS VCC
ESP RST <-> float
ESP VCC <-> PS VCC
ESP GIO0 <-> PS GND when flashing, float when running
ESP GIO2 <-> float

My test source:

Code: Select allvoid setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  //while (!Serial) {
   // ; // wait for serial port to connect. Needed for Leonardo only
  //}

}

void loop() {
  // put your main code here, to run repeatedly:
  Serial.print("[test]");

}


I have tried 3 different modules

I am on windows 8.1

When i connect power I only get the bootloader garbage on the serial and then nothing. The blue led does not blink (not sure if it is supposed to do on TX or jut on RX)

Any ideas?
User avatar
By manjas51
#13445 same thing

I plug gpio0 to gnd while uploading this simple code, or blink() below example (gpio2 or gpio0)
unplug gpio0 from gnd
reboot

and nothing seen??

Code: Select all// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital gpio2 as an output.
  pinMode(2, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(2, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);              // wait for a second
  digitalWrite(2, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);              // wait for a second
}


I use FTDI to transfer and an external 3,3V

here is the result of uplaoding
Le croquis utilise 184.906 octets (35%) de l'espace de stockage de programmes. Le maximum est de 524.288 octets.
warning: unsupported baud rate: 115200, using 115200
Uploading 30064 bytes from C:\Users\j\AppData\Local\Temp\build1196177597827463010.tmp/Blink.cpp_00000.bin to flash at 0x00000000
..............................
Uploading 154888 bytes from C:\Users\j\AppData\Local\Temp\build1196177597827463010.tmp/Blink.cpp_40000.bin to flash at 0x00040000
........................................................................................................................................................
User avatar
By CheapB
#13456
CheapB wrote:Problem with executing sketch


I have tried 3 different modules

I am on windows 8.1



Ok, i tried a 4th module and it seems to work so far (but, so did at least one of the other ones to begin with) Trying to get my other 3 to work again i re-flashed with a standard firmware to "clear it out" and now I am getting this error:

"warning: espcomm cmd: wrong direction/command: 0x00 0x08, expected 0x01 0x08"