I’m trying to upload the program to an esp32 devkitv1 and I get the following issue (on the esp32s it works correctly).
When I press the upload button in vscode the firmware is uploaded to the wrong partition. Because the bootstrap points to the factory partition, the app doesn’t starts.
Prior to upload I did a flash erase.
This is my custom partition table
# Name, Type, SubType, Offset, Size, Flags nvs, data, nvs, 0x19000, 0x5000, otadata, data, ota, 0x1E000, 0x2000, factory, app, factory, 0x20000, 0x100000, app0, app, ota_0, 0x120000, 0x150000, app1, app, ota_1, 0x270000, 0x150000, spiffs, data, spiffs, 0x3C0000, 0x40000,
And this is the command displayed in the console:
platformio.exe run --target upload
and this the point that it says it’s writing to ota0 (0x120000) instead that factory (0x20000)
Wrote 764096 bytes (471615 compressed) at 0x00120000 in 11.0 seconds (effective 554.5 kbit/s)...
If I flash it to the right position with the “Flash Download Tools” by EspressIf, it starts to work