esp32/boards: Add ESP32_GENERIC_C5 board definition.

Signed-off-by: yuan_mo <2286087148@qq.com>
This commit is contained in:
yuan_mo
2025-08-14 09:15:59 +08:00
committed by Damien George
parent 713f40d204
commit 30c74fc3b4
5 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
{
"deploy": [
"../deploy.md"
],
"deploy_options": {
"flash_offset": "0x2000"
},
"docs": "",
"features": [
"BLE",
"External Flash",
"WiFi"
],
"images": [
"esp32c5_devkitmini.jpg"
],
"mcu": "esp32c5",
"product": "ESP32-C5",
"thumbnail": "",
"url": "https://www.espressif.com/en/products/modules",
"vendor": "Espressif"
}

View File

@@ -0,0 +1,2 @@
The following files are firmware images that should work on most ESP32-C5-based
boards with at least 4MiB of flash and 40MHz/48MHz crystal frequency.

View File

@@ -0,0 +1,10 @@
set(IDF_TARGET esp32c5)
set(SDKCONFIG_DEFAULTS
boards/sdkconfig.base
boards/sdkconfig.riscv
boards/sdkconfig.ble
boards/sdkconfig.240mhz
boards/sdkconfig.free_ram
boards/ESP32_GENERIC_C5/sdkconfig.board
)

View File

@@ -0,0 +1,7 @@
// This configuration is for a generic ESP32C5 board with 4MiB (or more) of flash.
#define MICROPY_HW_BOARD_NAME "ESP32C5 module"
#define MICROPY_HW_MCU_NAME "ESP32C5"
#define MICROPY_PY_MACHINE_I2S (0)
#define MICROPY_HW_ENABLE_UART_REPL (1)

View File

@@ -0,0 +1,2 @@
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
CONFIG_ESPTOOLPY_FLASHFREQ_80M=y