From b00265e4eeb793faf7f3736a18fc2d676b825fd1 Mon Sep 17 00:00:00 2001 From: lewisxhe Date: Sat, 21 Dec 2024 09:01:15 +0800 Subject: [PATCH] Added note /~https://github.com/Xinyuan-LilyGO/LilyGO-T-ETH-Series/issues/95 --- examples/ETHOTA/ETHOTA.ino | 10 +++++++++- platformio.ini | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/examples/ETHOTA/ETHOTA.ino b/examples/ETHOTA/ETHOTA.ino index 35a96d7..813694b 100644 --- a/examples/ETHOTA/ETHOTA.ino +++ b/examples/ETHOTA/ETHOTA.ino @@ -4,7 +4,15 @@ * @license MIT * @copyright Copyright (c) 2023 Shenzhen Xin Yuan Electronic Technology Co., Ltd * @date 2023-07-31 - * + * @note Select the partition table correctly to use OTA update + * @note T-ETH-POE: Arduino IDE -> Tools -> Partition Scheme: Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS) + * @note T-ETH-LITE-ESP32: Arduino IDE -> Tools -> Partition Scheme: 16M Flash (2MB APP/12.5MB FATFS) + * @note T-ETH-LITE-ESP32S3: Arduino IDE -> Tools -> Partition Scheme: 16M Flash (2MB APP/12.5MB FATFS) + * @note T-ETH-ELITE: Arduino IDE -> Tools -> Partition Scheme: 16M Flash (2MB APP/12.5MB FATFS) + * @note T-INTER-COM: Arduino IDE -> Tools -> Partition Scheme: 16M Flash (2MB APP/12.5MB FATFS) + * + * Different flash sizes use different partition tables. For details, please refer to https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-guides/partition-tables.html + * */ #include diff --git a/platformio.ini b/platformio.ini index 89b1062..1af9f8e 100644 --- a/platformio.ini +++ b/platformio.ini @@ -88,8 +88,16 @@ monitor_filters = build_flags = -DCORE_DEBUG_LEVEL=1 + + +; Different flash sizes use different partition tables. For details, please refer to https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-guides/partition-tables.html + ; When using the CameraShield example it is necessary to change the partition table to huge_app -board_build.partitions = huge_app.csv +; board_build.partitions = huge_app.csv + +; To use OTA update, you need to select the partition that carries the OTA partition. +; board_build.partitions = default.csv ; 4MB partition +; board_build.partitions = default_16MB.csv ; 16MB partition ;Use OTA update firmware