"Meanwhile, you solder in a clean flash that has not been formatted in any way and the chip gets up and works without any problems. Interesting case."
And yes ;->
I came across this article after the fact. Namely, I had a couple of modules from ESP-01 (not "S") with the infamous PUYA memories, to which I tried to upload ESP Basic. It uploaded, yes, it uploaded, but what the modules were doing to the file system was [self-censored]. Thinking little of it, I ordered a couple of W25Q80BVSIG cubes from the Chinese and - thinking a little - a couple of W25Q32BVSIGs. In the so-called meantime, I received the ESP-01S and ESP-12F ordered earlier, so I forgot about the topic. When, after the traditional 2 months, I found a package in my mailbox and in it - surprisingly - actually Winbonds, I got down to work. And indeed - after soldering, the chips got up without any problems, only in the case of a 32 megabit bone I had to mark in the programmer (I use ESP8266 Download Tool) the size not 32Mbit but 32Mbit-C1, whatever C1 means. So far ESP Basic isn't crashing, so the operation seems to have gone well. Although the thread has long since died, I've decided to throw in my 3 cents, in case some unfortunate PUYA memory module owner is digging for a solution. Don't fiddle with libraries trying to tame these memories, order the dice, solder and enjoy fully working (and in the case of 32 Mbit dice even improved) modules. Unless you stay with firmware with AT+ commands up to and including version 1.6.2, with that even these PUYAs work fine, maybe because the file system is not created there.