ATS programing on ESP8266
C ATS Makefile C++
Pull request Compare This branch is 64 commits ahead of esp8266:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ESP8266_PRELUDE
SATS
TDATS
basic_example
basic_example_ats
blinky
blinky_ats
bme280_ats
driver
dweet
dweet_ats
ifttt_ats
img
include/driver
interrupt_example
.gitignore
.travis.yml
COPYING
Makefile
Makefile.common
README.md
config.hats
example.Makefile

README.md

ATS programing on ESP8266 Build Status

Demo code

xxx

Hardware: ESP-WROOM-02

You need some additional board to connect between ESP-WROOM-02 and your PC.

Setup environment

Debian GNU/Linux

Install some packages.

$ sudo apt-get install make unrar autoconf automake libtool gcc g++ gperf flex bison texinfo gawk libncurses5-dev libexpat1-dev python python-serial sed git libgmp-dev

Mac OS X

T.B.D.

Windows

T.B.D.

How to build

Setup toolchain and SDK.

$ git clone --recursive https://github.com/pfalcon/esp-open-sdk.git
$ cd esp-open-sdk
$ git submodule update
$ make STANDALONE=y
$ export XTENSA_TOOLS_ROOT=`pwd`/xtensa-lx106-elf/bin
$ export SDK_BASE=`pwd`/sdk
$ export ESPTOOL=`pwd`/esptool/esptool.py
$ export ESPPORT=/dev/ttyUSB0

Install ATS2 http://www.ats-lang.org/.

$ tar xf ATS2-Postiats-X.Y.Z.tgz
$ export PATSHOME=`pwd`/ATS2-Postiats-X.Y.Z
$ export PATH=${PATSHOME}/bin:${PATH}
$ tar xf ATS2-Postiats-contrib-X.Y.Z.tgz
$ export PATSHOMERELOC=`pwd`/ATS2-Postiats-contrib-X.Y.Z
$ cd ${PATSHOME}
$ ./configure
$ make

Compile the ATS source code for ESP8266.

$ cd esp8266-ats/blinky_ats
$ make
$ ls firmware
0x00000.bin  0x40000.bin

Write to the flash

Connect ESP8266 board to your PC using USB cable. And run following commands.

$ cd esp8266-ats/blinky_ats
$ make flash
/home/kiwamu/src/esp-open-sdk/esptool/esptool.py --port /dev/ttyUSB0 write_flash 0x00000 firmware/0x00000.bin 0x40000 firmware/0x40000.bin
Connecting...
Erasing flash...
Wrote 27648 bytes at 0x00000000 in 2.7 seconds (80.4 kbit/s)...
Erasing flash...
Wrote 183296 bytes at 0x00040000 in 18.3 seconds (80.3 kbit/s)...

Leaving...

How to debug using gdb

T.B.D.