Statistics
| Branch: | Tag: | Revision:

mongoose / examples / ESP8266_RTOS / readme.txt @ eaef5bd1

History | View | Annotate | Download (1.46 KB)

1
´╗┐This is a simple project template.
2

    
3
sample_lib is an example for multi-level folder Makefile, notice the folder structure and each Makefile, you can get the clue.
4

    
5

    
6
HOWTO:
7
1. Copy this folder to anywhere.
8
Example:
9
   Copy to ~/workspace/project_template
10
   You can rename this folder as you like.
11

    
12
2. Export SDK_PATH and BIN_PATH.
13
Example:
14
   Your SDK path is ~/esp_iot_rtos_sdk, and want generate bin at ~/esp8266_bin.
15
   Do follow steps:
16
     1>. export SDK_PATH=~/esp_iot_rtos_sdk
17
     2>. export BIN_PATH=~/esp8266_bin
18
   SDK and project are seperate, you can update SDK without change your project.
19

    
20
3. Enter project_template folder, run ./gen_misc.sh, and follow the tips and steps.
21

    
22

    
23
Compile Options:
24
(1) COMPILE
25
    Possible value: xcc
26
    Default value:
27
    If not set, use gcc by default.
28

    
29
(2) BOOT
30
    Possible value: none/old/new
31
      none: no need boot
32
      old: use boot_v1.1
33
      new: use boot_v1.2
34
    Default value: new
35

    
36
(3) APP
37
    Possible value: 0/1/2
38
      0: original mode, generate eagle.app.v6.flash.bin and eagle.app.v6.irom0text.bin
39
      1: generate user1
40
      2: generate user2
41
    Default value: 0
42

    
43
(3) SPI_SPEED
44
    Possible value: 20/26.7/40/80
45
    Default value: 40
46

    
47
(4) SPI_MODE
48
    Possible value: QIO/QOUT/DIO/DOUT
49
    Default value: QIO
50

    
51
(4) SPI_SIZE_MAP
52
    Possible value: 0/2/3/4/5/6
53
    Default value: 0
54

    
55
For example:
56
    make COMPILE=gcc BOOT=new APP=1 SPI_SPEED=40 SPI_MODE=QIO SPI_SIZE_MAP=0