Skip to content

Commit cf7e1c8

Browse files
committed
chores 修复一点问题与错误
1 parent 257f3cf commit cf7e1c8

File tree

2 files changed

+30
-18
lines changed

2 files changed

+30
-18
lines changed
Lines changed: 29 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,62 @@
1-
# esp32固件编译
1+
---
2+
title: esp32固件编译
3+
---
24

3-
## 第1步 准备好ota地址
45

6+
## 1. 准备好OTA址
7+
8+
```PlainText
59
https://xrobo.qiniuapi.com/v1/ota/
10+
```
11+
12+
## 2. 配置环境
613

7-
## 第2步 配置环境
814
### Windows
915

10-
先按照这个教程配置项目环境[《Windows搭建 ESP IDF 5.3.2开发环境以及编译小智》](https://icnynnzcwou8.feishu.cn/wiki/JEYDwTTALi5s2zkGlFGcDiRknXf)
16+
参考教程 [《Windows搭建 ESP IDF 5.3.2开发环境以及编译小智》](https://icnynnzcwou8.feishu.cn/wiki/JEYDwTTALi5s2zkGlFGcDiRknXf)
1117

1218
### Mac / Linux
1319

14-
参考该教程进行配置:https://docs.espressif.com/projects/esp-idf/zh_CN/v5.5/esp32s3/get-started/linux-macos-setup.html
20+
参考教程 <https://docs.espressif.com/projects/esp-idf/zh_CN/v5.5/esp32s3/get-started/linux-macos-setup.html>
21+
22+
## 3. 打开配置文件
1523

16-
## 第3步 打开配置文件
1724
配置好编译环境后,下载虾哥iaozhi-esp32项目源码,
1825

1926
从这里下载虾哥[xiaozhi-esp32项目源码](https://github.com/78/xiaozhi-esp32)
2027

2128
下载后,打开`xiaozhi-esp32/main/Kconfig.projbuild`文件。
2229

23-
## 第4步 修改OTA地址
30+
## 4. 修改OTA地址
2431

2532
找到`OTA_URL``default`的内容,把`https://api.tenclass.net/xiaozhi/ota/`
2633
改成·`https://xrobo.qiniuapi.com/v1/ota/`,就把内容改成这个。
2734

2835
修改前:
29-
```
36+
37+
```PlainText
3038
config OTA_URL
3139
string "Default OTA URL"
3240
default "https://api.tenclass.net/xiaozhi/ota/"
3341
help
3442
The application will access this URL to check for new firmwares and server address.
3543
```
44+
3645
修改后:
37-
```
46+
47+
```PlainText
3848
config OTA_URL
3949
string "Default OTA URL"
4050
default "https://xrobo.qiniuapi.com/v1/ota/"
4151
help
4252
The application will access this URL to check for new firmwares and server address.
4353
```
4454

45-
## 第4步 设置编译参数
55+
## 5. 设置编译参数
4656

4757
设置编译参数
4858

49-
```
59+
```cmd
5060
# 终端命令行进入xiaozhi-esp32的根目录
5161
cd xiaozhi-esp32
5262
# 例如我使用的板子是esp32s3,所以设置编译目标为esp32s3,如果你的板子是其他型号,请替换成对应的型号
@@ -58,21 +68,23 @@ idf.py menuconfig
5868
进入菜单配置后,再进入`Xiaozhi Assistant`,将`BOARD_TYPE`设置你板子的具体型号
5969
保存退出,回到终端命令行。
6070

61-
## 第5步 编译固件
71+
## 6. 编译固件
6272

63-
```
73+
```cmd
6474
idf.py build
6575
```
6676

67-
## 第6步 打包bin固件
77+
## 7. 打包bin固件
6878

69-
```
79+
```cmd
7080
cd scripts
7181
python release.py
7282
```
7383

7484
上面的打包命令执行完成后,会在项目根目录下的`build`目录下生成固件文件`merged-binary.bin`
7585
这个`merged-binary.bin`就是要烧录到硬件上的固件文件。
7686

77-
注意:如果执行到第二命令后,报了“zip”相关的错误,请忽略这个错误,只要`build`目录下生成固件文件`merged-binary.bin`
78-
,对你没有太大影响,请继续。
87+
> [!NOTE]
88+
>
89+
> 如果执行到第二命令后,报了“zip”相关的错误,请忽略这个错误,只要`build`目录下生成固件文件`merged-binary.bin`
90+
> ,对你没有太大影响,请继续。

docs/xrobot/guide/xiaozhi-firmware/mp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: 通过微信小程序
55
<script setup>
66
import { Chapters, ChapterItems } from "../../../.vitepress/theme/constrants/route";
77

8-
const chapter_root = Chapters.xrobot_platform_others_mp;
8+
const chapter_root = Chapters.xrobot_guide_xiaozhi_hardware;
99
const mp_net_config_link = ChapterItems[chapter_root].filter(item => item.link === chapter_root)[0].items.filter(item => item.link.endsWith("net-config"))[0].link;
1010
</script>
1111

0 commit comments

Comments
 (0)