diff --git a/config/esp32/partitions.csv b/config/esp32/partitions.csv index 89fe79f..04dcea6 100755 --- a/config/esp32/partitions.csv +++ b/config/esp32/partitions.csv @@ -4,4 +4,4 @@ nvs, data, nvs, 0x9000, 0x6000 phy_init, data, phy, 0xf000, 0x1000 factory, app, factory, 0x10000, 1M, -part0, 0x40, 0x1, 0x200000, 1M, +part0, 0x40, 0x1, 0x200000, 2M, diff --git a/sdkconfig.defaults b/sdkconfig.defaults index 4086232..adb55e4 100755 --- a/sdkconfig.defaults +++ b/sdkconfig.defaults @@ -9,6 +9,8 @@ CONFIG_PARTITION_TABLE_CUSTOM=y CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="config/esp32/partitions.csv" CONFIG_PARTITION_TABLE_FILENAME="config/esp32/partitions.csv" CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y +CONFIG_ESPTOOLPY_FLASHMODE_QIO=y +CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240=y CONFIG_WL_SECTOR_SIZE_512=y CONFIG_WL_SECTOR_MODE_PERF=y COMPILER_OPTIMIZATION="Performance" diff --git a/src/fs/low_flash.c b/src/fs/low_flash.c index bfd43d9..a99f33c 100644 --- a/src/fs/low_flash.c +++ b/src/fs/low_flash.c @@ -149,10 +149,6 @@ void do_flash() { } } flash_available = false; -#ifdef ESP_PLATFORM - esp_partition_munmap(fd_map); - esp_partition_mmap(part0, 0, part0->size, ESP_PARTITION_MMAP_DATA, (const void **)&map, (esp_partition_mmap_handle_t *)&fd_map); -#endif mutex_exit(&mtx_flash); } sem_release(&sem_flash);