Warning: Undefined array key 1 in
D:\blog\Blog\www\Blog.php on line
440
Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in
D:\blog\Blog\www\Blog.php on line
440
Warning: Undefined array key 1 in
D:\blog\Blog\www\Blog.php on line
430
Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in
D:\blog\Blog\www\Blog.php on line
430
Warning: Undefined array key 1 in
D:\blog\Blog\www\Blog.php on line
440
Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in
D:\blog\Blog\www\Blog.php on line
440
ESP8266 上电 boot mode
ESP8266 上电时会判断 boot strapping 管脚的状态, 并决定 boot mode.
例如上电打印:
ets Jan 8 2013,rst cause:1, boot mode:(3,2)
1
其中 boot mode 说明如下:
第一个值代表当前 boot 模式
第二个值代表 SDIO/UART 判断
boot mode 由 strapping 管脚的 3 位值 [GPIO15, GPIO0, GPIO2] 共同决定. 如下表所示:
boot mode Strapping 管脚的 3 位值
[GPIO15, GPIO0, GPIO2] SDIO/UART 判断 意义
- 0 [0, 0, 0] / remap boot
- 1 [0, 0, 1] / UART boot
- 2 [0, 1, 0] / jump boot
- 3 [0, 1, 1] / fast flash boot
- 4 [1, 0, 0] 2 SDIO lowspeed V1 UART boot
- 5 [1, 0, 1] 2 SDIO lowspeed v2 uart boot
- 6 [1, 1, 0] 2 SDIO highspeed v1 uart boot
- 7 [1, 1, 1] 2 SDIO highspeed v2 uart boot
- 4-7 [1,0,0], [1,0,1], [1,1,0], [1,1,1] 非 2 SDIO boot
boot mode 4~7 为 SDIO 的不同的协议标准, 包括低速 (lowspeed) 和高速 (highspeed), 版本号(V1, V2)等, 但并非所有 MCU 都会同时支持这些标准。