Reliable way to determine flash size?
Posted: Sun Jul 05, 2015 11:16 am
I have a number of ESP-12(E) modules. All of them (with old or new pinout) have a flash chip inside that has some combination of "25Q32" written on it. They all seem to be nameless clones, none is a genuine Winbond chip.
When I boot one of the "E" models with the AT firmware, it shows "8mbit", i.e. 1 MByte as the flash size. When I flash a NodeLUA firmware, a "node.info()" shows "4096" as the flash size, i.e. 4MByte of 512k, depending on whether the 4096 are bytes or bits.
The AT firmware could be upgraded OTA, so it can't be 512k.
Does anyone know of a way to determine the flash size reliably?
Edit: According to the reported ID, all three ESP-12(E) modules have a Gigadevice GD25Q32 flash chip. The three chips look very different to each other, so I guess they are copies / clones. In the end, I would have to actually write and read the flash to be sure, I think.
When I boot one of the "E" models with the AT firmware, it shows "8mbit", i.e. 1 MByte as the flash size. When I flash a NodeLUA firmware, a "node.info()" shows "4096" as the flash size, i.e. 4MByte of 512k, depending on whether the 4096 are bytes or bits.
The AT firmware could be upgraded OTA, so it can't be 512k.
Does anyone know of a way to determine the flash size reliably?
Edit: According to the reported ID, all three ESP-12(E) modules have a Gigadevice GD25Q32 flash chip. The three chips look very different to each other, so I guess they are copies / clones. In the end, I would have to actually write and read the flash to be sure, I think.