Skip to content

Instantly share code, notes, and snippets.

@kmpm
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kmpm/09d54dd87b4f113f8b00 to your computer and use it in GitHub Desktop.
Save kmpm/09d54dd87b4f113f8b00 to your computer and use it in GitHub Desktop.
esp8266

Chip to pin names

Pin 	Name 	    Description
1 	    GND 	    Ground
2 	    U0TXD 	    UART0 Transmit
3 	    GPIO2 	    Has internal pull-up
4 	    CHIP_EN 	Chip Enable, active high
5 	    GPIO0 	    Has internal pull-up
6 	    EXT_RSTB 	External reset signal, active low. Leave hanging
7 	    U0RXD 	    UART0 Receive, has internal pull-up
8 	    VDD 	    +3.3V power input

Adafruit 3.3v RPI Console cable

Examples with module ESP 01

                PIN     Name        Description
WHITE   <-->    2       U0TXD       UART0 Transmit
GREEN   <-->    7 	    U0RXD 	    UART0 Receive, has internal pull-up
BLACK   <-->    1 	    GND 	    Ground
RED     <-->    N/A                 +5V

Uploading

To upload to the module, configure the following pins:

Pin     Name 	Level 	Description
3       GPIO2 	High 	Selects UART download boot mode
4       CH_PD 	High 	Enables the chip
5       GPIO0 	Low 	Selects UART download boot mode
N/A     GPIO15 	Low 	If availble. Selects UART download boot mode

esp8266_at

git clone https://github.com/espressif/esp8266_at
cd esp8266_at/bin
esptool.py -p /dev/ttyUSB0 write_flash 0x00000 boot_v1.1.bin 0x01000 \ 
newest/user1.bin 0x7c000 esp_init_data_default.bin 0x7e000 blank.bin

This should give you an output like

Connecting...
Erasing flash...
Writing at 0x00000400... (100 %)
Erasing flash...
Writing at 0x00037400... (100 %)
Erasing flash...
Writing at 0x0007c000... (100 %)
Erasing flash...
Writing at 0x0007ec00... (100 %)

Leaving...

Run as normal

Pin     Name 	Level 	Description
3       GPIO2 	N/A 	
4       CH_PD 	High 	Enables the chip
5       GPIO0 	N/A 	
N/A     GPIO15 	Low 	If availble. Selects UART download boot mode

Connect terminal

nodemcu

screen /dev/ttyUSB0 9600

To kill connection press Ctrl+A K

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment