-->
Page 1 of 2

Program is uploading but doesn't seem to be running

PostPosted: Tue Apr 11, 2017 11:57 am
by Andyd273
I have and ESP01 and a ESP8266 programming module:
https://www.aliexpress.com/item/1pcs-USB-to-ESP8266-Serial-Wireless-Wifi-Module-Developent-Board-8266-Wifi-Module/32695035976.html

I am trying to upload a program using Arduino IDE 1.8.1, and so I chose the ESP8266 Blink program from the examples menu.

I am basically trying to follow this: https://www.youtube.com/watch?v=m4fUswZSHcY

I soldered the jumper between Ground and GPIO 0 like in the video, push the upload button, and it says that it works:

Code: Select allSketch uses 222197 bytes (51%) of program storage space. Maximum is 434160 bytes.
Global variables use 31572 bytes (38%) of dynamic memory, leaving 50348 bytes for local variables. Maximum is 81920 bytes.
C:\Users\andy\Documents\ArduinoData\packages\esp8266\tools\esptool\0.4.9/esptool.exe -vv -cd ck -cb 115200 -cp COM9 -ca 0x00000 -cf C:\Users\andy\AppData\Local\Temp\arduino_build_173302/Blink.ino.bin
esptool v0.4.9 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
   setting board to ck
   setting baudrate from 115200 to 115200
   setting port from COM1 to COM9
   setting address from 0x00000000 to 0x00000000
   espcomm_upload_file
   espcomm_upload_mem
   setting serial port timeouts to 1000 ms
opening bootloader
resetting board
trying to connect
   flush start
   setting serial port timeouts to 1 ms
   setting serial port timeouts to 1000 ms
   flush complete
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
   read 0, requested 1
trying to connect
   flush start
   setting serial port timeouts to 1 ms
   setting serial port timeouts to 1000 ms
   flush complete
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
   espcomm_send_command: receiving 2 bytes of data
   espcomm_send_command: receiving 2 bytes of data
   espcomm_send_command: receiving 2 bytes of data
   espcomm_send_command: receiving 2 bytes of data
   espcomm_send_command: receiving 2 bytes of data
   espcomm_send_command: receiving 2 bytes of data
   espcomm_send_command: receiving 2 bytes of data
   espcomm_send_command: receiving 2 bytes of data
Uploading 226352 bytes from C:\Users\andy\AppData\Local\Temp\arduino_build_173302/Blink.ino.bin to flash at 0x00000000
   erasing flash
   size: 037430 address: 000000
   first_sector_index: 0
   total_sector_count: 56
   head_sector_count: 16
   adjusted_sector_count: 40
   erase_size: 028000
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
   setting serial port timeouts to 15000 ms
   setting serial port timeouts to 1000 ms
   espcomm_send_command: receiving 2 bytes of data
   writing flash
................................................................................ [ 36% ]
................................................................................ [ 72% ]
..............................................................                   [ 100% ]
starting app without reboot
   espcomm_send_command: sending command header
   espcomm_send_command: sending command payload
   espcomm_send_command: receiving 2 bytes of data
closing bootloader
   flush start
   setting serial port timeouts to 1 ms
   setting serial port timeouts to 1000 ms
   flush complete


But the onboard LED doesn't start blinking like it does in the video.
If I unhook the jumper and replug it in, but still nothing happens.

Then I tried the CheckFlashConfig from the example menu because it has serial outputs, but when I upload it nothing happens and the serial monitor shows no activity.

Is there something that I am missing?

Re: Program is uploading but doesn't seem to be running

PostPosted: Wed Apr 12, 2017 1:33 pm
by Andyd273
Here is a video of my trying out the Blink example from Arduino IDE on my board:


Re: Program is uploading but doesn't seem to be running

PostPosted: Fri Apr 21, 2017 4:15 pm
by Ocsav
For some reason LED_BUILTIN is wrong for module ESP-01S.
Just change it to 2.
About the serial monitor, assuming that you're using the right COM port, try different speeds.


Code: Select allvoid setup() {
  pinMode(2, OUTPUT);     // Initialize the LED_BUILTIN pin as an output
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(2, LOW);   // Turn the LED on (Note that LOW is the voltage level
                                    // but actually the LED is on; this is because
                                    // it is acive low on the ESP-01)
  delay(1000);                      // Wait for a second
  digitalWrite(2, HIGH);  // Turn the LED off by making the voltage HIGH
  delay(2000);                      // Wait for two seconds (to demonstrate the active low LED)
}

Re: Program is uploading but doesn't seem to be running

PostPosted: Wed May 03, 2017 10:20 am
by Andyd273
Ocsav wrote:For some reason LED_BUILTIN is wrong for module ESP-01S.
Just change it to 2.
About the serial monitor, assuming that you're using the right COM port, try different speeds.


So I tried that code, and I tried every speed option, and nothing got better.
Then I decided I'd just go to Amazon and buy a new one, because maybe the ones I got were defective.
I'm reading through the reviews, and I come across this one:

https://www.amazon.com/review/R3TNVHV8L ... B01EA3UJJ4

Important bit: Change flash mode to DOUT, and I set the flash size to 1M (64k SPIFFS), hit the upload button, and it started blinking! No one else has mentioned the DOUT bit anywhere that I've looked. So if anyone else is running into the same problem, give that a try!