Go to file
HuangXin 997af76d78 Fix configure tools load release configure file cause HTTP&MQTT Server information error 2019-03-15 14:34:31 +08:00
ESP8266_RTOS_SDK
bin
board/smart_lock
config_tools
configure
driver
fota
include
jsprase
mqtt
netease
protocol
soft_ap
tools
user
.gitignore
Makefile
README.md
gen_misc.sh

README.md

目录结构:

├── ESP8266_RTOS_SDK                   // SDK
├── Makefile
├── README.md
├── bin                                // 编译生成的 bin 目录
│   ├── blank.bin                      // 烧录地址 0xfe000
│   ├── boot_v1.6.bin                  // 烧录地址 0x00000
│   ├── esp_init_data_default.bin      // 烧录地址 0xfc000
│   └── upgrade                        // 编译后会生成此目录下的相应文件
│       ├── user1.1024.new.2.S
│       ├── user1.1024.new.2.bin       // 烧录地址 0x1000
│       └── user1.1024.new.2.dump
├── driver
│   ├── Makefile
│   └── uart.c
├── gen_misc.sh
├── include
│   ├── esp_main.h
│   ├── mqtt.h                         // MQTT broker ip 和 port 配置
│   ├── ssl_client_crt.h
│   ├── uart.h
│   └── user_config.h                  // 作为 demo 的 SSID 和 password
├── mqtt
│   ├── Makefile
│   ├── esp_mqtt.c                    // mqtt demo可在此修改订阅和发布的 topic 
│   └── gen_crt.sh
├── netease
│   ├── Makefile
│   └── esp_main.c
├── tools
└── user
    ├── Makefile
    └── user_main.c                    // 主函数入口

工程下载

  • 下载全新工程
    运行命令: git clone --recursive https://glab.espressif.cn/customer/netease/netease_esp8266.git
  • 更新已有工程
    运行命令: git pull
  • 更新默认 SDK:
    运行命令: git submodule update --recursive --init

编译方法

1. 进入工程目录,直接运行 make 编译,然后按照目录介绍的文件进行烧录。
2. 默认编译的为 user1.bin,即 bin/upgrade 目录下的 user1.1024.new.2.bin 文件,若要编译 user2.bin则运行 make APP=2则会在 bin/upgrade 目录下生成 user2.1024.new.2.bin 。