ESP8266/First setup

From NURDspace

Building the toolchain

As root

apt-get install git autoconf build-essential gperf bison flex texinfo libtool libncurses5-dev wget gawk
mkdir /opt/Espressif
chown $username /opt/Espressif (replace $username with the name of the local user)

as local user

git clone -b lx106 git:// 
cd crosstool-NG
./bootstrap && ./configure --prefix=`pwd` && make && make install
./ct-ng xtensa-lx106-elf
./ct-ng build

Setting up the SDK

Making the ESP tool

cd esptool

change the line TARGET_ARCH to LINUX


Prepping the at example

comment the line #include user_config.h from /opt/Espressif/ESP8266_SDK/include/osapi.h

cd ~
mkdir esp_sources
cd esp_sources
cp -R /opt/Espressif/ESP8266_SDK/examples/at at
cd at 
wget -O Makefile

now upload the files in firmware directory to the module with ( ) --port /dev/tty.usbmodem0E102EE1 write_flash 0x00000 0x00000.bin --port /dev/tty.usbmodem0E102EE1 write_flash 0x40000 0x40000.bin