-->
Page 1 of 1

ESP-01 looks like it's not running any flashed program

PostPosted: Tue Jan 16, 2018 7:03 am
by lpares12
Hi!

Totally newbie here, I bought an ESP-01 with some components to start learning about ESP8266:

My setup is the following:
  • The MB102 is connected through a USB cable to a USB port in my desktop PC and the MB102 is set to output 3.3V
  • The ESP-01 is connected to the FTDI through TXD,RXD to RXD, TXD, to GND at GND_PIN and GPIO0_PIN and to MB102+ at VCC_PIN, reset and ch_pd
  • After flashing, I reboot the ESP-01 connecting the GPIO0 to MB102+

For building the toolchain in Unix I followed this tutorial:
https://primalcortex.wordpress.com/2015/01/09/esp8266-setting-up-native-sdks-on-linux-and-exploring-some-applications/

And I tried to execute the blinky example https://github.com/esp8266/source-code-examples/tree/master/blinky (I had to change the Makefile to set ESPTOOL variable to my correct path.

To compile I go to the blinky directory, which is in the root of my ESP8266_SDK directory and execute
Code: Select allmake
which outputs:
user@pc:/opt/Espressif/ESP8266_SDK/blinky$ make
CC user/user_main.c
AR build/app_app.a
LD build/app.out
FW firmware/
esptool.py v2.3-dev
Creating image for ESP8266...


Then to flash i execute
Code: Select allsudo make flash
, which outputs:
user@pc:/opt/Espressif/ESP8266_SDK/blinky$ sudo make flash
/opt/Espressif/esptool-py/esptool.py --port /dev/ttyUSB0 write_flash 0x00000 firmware/0x00000.bin 0x40000 firmware/0x40000.bin
esptool.py v2.3-dev
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 1MB
Compressed 30784 bytes to 21342...
Wrote 30784 bytes (21342 compressed) at 0x00000000 in 1.9 seconds (effective 129.4 kbit/s)...
Hash of data verified.
Compressed 137476 bytes to 103602...
Wrote 137476 bytes (103602 compressed) at 0x00040000 in 9.2 seconds (effective 119.6 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting...


And it looks like everything is okey, so I basically reboot the ESP-01 after connecting CH_PD to GND, but nothing happens.

The blue LED doesn't blink, the only thing which is ON is the red one which is the power LED.

Could someone point out if I'm doing something wrong, or if there is an easier way of programming the esp-01 using the official SDK?

Thanks!