I have made a custom dev board with a 16MB esp 32 on it
esptool.py --port /dev/cu.usbserial-0001 flash_id esptool.py v3.3.2 Serial port /dev/cu.usbserial-0001 Connecting.... Detecting chip type... Unsupported detection protocol, switching and trying again... Connecting.................... Detecting chip type... ESP32 Chip is ESP32-D0WD-V3 (revision 3) Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None Crystal is 40MHz MAC: e8:31:cd:2a:b1:e4 Uploading stub... Running stub... Stub running... Manufacturer: 20 Device: 4018 Detected flash size: 16MB Hard resetting via RTS pin...
I am attempting to change my partitions to make use of this via bigger partition table.
However, it seems that every time I overflow the 4MB, I get an error. We upload fine, but then it just spins with this error. It crashes on outputting this.
rst:0x3 (SW_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:2 load:0x3fff0030,len:1184 load:0x40078000,len:13132 load:0x40080400,len:3036 entry 0x400805e4 ets Jul 29 2019 12:21:46
I have a working custom partition file which I set via:
# Name, Type, SubType, Offset, Size, Flags nvs, data, nvs, 0x9000, 0x5000, otadata, data, ota, 0xe000, 0x2000, app0, app, ota_0, 0x10000, 0x1E0000, app1, app, ota_1, 0x1F0000,0x1E0000, spiffs, data, spiffs, 0x3D0000,0x30000,
But as soon as I try to add more partitions or make them bigger, I end up spinning. E.g.
# Name, Type, SubType, Offset, Size, Flags nvs, data, nvs, 0x9000, 0x5000, otadata, data, ota, 0xe000, 0x2000, factory, app, factory, 0x10000, 0x1E0000, app0, app, ota_0, 0x1F0000,0x1E0000, app1, app, ota_1, 0x3D0000,0x1E0000, spiffs, data, spiffs, 0x5B0000,0x30000,
Is there some other config that needs to be set to allow flashing above 4MB? Maybe a build flag or something? … did we buy a fake chip?
We are using Arduino, if that is relevant here.