Skip to content

Commit 30c74fc

Browse files
AZKKXLdpgeorge
authored andcommitted
esp32/boards: Add ESP32_GENERIC_C5 board definition.
Signed-off-by: yuan_mo <[email protected]>
1 parent 713f40d commit 30c74fc

File tree

5 files changed

+43
-0
lines changed

5 files changed

+43
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"deploy": [
3+
"../deploy.md"
4+
],
5+
"deploy_options": {
6+
"flash_offset": "0x2000"
7+
},
8+
"docs": "",
9+
"features": [
10+
"BLE",
11+
"External Flash",
12+
"WiFi"
13+
],
14+
"images": [
15+
"esp32c5_devkitmini.jpg"
16+
],
17+
"mcu": "esp32c5",
18+
"product": "ESP32-C5",
19+
"thumbnail": "",
20+
"url": "https://www.espressif.com/en/products/modules",
21+
"vendor": "Espressif"
22+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
The following files are firmware images that should work on most ESP32-C5-based
2+
boards with at least 4MiB of flash and 40MHz/48MHz crystal frequency.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
set(IDF_TARGET esp32c5)
2+
3+
set(SDKCONFIG_DEFAULTS
4+
boards/sdkconfig.base
5+
boards/sdkconfig.riscv
6+
boards/sdkconfig.ble
7+
boards/sdkconfig.240mhz
8+
boards/sdkconfig.free_ram
9+
boards/ESP32_GENERIC_C5/sdkconfig.board
10+
)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// This configuration is for a generic ESP32C5 board with 4MiB (or more) of flash.
2+
3+
#define MICROPY_HW_BOARD_NAME "ESP32C5 module"
4+
#define MICROPY_HW_MCU_NAME "ESP32C5"
5+
6+
#define MICROPY_PY_MACHINE_I2S (0)
7+
#define MICROPY_HW_ENABLE_UART_REPL (1)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
2+
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y

0 commit comments

Comments
 (0)