All Projects → T-vK → docker-esp-sdk

T-vK / docker-esp-sdk

Licence: other
Executable docker image to easily compile and flash for the ESP32 and ESP8266

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to docker-esp-sdk

n2d
An easy to use ESP8266 flash tool with built-in support for the Deauther Project.
Stars: ✭ 136 (+353.33%)
Mutual labels:  esp8266, flash, esp32
home
Monorepo for all home automation related development, including integrated firmware, PCBs, configuration, and bridges
Stars: ✭ 104 (+246.67%)
Mutual labels:  esp8266, esp32, esp
esp-logger
An Arduino library providing a minimal interface to log data on flash memory and SD cards with ESP8266 and ESP32
Stars: ✭ 40 (+33.33%)
Mutual labels:  esp8266, esp32, esp
esp8266-upy
MicroPython Cross-platform Drivers - collection of code, wiring and sample for various breakout boards - Works with ESP8266, Pyboard, PYB405, Wemos, etc))
Stars: ✭ 36 (+20%)
Mutual labels:  esp8266, esp32
ESPHome-Air-Quality-Monitor
ESPHome configuration for a DIY indoor air quality monitor for CO₂ concentration, PM2.5 and PM10 concentrations, and temperature, humidity and pressure
Stars: ✭ 42 (+40%)
Mutual labels:  esp8266, esp32
ebusd-esp
Firmware for ESP8266 allowing eBUS communication for ebusd (https://github.com/john30/ebusd)
Stars: ✭ 68 (+126.67%)
Mutual labels:  esp8266, esp32
iot-product-dev-book
Source code for example apps from IoT Development for ESP32 and ESP8266 with JavaScript.
Stars: ✭ 38 (+26.67%)
Mutual labels:  esp8266, esp32
home-assistant-opentherm-thermostat
Home Assistant OpenTherm Thermostat
Stars: ✭ 26 (-13.33%)
Mutual labels:  esp8266, esp32
ESPHome-OpenTherm
Example of how to control an opentherm boiler with esphome
Stars: ✭ 54 (+80%)
Mutual labels:  esp8266, esp32
supla-arduino
SuplaDevice library for Arduino IDE that helps you build your own IoT device based on ESPx and Arduino Mega boards.
Stars: ✭ 25 (-16.67%)
Mutual labels:  esp8266, esp32
low-power-wifi
Experiments in low-power-wifi on esp8266, esp32, and ...
Stars: ✭ 35 (+16.67%)
Mutual labels:  esp8266, esp32
AsyncTelegram
Async Arduino Telegram BOT Library for ESP8266 and ESP32
Stars: ✭ 41 (+36.67%)
Mutual labels:  esp8266, esp32
micropython-TEA5767
MicroPython driver for TEA5767 FM radio module on ESP8266/ESP32/Pico
Stars: ✭ 24 (-20%)
Mutual labels:  esp8266, esp32
MicroPython Examples
MicroPython Examples For 01Studio Development Board
Stars: ✭ 86 (+186.67%)
Mutual labels:  esp8266, esp32
wireless-esp8266-dap
ESP8266 Wireless Debugger. Based on CMSIS-DAP v2.0.0. Optional 40MHz SPI acceleration, etc. ESP8266 无线调试器
Stars: ✭ 154 (+413.33%)
Mutual labels:  esp8266, esp32
MySQL MariaDB Generic
This MySQL_MariaDB_Generic library helps you connect your boards directly to a MySQL / MariaDB server, either local or cloud-based, so that you can store / retrieve data to / from the server. Supported boards are ESP8266/ESP32, WT32_ETH01 (ESP32 + LAN8720A), nRF52, SAMD21/SAMD51, STM32F/L/H/G/WB/MP1, Teensy, SAM DUE, Mega, RP2040-based boards, P…
Stars: ✭ 35 (+16.67%)
Mutual labels:  esp8266, esp32
ESPNtpClient
High accuracy NTP library for ESP32 and ESP8266
Stars: ✭ 81 (+170%)
Mutual labels:  esp8266, esp32
esphome-devices
ESPHome Device Configurations Repository - A database of user submitted configurations for a variety of devices which can be flashed to run ESPHome.io firmware.
Stars: ✭ 71 (+136.67%)
Mutual labels:  esp8266, esp32
Pixie Chroma
Arduino library and documentation for Pixie Chroma displays!
Stars: ✭ 33 (+10%)
Mutual labels:  esp8266, esp32
Ailight
AiLight is a custom firmware for the esp8266 based Ai-Thinker (or equivalent) RGBW WiFi light bulbs
Stars: ✭ 248 (+726.67%)
Mutual labels:  esp8266, flash

Easily compile and flash binaries for the ESP8266 and ESP8266EX

You might also be interested in the branch for the ESP32: https://github.com/T-vK/docker-esp-sdk/tree/esp32

  1. Get Docker
  • If you trust me, you can simply pull my image from the docker hub:

    sudo docker pull tavk/esp-sdk:0.1.0
  • Otherwise, if you want it to be built on your computer (takes about 30-90 minutes), run this:

    git clone https://github.com/T-vK/docker-esp-sdk.git
    cd docker-esp-sdk
    sudo docker build -t tavk/esp-sdk:0.1.0 .

Done!

How to use

Compiling binaries

sudo docker run -t -i -u esp \
-v /home/ubuntu/esp8266/esp-open-sdk/examples/blinky:/home/esp/shared_project \
-e SDK_VERSION='1.5.3' \
tavk/esp-sdk:0.1.0 \
make
  • Replace /home/ubuntu/esp8266/esp-open-sdk/examples/blinky with the absolute path to the directory of the project oyu want to compile.
  • Replace 1.5.3 with whatever version of the ESP SDK you want to compile. 1.4.0 up to 2.0.0 are supported.
  • Replace make with whatever command is necessary to compile your binary/binaries.

Flashing binaries

sudo docker run -t -i -u esp \
--device=/dev/ttyUSB0 \
-v /home/ubuntu/esp8266/esp-open-sdk/examples/blinky:/home/esp/shared_project \
tavk/esp-sdk:0.1.0 \
esptool.py --port /dev/ttyUSB0 write_flash 0x00000 blinky-0x00000.bin 0x40000 blinky-0x40000.bin
  • Replace /home/ubuntu/esp8266/esp-open-sdk/examples/blinky with the absolute path to the directory that contains the files you want to flash.
  • Replace /dev/ttyUSB0 with the COM port that your ESP is connected to.
  • Replace esptool.py --port /dev/ttyUSB0 write_flash 0x00000 blinky-0x00000.bin 0x40000 blinky-0x40000.bin with whatever command is necessary to flash your binaries.

Flashing bootloaders

sudo docker run -t -i -u esp \
--device=/dev/ttyUSB0 \
-v /home/ubuntu/projects/esp-bootloader:/home/esp/shared_project \
tavk/esp-sdk:0.1.0 \
esptool.py --port /dev/ttyUSB0 write_flash --flash_mode dio --flash_size 32m 0x0 bootloader.bin
  • Replace /home/ubuntu/projects/esp-bootloader with the absolute path to the directory that contains the files you want to flash.
  • Replace /dev/ttyUSB0 with the COM port that your ESP is connected to. -Replace esptool.py --port /dev/ttyUSB0 write_flash --flash_mode dio --flash_size 32m 0x0 bootloader.bin with whatever command is necessary to flash your binaries.

If the make file takes care of compiling AND flashing

sudo docker run -t -i -u esp \
--device=/dev/ttyUSB0 \
-v /home/debian/espusb:/home/esp/shared_project \
-e SDK_VERSION='1.5.3' \
tavk/esp-sdk:0.1.0 \
make ESP_ROOT=/home/esp/esp-open-sdk burn
  • Replace /dev/ttyUSB0 with the COM port your esp is connected to.
  • Replace /home/debian/espusb with the absolute path to directory of the project you want to compile/flash.
  • Replace 1.5.3 with whatever version of the ESP SDK you want to use for the compiling process.
  • Replace make ESP_ROOT=/home/esp/esp-open-sdk burn with the command necessary to compile and flash your project.

For more information on flashing please refer to the README of https://github.com/themadinventor/esptool

Tested

I personally tested the docker image under Ubuntu 16.04 x64 and Debian 8 Jessie x64.

Can I use this on Windows?

Yes, but docker doesn't run natively on Windows. Tools like boot2docker or docker-machine create a Linux VM using VirtualBox. So in order to grant the docker image access to your serial port and your project folder you have to pass your serial port (or usb serial adapter) through to the vm and the same applies for your project folder.
Read this for more information on that: http://stackoverflow.com/questions/30864466/whats-the-best-way-to-share-files-from-windows-to-boot2docker-vm

Can I use this on Mac OS X?

Probably yes. If docker runs natively on Mac OS X, then there is no need to do anything special. Otherwise follow the same steps that are required for Windows as described above.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].