Skip to content

Commit 649ad51

Browse files
committed
Add ESP32-S31-KORVO-1 target
1 parent 85857f3 commit 649ad51

6 files changed

Lines changed: 30 additions & 5 deletions

File tree

Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,20 @@ SHELL := /usr/bin/env bash
3333

3434
ifeq ($(DEVICE), tanmatsu)
3535
IDF_TARGET ?= esp32p4
36+
else ifeq ($(DEVICE), kami)
37+
IDF_TARGET ?= esp32
3638
else ifeq ($(DEVICE), esp32-p4-function-ev-board)
3739
IDF_TARGET ?= esp32p4
40+
else ifeq ($(DEVICE), esp32-s31-korvo-1)
41+
IDF_TARGET ?= esp32s31
3842
else ifeq ($(DEVICE), mch2022)
3943
IDF_TARGET ?= esp32
40-
else ifeq ($(DEVICE), kami)
41-
IDF_TARGET ?= esp32
4244
else ifeq ($(DEVICE), hackaday2025)
4345
IDF_TARGET ?= esp32s3
4446
else ifeq ($(DEVICE), linux)
4547
IDF_TARGET ?= linux
4648
else
47-
$(warning "Unknown device, defaulting to ESP32")
49+
$(error "Unknown device")
4850
IDF_TARGET ?= esp32
4951
endif
5052

main/main.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,11 @@ void app_main(void) {
661661
startup_dialog("Detecting Add-On boards...");
662662
addon_initialize();
663663

664+
if (!display_available) {
665+
ESP_LOGE(TAG, "Started without display");
666+
return;
667+
}
668+
664669
// Check patch level and apply patches if needed
665670
// Note: this explicitly checks the patch level once
666671
// if the patch fails we can at least try to show the menu,

main/menu/firmware_update.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@
1616

1717
#if defined(CONFIG_BSP_TARGET_TANMATSU)
1818
#define OTA_BASE_URL "https://selfsigned.ota.tanmatsu.cloud/tanmatsu-"
19+
#elif defined(CONFIG_BSP_TARGET_KAMI)
20+
#define OTA_BASE_URL "https://selfsigned.ota.tanmatsu.cloud/kami-"
1921
#elif defined(CONFIG_BSP_TARGET_ESP32_P4_FUNCTION_EV_BOARD)
2022
#define OTA_BASE_URL "https://selfsigned.ota.tanmatsu.cloud/p4-function-ev-board-"
23+
#elif defined(CONFIG_BSP_TARGET_ESP32_S31_KORVO_1)
24+
#define OTA_BASE_URL "https://selfsigned.ota.tanmatsu.cloud/esp32-s31-korvo-1-"
2125
#elif defined(CONFIG_BSP_TARGET_MCH2022)
2226
#define OTA_BASE_URL "https://selfsigned.ota.tanmatsu.cloud/mch2022-"
23-
#elif defined(CONFIG_BSP_TARGET_KAMI)
24-
#define OTA_BASE_URL "https://selfsigned.ota.tanmatsu.cloud/kami-"
2527
#elif defined(CONFIG_BSP_TARGET_HACKADAY2025)
2628
#define OTA_BASE_URL "https://selfsigned.ota.tanmatsu.cloud/hackaday2025-"
2729
#else

partition_tables/esp32s31-16mb.csv

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# ESP-IDF Partition Table
2+
# Name, Type, SubType, Offset, Size, Flags
3+
coredump, data, coredump, 0x9000, 64K,
4+
nvs, data, nvs, 0x19000, 16K,
5+
otadata, data, ota, 0x1D000, 8K,
6+
phy_init, data, phy, 0x1F000, 4K,
7+
ota_0, 0, ota_0, 0x20000, 2048K,
8+
ota_1, 0, ota_1, 0x220000, 2048K,
9+
appfs, 0x43, 3, 0x420000, 8192K,
10+
locfd, data, fat, 0xC20000, 3968K,

partition_tables/esp32s31-16mb.ods

33.1 KB
Binary file not shown.

sdkconfigs/esp32-s31-korvo-1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
CONFIG_IDF_TARGET="esp32s31"
2+
CONFIG_BSP_TARGET_ESP32_S31_KORVO_1=y
3+
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partition_tables/esp32s31-16mb.csv"
4+
CONFIG_ESP_CONSOLE_UART_DEFAULT=y
5+
CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y
6+
CONFIG_ESPTOOLPY_FLASHSIZE="16MB"

0 commit comments

Comments
 (0)