Hi !
I´m actually working on a ESP32 project where I often have to test different partition schemes. And as far as I can tell now there is a problem in switching the partition scheme in your project.
For testing I used this code:
https://gist.githubusercontent.com/haeshh/3884ce1849157bd2bfe103917a981318/raw/2... Nothing special ... Just a littleFS test program.
How to check this behaviour...
1) For reference we make a Arduino IDE check
* Erase the flash
esptool.exe --port COMxx erase_flash * Compile the Program with 4MB SPIFFS (1.2 APP, 1,5 SPIFFS)
* Output "Bytes total: 1507328" -> Which is
OK * Erase the flash
* Change the partition scheme to "Huge App (3MB no OTA, 1MB Spiffs)
* Output "Bytes total: 983040" -> Which is
OK So the Arduino IDE (1.8.15) is fine ...
2) Now lets see VS Micro ...
* Erase the flash
* Compile the Program with 4MB SPIFFS (1.2 APP, 1,5 SPIFFS)
* Output "Bytes total: 983040" ->
This is WRONG * Erase the flash
* Change the partition scheme to "No OTA (2MB APP, 2MB Spiffs)
* Output "Bytes total: 983040" ->
This is WRONG My VS Micro Version is 2021.606.10
btw ... I tried to delete the debug and __vm folder within the project. But that did not help either.
Would be great to get any hint as a workaround or maybe a fix.
greetings
Dominik