Go to file
HuangXin ff28cf1669 Support MCU Get WIFI Module ChipId Protocol 2018-12-07 10:40:37 +08:00
ESP8266_RTOS_SDK Init Projects 2018-11-23 09:43:17 +08:00
bin Configure tools support AES crypto 2018-11-28 14:00:34 +08:00
config_tools Configure tools support AES crypto 2018-11-28 14:00:34 +08:00
configure Configure tools support AES crypto 2018-11-28 14:00:34 +08:00
driver Support MCU Get WIFI Module ChipId Protocol 2018-12-07 10:40:37 +08:00
fota Init Projects 2018-11-23 09:43:17 +08:00
include Support MCU Get WIFI Module ChipId Protocol 2018-12-07 10:40:37 +08:00
jsprase Configure tools support AES crypto 2018-11-28 14:00:34 +08:00
mqtt Fix megre code some error 2018-11-26 16:44:34 +08:00
netease Init Projects 2018-11-23 09:43:17 +08:00
protocol Init Projects 2018-11-23 09:43:17 +08:00
soft_ap Init Projects 2018-11-23 09:43:17 +08:00
tools Init Projects 2018-11-23 09:43:17 +08:00
user Support MCU Get WIFI Module ChipId Protocol 2018-12-07 10:40:37 +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 。