Skip to content

Commit d72c482

Browse files
committed
feat(repo): add Chinese version README
1 parent 9c06560 commit d72c482

File tree

2 files changed

+147
-31
lines changed

2 files changed

+147
-31
lines changed

README.md

Lines changed: 44 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,23 @@
11
# Arduino-ESP32-SDK
22

3+
* [中文版本](README_CN.md)
4+
35
This repository hosts specially recompiled libraries for the [arduino-esp32](https://github.com/espressif/arduino-esp32) SDK. These libraries are compiled from the [esp-arduino-libs/esp32-arduino-lib-builder](https://github.com/esp-arduino-libs/esp32-arduino-lib-builder).
46

57
## Features
68

79
In comparison to the original arduino-esp32 SDK, this repository makes adjustments to certain sdkconfig configurations before compilation. If you need to change more configurations, you can modify the files in the *configs* folder of [esp-arduino-libs/esp32-arduino-lib-builder](https://github.com/esp-arduino-libs/esp32-arduino-lib-builder) and refer to its README for compilation details.
810

9-
For SDKs marked with `PlatformIO Support`, they can be used directly in PlatformIO. Taking `esp32-3.1.1-h` as an example, you just need to add the following content to the `platformio.ini` file (Replace the download link to use other SDK versions):
10-
11-
```ini
12-
platform_packages =
13-
platformio/framework-arduinoespressif32-libs@https://dl.espressif.com/AE/esp-arduino-libs/esp32-3.1.1-h.zip
14-
```
15-
1611
### For SDKs without suffixes
1712

1813
The SDKs without suffixes are the default SDKs, they don't have any special configuration changes.
1914

20-
* **esp32-3.1.1** (Download Link: [Espressif](https://dl.espressif.com/AE/esp-arduino-libs/esp32-3.1.1.zip)) (PlatformIO Support)
2115
* **esp32-3.0.7** (Download Link: [Espressif](https://dl.espressif.com/AE/esp-arduino-libs/esp32-3.0.7.zip)) (PlatformIO Support)
16+
* **esp32-3.1.1** (Download Link: [Espressif](https://dl.espressif.com/AE/esp-arduino-libs/esp32-3.1.1.zip)) (PlatformIO Support)
2217

2318
### For SDKs suffixed with "-d"
2419

25-
The SDKs in the `debug` folder change the default log level to **DEBUG** by enabling `CONFIG_LOG_DEFAULT_LEVEL_DEBUG=y` and `CONFIG_BOOTLOADER_LOG_LEVEL_INFO=y`. This increases the number of log messages printed to the serial console to aid in debugging applications.
20+
The SDKs suffixed with "-d" change the default log level to **DEBUG** by enabling `CONFIG_LOG_DEFAULT_LEVEL_DEBUG=y` and `CONFIG_BOOTLOADER_LOG_LEVEL_INFO=y`. This increases the number of log messages printed to the serial console to aid in debugging applications.
2621

2722
* **esp32-2.0.13-d** (Download Link: [Github](https://github.com/esp-arduino-libs/arduino-esp32-sdk/raw/master/debug/esp32-2.0.13-d.tar.xz?download=) / [Espressif](https://dl.espressif.com/AE/esp-dev-kits/esp32-2.0.13-d.tar.xz))
2823
* **esp32-3.0.0-alpha3-d** (Download Link: [Github](https://github.com/esp-arduino-libs/arduino-esp32-sdk/raw/master/debug/esp32-3.0.0-alpha3-d.tar.xz?download=) / [Espressif](https://dl.espressif.com/AE/esp-dev-kits/esp32-3.0.0-alpha3-d.tar.xz))
@@ -33,24 +28,24 @@ The SDKs in the `debug` folder change the default log level to **DEBUG** by enab
3328
* **esp32-3.1.1-d** (Download Link: [Espressif](https://dl.espressif.com/AE/esp-arduino-libs/esp32-3.1.1-d.zip)) (PlatformIO Support)
3429

3530
> [!WARNING]
36-
> The SDKs with the "-d" suffix are only for debugging. For production purposes, please use the [official releases](https://github.com/espressif/arduino-esp32/releases) of arduino-esp32.
31+
> The SDKs with the "-d" suffix are only for debugging. For production purposes, please use the [SDK without suffixes](#for-sdks-without-suffixes) or [Official Releases](https://github.com/espressif/arduino-esp32/releases) of arduino-esp32.
3732
3833
### For SDKs suffixed with "-h"
3934

40-
The SDKs in the `high_perf` folder change some configurations and can achieve higher performance in some cases, especially for avoiding [screen drifting](https://docs.espressif.com/projects/esp-faq/en/latest/software-framework/peripherals/lcd.html#why-do-i-get-drift-overall-drift-of-the-display-when-esp32-s3-is-driving-an-rgb-lcd-screen) when using RGB LCDs.
35+
The SDKs suffixed with "-h" change some configurations and can achieve higher performance in some cases, especially for avoiding [screen drifting](https://docs.espressif.com/projects/esp-faq/en/latest/software-framework/peripherals/lcd.html#why-do-i-get-drift-overall-drift-of-the-display-when-esp32-s3-is-driving-an-rgb-lcd-screen) when using RGB LCDs.
4136

42-
* For ESP32-S3 SoCs:
43-
* All:
44-
* It changes the optimization level from `-Os` to `-O2` by enabling `CONFIG_COMPILER_OPTIMIZATION_PERF=y`.
45-
* It increases the size of the data cache line width from `32` to `64` by enabling `CONFIG_ESP32S3_DATA_CACHE_LINE_64B=y`.
46-
* For ESP32-S3R8 (Octal PSRAM):
47-
* It enables the function **XIP on PSRAM** by enabling `CONFIG_SPIRAM_FETCH_INSTRUCTIONS=y` and `CONFIG_SPIRAM_RODATA=y` (< v3.1.1).
48-
* It enables the function **XIP on PSRAM** by enabling `CONFIG_SPIRAM_XIP_FROM_PSRAM=y` (>= v3.1.1).
37+
* For ESP32-S3 SoCs:
38+
* All:
39+
* It changes the optimization level from `-Os` to `-O2` by enabling `CONFIG_COMPILER_OPTIMIZATION_PERF=y`.
40+
* It increases the size of the data cache line width from `32` to `64` by enabling `CONFIG_ESP32S3_DATA_CACHE_LINE_64B=y`.
41+
* For ESP32-S3R8 (Octal PSRAM):
42+
* It enables the function **XIP on PSRAM** by enabling `CONFIG_SPIRAM_FETCH_INSTRUCTIONS=y` and `CONFIG_SPIRAM_RODATA=y` (< v3.1.1).
43+
* It enables the function **XIP on PSRAM** by enabling `CONFIG_SPIRAM_XIP_FROM_PSRAM=y` (>= v3.1.1).
4944

50-
* For ESP32-P4 SoCs:
51-
* All:
52-
* It increases the size of the L2 cache line width from `64` to `128` by enabling `CONFIG_CACHE_L2_CACHE_LINE_128B=y`.
53-
* It increases the size of the L2 cache line size from `128KB` to `256KB` by enabling `CONFIG_CACHE_L2_CACHE_256KB=y`.
45+
* For ESP32-P4 SoCs:
46+
* All:
47+
* It increases the size of the L2 cache line width from `64` to `128` by enabling `CONFIG_CACHE_L2_CACHE_LINE_128B=y`.
48+
* It increases the size of the L2 cache line size from `128KB` to `256KB` by enabling `CONFIG_CACHE_L2_CACHE_256KB=y`.
5449

5550
* **esp32-3.0.0-alpha3-h** (Download Link: [Github](https://github.com/esp-arduino-libs/arduino-esp32-sdk/raw/master/high_perf/esp32-3.0.0-alpha3-h.tar.xz?download=) / [Espressif](https://dl.espressif.com/AE/esp-dev-kits/esp32-3.0.0-alpha3-h.tar.xz))
5651
* **esp32-3.0.0-h** (Download Link: [Github](https://github.com/esp-arduino-libs/arduino-esp32-sdk/raw/master/high_perf/esp32-3.0.0-h.tar.xz?download=) / [Espressif](https://dl.espressif.com/AE/esp-dev-kits/esp32-3.0.0-h.tar.xz))
@@ -64,19 +59,27 @@ The SDKs in the `high_perf` folder change some configurations and can achieve hi
6459
6560
## How to Use
6661

62+
### Arduino IDE
63+
6764
To use the SDKs from this repository in the Arduino IDE, follow these steps:
6865

6966
1. Check the version of the arduino-esp32 in use. It can be found in the Arduino IDE under `Tools > Board > Boards Manager > esp32`.
7067
2. Ensure that the version of arduino-esp32 matches the version of the released SDKs in this repository.
7168
3. If yes, download the released SDKs from this repository and replace the corresponding libraries in the arduino-esp32 SDK:
72-
* Step 1: Find the default root path of the arduino-esp32 SDK. It should be different for different operating systems:
73-
* For **Windows**, the default path is `C:\Users\<user name>\AppData\Local\Arduino15\packages\esp32`.
74-
* For **Linux**, the default path is `~/.arduino15/packages/esp32`.
75-
* For **MacOS**, the default path is `~/Library/Arduino15/packages/esp32`.
76-
* Step 2: Find the default path of the SDK libraries. It should be different for different versions of arduino-esp32:
77-
* For arduino-esp32 `v2.x.x`, the default path is `hardware > esp32 > 2.x.x > tools > sdk`.
78-
* For arduino-esp32 `v3.x.x`, the default path is `tools > esp32-arduino-libs > idf-release_x`.
79-
* Step 3: The structure of the SDK libraries should be as follows, replace them with the libraries extracted from the downloaded SDK:
69+
70+
* **Step 1**: Find the default root path of the arduino-esp32 SDK. It should be different for different operating systems:
71+
72+
* For **Windows**, the default path is `C:\Users\<user name>\AppData\Local\Arduino15\packages\esp32`.
73+
* For **Linux**, the default path is `~/.arduino15/packages/esp32`.
74+
* For **MacOS**, the default path is `~/Library/Arduino15/packages/esp32`.
75+
76+
* **Step 2**: Find the default path of the SDK libraries. It should be different for different versions of arduino-esp32:
77+
78+
* For arduino-esp32 `v2.x.x`, the default path is `hardware > esp32 > 2.x.x > tools > sdk`.
79+
* For arduino-esp32 `v3.x.x`, the default path is `tools > esp32-arduino-libs > idf-release_x`.
80+
81+
* **Step 3**: The structure of the SDK libraries should be as follows, replace them with the libraries extracted from the downloaded SDK:
82+
8083
```
8184
idf-release_x
8285
├── esp32
@@ -87,4 +90,14 @@ To use the SDKs from this repository in the Arduino IDE, follow these steps:
8790
├── tools.json
8891
├── versions.txt
8992
```
90-
4. If not, open an issue in this repository to request a new release or refer to the [documentation](https://docs.espressif.com/projects/arduino-esp32/en/latest/lib_builder.html) for compilation instructions.
93+
94+
4. If not, open an issue in this repository to request a new release or refer to the [documentation](https://docs.espressif.com/projects/arduino-esp32/en/latest/lib_builder.html) for compilation instructions.
95+
96+
### PlatformIO
97+
98+
For SDKs marked with `PlatformIO Support`, they can be used directly in PlatformIO. Taking `esp32-3.1.1-h` as an example, you just need to add the following content to the `platformio.ini` file (Replace the download link to use other SDK versions):
99+
100+
```ini
101+
platform_packages =
102+
platformio/framework-arduinoespressif32-libs@https://dl.espressif.com/AE/esp-arduino-libs/esp32-3.1.1-h.zip
103+
```

README_CN.md

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
# Arduino-ESP32-SDK
2+
3+
* [English Version](README.md)
4+
5+
这个仓库存放了专门为 [arduino-esp32](https://github.com/espressif/arduino-esp32) SDK 重新编译的库文件。这些库文件是从 [esp-arduino-libs/esp32-arduino-lib-builder](https://github.com/esp-arduino-libs/esp32-arduino-lib-builder) 编译而来的。
6+
7+
## 特点
8+
9+
与原始的 arduino-esp32 SDK 相比,本仓库在编译前对某些 sdkconfig 配置进行了调整。如果您需要更改更多配置,可以修改 [esp-arduino-libs/esp32-arduino-lib-builder](https://github.com/esp-arduino-libs/esp32-arduino-lib-builder)*configs* 文件夹内的文件,并参考其 README 进行编译。
10+
11+
### 无后缀的 SDK
12+
13+
无后缀的 SDK 是默认的 SDK,它们没有任何特殊的配置更改。
14+
15+
* **esp32-3.1.1**(下载链接:[Espressif](https://dl.espressif.com/AE/esp-arduino-libs/esp32-3.1.1.zip))(支持 PlatformIO)
16+
* **esp32-3.0.7**(下载链接:[Espressif](https://dl.espressif.com/AE/esp-arduino-libs/esp32-3.0.7.zip))(支持 PlatformIO)
17+
18+
### 带 "-d" 后缀的 SDK
19+
20+
带 "-d" 后缀的 SDK 通过启用 `CONFIG_LOG_DEFAULT_LEVEL_DEBUG=y``CONFIG_BOOTLOADER_LOG_LEVEL_INFO=y` 将默认日志级别更改为 **DEBUG**。这增加了输出到串口控制台的日志消息数量,以帮助调试应用程序。
21+
22+
* **esp32-2.0.13-d**(下载链接:[Github](https://github.com/esp-arduino-libs/arduino-esp32-sdk/raw/master/debug/esp32-2.0.13-d.tar.xz?download=) / [Espressif](https://dl.espressif.com/AE/esp-dev-kits/esp32-2.0.13-d.tar.xz)
23+
* **esp32-3.0.0-alpha3-d**(下载链接:[Github](https://github.com/esp-arduino-libs/arduino-esp32-sdk/raw/master/debug/esp32-3.0.0-alpha3-d.tar.xz?download=) / [Espressif](https://dl.espressif.com/AE/esp-dev-kits/esp32-3.0.0-alpha3-d.tar.xz)
24+
* **esp32-3.0.0-d**(下载链接:[Github](https://github.com/esp-arduino-libs/arduino-esp32-sdk/raw/master/debug/esp32-3.0.0-d.tar.xz?download=) / [Espressif](https://dl.espressif.com/AE/esp-dev-kits/esp32-3.0.0-d.tar.xz)
25+
* **esp32-3.0.2-d**(下载链接:[Github](https://github.com/esp-arduino-libs/arduino-esp32-sdk/raw/master/debug/esp32-3.0.2-d.tar.xz?download=) / [Espressif](https://dl.espressif.com/AE/esp-dev-kits/esp32-3.0.2-d.tar.xz)
26+
* **esp32-3.0.3-d**(下载链接:[Github](https://github.com/esp-arduino-libs/arduino-esp32-sdk/raw/master/debug/esp32-3.0.3-d.tar.xz?download=) / [Espressif](https://dl.espressif.com/AE/esp-dev-kits/esp32-3.0.3-d.tar.xz)
27+
* **esp32-3.0.7-d**(下载链接:[Espressif](https://dl.espressif.com/AE/esp-arduino-libs/esp32-3.0.7-d.zip))(支持 PlatformIO)
28+
* **esp32-3.1.1-d**(下载链接:[Espressif](https://dl.espressif.com/AE/esp-arduino-libs/esp32-3.1.1-d.zip))(支持 PlatformIO)
29+
30+
> [!WARNING]
31+
> 带 "-d" 后缀的 SDK 仅用于调试。对于生产用途,请使用 [无后缀的 SDK](#无后缀的-sdk)
32+
33+
### 带 "-h" 后缀的 SDK
34+
35+
带 "-h" 后缀的 SDK 改变了一些配置,在某些情况下可以获得更高的性能,特别是在使用 RGB LCD 时可以避免[屏幕漂移](https://docs.espressif.com/projects/esp-faq/en/latest/software-framework/peripherals/lcd.html#why-do-i-get-drift-overall-drift-of-the-display-when-esp32-s3-is-driving-an-rgb-lcd-screen)
36+
37+
* 对于 ESP32-S3 芯片:
38+
* 全部:
39+
* 通过启用 `CONFIG_COMPILER_OPTIMIZATION_PERF=y` 将优化级别从 `-Os` 更改为 `-O2`
40+
* 通过启用 `CONFIG_ESP32S3_DATA_CACHE_LINE_64B=y` 将数据缓存线宽从 `32` 增加到 `64`
41+
* 对于 ESP32-S3R8(八线 PSRAM):
42+
* 通过启用 `CONFIG_SPIRAM_FETCH_INSTRUCTIONS=y``CONFIG_SPIRAM_RODATA=y` 启用 **XIP on PSRAM** 功能(< v3.1.1)。
43+
* 通过启用 `CONFIG_SPIRAM_XIP_FROM_PSRAM=y` 启用 **XIP on PSRAM** 功能(>= v3.1.1)。
44+
45+
* 对于 ESP32-P4 芯片:
46+
* 全部:
47+
* 通过启用 `CONFIG_CACHE_L2_CACHE_LINE_128B=y` 将 L2 缓存线宽从 `64` 增加到 `128`
48+
* 通过启用 `CONFIG_CACHE_L2_CACHE_256KB=y` 将 L2 缓存大小从 `128KB` 增加到 `256KB`
49+
50+
* **esp32-3.0.0-alpha3-h**(下载链接:[Github](https://github.com/esp-arduino-libs/arduino-esp32-sdk/raw/master/high_perf/esp32-3.0.0-alpha3-h.tar.xz?download=) / [Espressif](https://dl.espressif.com/AE/esp-dev-kits/esp32-3.0.0-alpha3-h.tar.xz)
51+
* **esp32-3.0.0-h**(下载链接:[Github](https://github.com/esp-arduino-libs/arduino-esp32-sdk/raw/master/high_perf/esp32-3.0.0-h.tar.xz?download=) / [Espressif](https://dl.espressif.com/AE/esp-dev-kits/esp32-3.0.0-h.tar.xz)
52+
* **esp32-3.0.2-h**(下载链接:[Github](https://github.com/esp-arduino-libs/arduino-esp32-sdk/raw/master/high_perf/esp32-3.0.2-h.tar.xz?download=) / [Espressif](https://dl.espressif.com/AE/esp-dev-kits/esp32-3.0.2-h.tar.xz)
53+
* **esp32-3.0.3-h**(下载链接:[Github](https://github.com/esp-arduino-libs/arduino-esp32-sdk/raw/master/high_perf/esp32-3.0.3-h.tar.xz?download=) / [Espressif](https://dl.espressif.com/AE/esp-dev-kits/esp32-3.0.3-h.tar.xz)
54+
* **esp32-3.0.7-h**(下载链接:[Espressif](https://dl.espressif.com/AE/esp-arduino-libs/esp32-3.0.7-h.zip))(支持 PlatformIO)
55+
* **esp32-3.1.1-h**(下载链接:[Github](https://github.com/esp-arduino-libs/arduino-esp32-sdk/raw/master/high_perf/esp32-3.1.1-h.zip?download=) / [Espressif](https://dl.espressif.com/AE/esp-arduino-libs/esp32-3.1.1-h.zip))(支持 PlatformIO)
56+
57+
> [!WARNING]
58+
> 对于 v3.1.1 版本的 ESP32-P4,启用 `CONFIG_COMPILER_OPTIMIZATION_PERF=y``CONFIG_SPIRAM_XIP_FROM_PSRAM=y` 会导致芯片无法正常启动。
59+
60+
## 如何使用
61+
62+
### Arduino IDE
63+
64+
要在 Arduino IDE 中使用本仓库的 SDK,请按照以下步骤操作:
65+
66+
1. 检查正在使用的 arduino-esp32 的版本。可以在 Arduino IDE 的 `工具 > 开发板 > 开发板管理器 > esp32` 中找到。
67+
2. 确保 arduino-esp32 的版本与本仓库中发布的 SDK 版本匹配。
68+
3. 如果匹配,从本仓库下载发布的 SDK 并替换 arduino-esp32 SDK 中对应的库:
69+
70+
* **步骤 1**:找到 arduino-esp32 SDK 的默认根路径。不同操作系统的路径不同:
71+
72+
* 对于 **Windows**,默认路径是 `C:\Users\<用户名>\AppData\Local\Arduino15\packages\esp32`
73+
* 对于 **Linux**,默认路径是 `~/.arduino15/packages/esp32`
74+
* 对于 **MacOS**,默认路径是 `~/Library/Arduino15/packages/esp32`
75+
76+
* **步骤 2**:找到 SDK 库文件的默认路径。不同版本的 arduino-esp32 路径不同:
77+
78+
* 对于 arduino-esp32 `v2.x.x`,默认路径是 `hardware > esp32 > 2.x.x > tools > sdk`
79+
* 对于 arduino-esp32 `v3.x.x`,默认路径是 `tools > esp32-arduino-libs > idf-release_x`
80+
81+
* **步骤 3**:SDK 库文件的结构应如下所示,用下载的 SDK 中提取的库文件替换它们:
82+
83+
```
84+
idf-release_x
85+
├── esp32
86+
├── esp32c3
87+
├── esp32c6
88+
├── ...
89+
├── packages.json
90+
├── tools.json
91+
├── versions.txt
92+
```
93+
94+
4. 如果不匹配,在本仓库中提出 Issue 请求新版本发布,或参考[文档](https://docs.espressif.com/projects/arduino-esp32/en/latest/lib_builder.html)进行编译。
95+
96+
### PlatformIO
97+
98+
对于标记为 `PlatformIO Support` 的 SDK,可以直接在 PlatformIO 中使用。以 `esp32-3.1.1-h` 为例,您只需要在 `platformio.ini` 文件中添加以下内容(替换下载链接以使用其他 SDK 版本):
99+
100+
```ini
101+
platform_packages =
102+
platformio/framework-arduinoespressif32-libs@https://dl.espressif.com/AE/esp-arduino-libs/esp32-3.1.1-h.zip
103+
```

0 commit comments

Comments
 (0)