GithubHelp home page GithubHelp logo

neutree / esp8266-nonos-sdk Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 5.62 MB

some optimization based on official esp8266 nonos sdk 2.0

License: Other

Makefile 0.28% Assembly 95.20% Batchfile 0.04% Shell 0.05% C 4.10% C++ 0.34%
esp8266 sdk docker

esp8266-nonos-sdk's Introduction

Feature

  • based on espressif nonos sdk v2.0
  • integrate esptool and set default download baudrate as 1500000
  • driver and project can be built directly at you first get this project

How To Use

1. clone this project

git clone https://github.com/Neutree/esp8266-nonos-sdk.git

3. create container(set up compile environment and download tool etc.)

  • pull docker image:
docker pull neucrack/esp-build
or
docker pull daocloud.io/neucrack/esp-build
  • plug in you device(eg:node mcu)
  • create a container
docker run -ti --name esp8266-builder --device /dev/ttyUSB0:/dev/ttyUSB0 -v dir:/build neucrack/esp-build /bin/bash

the dir is the direction of esp8266-nonos-sdk project when pull and run completed, the next time you want use this container by

docker start esp8266-builder
docker attach esp8266-builder

4. build project and download to board

run in container

cd /build/esp8266-nonos-sdk
make flash

build options:

make           : compile project
make flash     : compile and upload code to flash of board
make erase     : erase all data in flash
make monitor   : serial monitor tool
make clean     : clean binary files
make distclean : clean binary files and folders
make help      : help info

parameters:

(1) ESPPORT
	Default:/dev/ttyUSB0
(2) DOWNLOADBAUD
	Default:1500000
(3) COMPILE
    Possible value: gcc
    Default value: gcc
    If set null, will use xt-xcc.
(4) BOOT
    Possible value: none/old/new
      none: no need boot
      old: use boot_v1.1
      new: use boot_v1.2+
    Default value: new
(5) APP
    Possible value: 0/1/2
      0: original mode, generate eagle.app.v6.flash.bin and eagle.app.v6.irom0text.bin
      1: generate user1
      2: generate user2
    Default value: 1
(6) SPI_SPEED
    Possible value: 20/26.7/40/80
    Default value: 40
(7) SPI_MODE
    Possible value: QIO/QOUT/DIO/DOUT
    Default value: DIO
(8) SPI_SIZE_MAP
    Possible value: 0/2/3/4/5/6
    Default value: 2
For example:
    make COMPILE=gcc BOOT=new APP=1 SPI_SPEED=40 SPI_MODE=DIO SPI_SIZE_MAP=2
You can also use gen_misc to make and generate specific bin you needed.
    Linux: ./gen_misc.sh
    Windows: gen_misc.bat
    Follow the tips and steps by steps.

5. monitor serial output

use serial monitor:

  • when linux ,use minicom or screen use minicom
sudo apt install minicom
sudo minicom -s  (setting /deb/ttyUSB0 115200 8n1)
sudo minicom -c on

exit minicom:
ctrl+A -> X -> Enter
or use screen

screen /dev/ttyUSB0 115200

exit screen:
ctrl+A -> K -> Y

  • when docker,use:
make monitor

(pay attenrion, RTS and DTR are locked, so push reset button will not functional, use ctrl+T->ctrl+H to see help)

  • when windows,use serial monitor with GUI,such as UartAssist.exe

directories description

src           source code
|---driver    driver source code
|---include   include files
|---user      user main

you can copy example from exampleto src,or delete example to make project clean~~

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.