-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ESP32: Add ESP32H2 target for lighting app (#16599)
* platform and CHIPCryptoPALmbedTLS changes for idf v5.0-dev(10f3aba770) * Add esp32h2 target for lighting-app * Restyled by prettier-markdown Co-authored-by: Restyled.io <commits@restyled.io>
- Loading branch information
Showing
18 changed files
with
364 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Name, Type, SubType, Offset, Size, Flags | ||
# Note: if you have increased the bootloader size, make sure to update the offsets to avoid overlap | ||
nvs, data, nvs, , 0x6000, | ||
otadata, data, ota, , 0x2000, | ||
phy_init, data, phy, , 0x1000, | ||
ota_0, app, ota_0, , 1500K, | ||
ota_1, app, ota_1, , 1500K, | ||
fctry, data, nvs, , 0x6000, | ||
ot_storage,data, fat, , 0x6000, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
CONFIG_IDF_TARGET="esp32h2" | ||
|
||
# Default to 921600 baud when flashing and monitoring device | ||
CONFIG_ESPTOOLPY_BAUD_921600B=y | ||
CONFIG_ESPTOOLPY_BAUD=921600 | ||
CONFIG_ESPTOOLPY_COMPRESSED=y | ||
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y | ||
CONFIG_ESPTOOLPY_FLASHFREQ_40M=y | ||
CONFIG_ESPTOOLPY_FLASHFREQ="40m" | ||
CONFIG_ESPTOOLPY_MONITOR_BAUD_115200B=y | ||
CONFIG_ESPTOOLPY_MONITOR_BAUD=115200 | ||
|
||
# libsodium | ||
CONFIG_LIBSODIUM_USE_MBEDTLS_SHA=y | ||
|
||
|
||
# NIMBLE | ||
CONFIG_BT_ENABLED=y | ||
CONFIG_BT_BLUEDROID_ENABLED=n | ||
CONFIG_BT_NIMBLE_ENABLED=y | ||
CONFIG_BT_NIMBLE_50_FEATURE_SUPPORT=y | ||
CONFIG_BT_NIMBLE_EXT_ADV=n | ||
CONFIG_BT_NIMBLE_USE_ESP_TIMER=n | ||
CONFIG_BTDM_CTRL_MODE_BLE_ONLY=y | ||
CONFIG_BTDM_CTRL_MODE_BR_EDR_ONLY=n | ||
CONFIG_BTDM_CTRL_MODE_BTDM=n | ||
CONFIG_DEINIT_BLE_ON_COMMISSIONING_COMPLETE=n | ||
|
||
# Enable OpenThread | ||
CONFIG_OPENTHREAD_ENABLED=y | ||
CONFIG_OPENTHREAD_SRP_CLIENT=y | ||
|
||
# Disable lwip ipv6 autoconfig | ||
CONFIG_LWIP_IPV6_AUTOCONFIG=n | ||
|
||
# Use a custom partition table | ||
CONFIG_PARTITION_TABLE_CUSTOM=y | ||
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions_h2.csv" | ||
|
||
# LwIP config for OpenThread | ||
CONFIG_LWIP_IPV6_NUM_ADDRESSES=8 | ||
CONFIG_LWIP_MULTICAST_PING=y | ||
|
||
# mbedTLS | ||
CONFIG_MBEDTLS_HARDWARE_AES=n | ||
CONFIG_MBEDTLS_HARDWARE_MPI=n | ||
CONFIG_MBEDTLS_HARDWARE_SHA=n | ||
CONFIG_MBEDTLS_ATCA_HW_ECDSA_SIGN=n | ||
CONFIG_MBEDTLS_ATCA_HW_ECDSA_VERIFY=n | ||
CONFIG_MBEDTLS_CMAC_C=y | ||
CONFIG_MBEDTLS_SSL_PROTO_DTLS=y | ||
CONFIG_MBEDTLS_KEY_EXCHANGE_ECJPAKE=y | ||
|
||
# MDNS platform | ||
CONFIG_USE_MINIMAL_MDNS=n | ||
|
||
# Increase stacks size | ||
CONFIG_NIMBLE_CONTROLLER_TASK_STACK_SIZE=5120 | ||
CONFIG_NIMBLE_HOST_TASK_STACK_SIZE=5120 | ||
|
||
# ESP32H2 BLE using a ext 32k crystal | ||
CONFIG_ESP32H2_RTC_CLK_SRC_EXT_CRYS=y | ||
CONFIG_ESP32H2_RTC_CLK_CAL_CYCLES=576 | ||
|
||
# FreeRTOS should use legacy API | ||
CONFIG_FREERTOS_ENABLE_BACKWARD_COMPATIBILITY=y | ||
|
||
# Enable OTA Requestor | ||
CONFIG_ENABLE_OTA_REQUESTOR=y |
Oops, something went wrong.