Thank you all for the great responses, both regarding the confirmation of W25Q128FV and the tip about purchasing with custom flash size.
Decision:
I have decided upon configuring the flash externally as intended initially, simply because I need to be sure that I can obtain the ESP-WROOM-32 and the flash for the factory and I do not have a large enough production to order 5000+ pcs directly from espressif, so I do not want to rely my whole production line on custom built modules (even through it is proberly quite safe). I am not creating that small of a product either, so adding the flash to the PCB was not an issue.
Testing:
I have now received my flash and it simply just works
I first tried to flash it using the argument "--spi-connection 18,19,23,4,5" for VSPI which detects the 16MB and flashes the chip but it did not boot on it. I used this to confirm my pins and flash worked as intended.
I then burned the efuses which did so it now boots perfectly with the 16MB:
Code: Select all
./espefuse.py --port /dev/ttyS2 burn_efuse SPI_PAD_CONFIG_CLK 18
./espefuse.py --port /dev/ttyS2 burn_efuse SPI_PAD_CONFIG_Q 19
./espefuse.py --port /dev/ttyS2 burn_efuse SPI_PAD_CONFIG_D 23
./espefuse.py --port /dev/ttyS2 burn_efuse SPI_PAD_CONFIG_HD 4
./espefuse.py --port /dev/ttyS2 burn_efuse SPI_PAD_CONFIG_CS0 5
Finally i increased the sizes of my partitions and everything is running smoothly
/Søren