feat: support esp32s31 dfu feature

This commit is contained in:
JiangGuangMing
2026-06-05 15:59:04 +08:00
parent 9adc0ecf8e
commit a37b9efc90
4 changed files with 9 additions and 2 deletions

View File

@@ -107,6 +107,10 @@ config SOC_USB_OTG_SUPPORTED
bool
default y
config SOC_USB_DFU_SUPPORTED
bool
default y
config SOC_TEMP_SENSOR_SUPPORTED
bool
default y

View File

@@ -49,6 +49,7 @@
#define SOC_PARLIO_LCD_SUPPORTED 1
#define SOC_ASYNC_MEMCPY_SUPPORTED 1
#define SOC_USB_OTG_SUPPORTED 1
#define SOC_USB_DFU_SUPPORTED 1
#define SOC_TEMP_SENSOR_SUPPORTED 1
#define SOC_USB_SERIAL_JTAG_SUPPORTED 1
// #define SOC_SUPPORTS_SECURE_DL_MODE 1 // TODO: [ESP32S31] IDF-14629

View File

@@ -25,10 +25,10 @@ function(__add_dfu_targets)
return()
elseif("${target}" STREQUAL "esp32h4")
return()
elseif("${target}" STREQUAL "esp32s31")
return()
elseif("${target}" STREQUAL "esp32p4")
set(dfu_pid "12")
elseif("${target}" STREQUAL "esp32s31")
set(dfu_pid "20")
elseif("${target}" STREQUAL "linux")
return()
else()

View File

@@ -65,6 +65,8 @@ function(idf_create_dfu binary)
set(dfu_pid "9")
elseif("${target}" STREQUAL "esp32p4")
set(dfu_pid "12")
elseif("${target}" STREQUAL "esp32s31")
set(dfu_pid "20")
else()
# DFU not supported on this target
idf_msg("DFU not supported on ${target}, skipping DFU target creation")