I bought Electrodragon wifi relay boards preloaded with NodeMCU. I try to update the NodeMCU firmware because the one preinstalled by ElectroDragon is without ADC and SJSON modules and doesn't support float. I built my custom NodeMCU firmware with https://nodemcu-build.com/.
Then I try to upload this firmware. It fails both with https://github.com/nodemcu/nodemcu-flasher and ESPtool.
With NodeMCU flasher, it starts OK to flash but after around 20 seconds, I get a flash write timeout message.
With ESPtool, it starts also OK to flash but stop also after around 20 seconds with read 0, requested 1 (see the screenshot enclosed).
BUT it works OK if I try to flash the board from IDE Arduino (so using ESPtool) with one of my previous sketch.
I 've seen many posts saying the faulty element is the USB-UART board used when NodeMCU flash fails. But in my tests, I use the same USB-UART board. With a sketch and ESPtool, flash is OK. But with ESPtool (or nodemcu-flasher) NodeMCU firmware, flash is KO (with a weird timeout message with nodemcu-flasher)
What is wrong with NodeMCU?
Thanks in advance for your answer