From fa70a56a65533caa6c509eaf9ebfdd521568c3c3 Mon Sep 17 00:00:00 2001 From: Rhys Mainwaring Date: Thu, 31 Aug 2023 16:39:51 +0100 Subject: [PATCH] AP_HAL_ESP32: change storage sector size to 128K Signed-off-by: Rhys Mainwaring --- libraries/AP_HAL_ESP32/Storage.h | 2 +- libraries/AP_HAL_ESP32/targets/esp32/partitions.csv | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_HAL_ESP32/Storage.h b/libraries/AP_HAL_ESP32/Storage.h index 45f8376e69..ff066b96d6 100644 --- a/libraries/AP_HAL_ESP32/Storage.h +++ b/libraries/AP_HAL_ESP32/Storage.h @@ -23,7 +23,7 @@ #include "esp_partition.h" #define STORAGE_SIZE HAL_STORAGE_SIZE -#define STORAGE_SECTOR_SIZE (64*1024) +#define STORAGE_SECTOR_SIZE (128*1024) #define STORAGE_LINE_SHIFT 3 diff --git a/libraries/AP_HAL_ESP32/targets/esp32/partitions.csv b/libraries/AP_HAL_ESP32/targets/esp32/partitions.csv index 70f23f3af8..8a292ba165 100644 --- a/libraries/AP_HAL_ESP32/targets/esp32/partitions.csv +++ b/libraries/AP_HAL_ESP32/targets/esp32/partitions.csv @@ -2,4 +2,4 @@ nvs, data, nvs, , 0x6000 phy_init, data, phy, , 0x1000 factory, app, factory, , 3M -storage, 0x45, 0x0, , 128K +storage, 0x45, 0x0, , 256K