diff options
| author | yuan_mo <2286087148@qq.com> | 2025-08-14 09:15:59 +0800 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-11-17 13:57:38 +1100 |
| commit | 30c74fc3b49a6a77c9fa8634c3902a895bfefea2 (patch) | |
| tree | 6564d0657e335da215bcfa904b8e1a234faad28f | |
| parent | 713f40d20446240fcc340ffc5180802b0a22452a (diff) | |
esp32/boards: Add ESP32_GENERIC_C5 board definition.
Signed-off-by: yuan_mo <2286087148@qq.com>
5 files changed, 43 insertions, 0 deletions
diff --git a/ports/esp32/boards/ESP32_GENERIC_C5/board.json b/ports/esp32/boards/ESP32_GENERIC_C5/board.json new file mode 100644 index 000000000..371da3929 --- /dev/null +++ b/ports/esp32/boards/ESP32_GENERIC_C5/board.json @@ -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" +} diff --git a/ports/esp32/boards/ESP32_GENERIC_C5/board.md b/ports/esp32/boards/ESP32_GENERIC_C5/board.md new file mode 100644 index 000000000..82bac44b9 --- /dev/null +++ b/ports/esp32/boards/ESP32_GENERIC_C5/board.md @@ -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. diff --git a/ports/esp32/boards/ESP32_GENERIC_C5/mpconfigboard.cmake b/ports/esp32/boards/ESP32_GENERIC_C5/mpconfigboard.cmake new file mode 100644 index 000000000..79aba7d47 --- /dev/null +++ b/ports/esp32/boards/ESP32_GENERIC_C5/mpconfigboard.cmake @@ -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 +) diff --git a/ports/esp32/boards/ESP32_GENERIC_C5/mpconfigboard.h b/ports/esp32/boards/ESP32_GENERIC_C5/mpconfigboard.h new file mode 100644 index 000000000..552468497 --- /dev/null +++ b/ports/esp32/boards/ESP32_GENERIC_C5/mpconfigboard.h @@ -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) diff --git a/ports/esp32/boards/ESP32_GENERIC_C5/sdkconfig.board b/ports/esp32/boards/ESP32_GENERIC_C5/sdkconfig.board new file mode 100644 index 000000000..369330682 --- /dev/null +++ b/ports/esp32/boards/ESP32_GENERIC_C5/sdkconfig.board @@ -0,0 +1,2 @@ +CONFIG_ESPTOOLPY_FLASHMODE_QIO=y +CONFIG_ESPTOOLPY_FLASHFREQ_80M=y |
