Go to file
HuangXin b172057fcd MQTT protocol support process GPIO function 2019-01-22 15:54:15 +08:00
ESP8266_RTOS_SDK Init Projects 2018-11-23 09:43:17 +08:00
bin v03 Release 2019-01-10 15:18:39 +08:00
board/smart_lock v03 Release 2019-01-10 15:18:39 +08:00
config_tools Configure tools support AES crypto 2018-11-28 14:00:34 +08:00
configure 1. Version change to 4 2019-01-22 15:36:05 +08:00
driver Add gpio map configure 2019-01-22 15:39:15 +08:00
fota Take uart queue receive task to hight priority 2018-12-07 11:08:10 +08:00
include MQTT protocol support process GPIO function 2019-01-22 15:54:15 +08:00
jsprase MQTT protocol support process GPIO function 2019-01-22 15:54:15 +08:00
mqtt 1. Add enter softap mode protocol to mcu. 2019-01-18 11:24:31 +08:00
netease Init Projects 2018-11-23 09:43:17 +08:00
protocol MQTT protocol support process GPIO function 2019-01-22 15:54:15 +08:00
soft_ap 1. Add enter softap mode protocol to mcu. 2019-01-18 11:24:31 +08:00
tools Init Projects 2018-11-23 09:43:17 +08:00
user Add GPIO error code support 2019-01-22 15:33:28 +08:00
.gitignore Add git ingore python temp file 2018-11-26 15:53:56 +08:00
Makefile Init Projects 2018-11-23 09:43:17 +08:00
README.md Init Projects 2018-11-23 09:43:17 +08:00
gen_misc.sh Init Projects 2018-11-23 09:43:17 +08:00

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 。