esp8266-std/README.md

47 lines
2.0 KiB
Markdown
Raw Normal View History

2018-11-23 01:43:17 +00:00
## 目录结构:
```
── 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 。