Anyway, the reason was that the ESP had run out of flash memory. When updating, the bin file is stored in the ESPs flash and is transmitted from there. So what happened? The user had chosen to rename the bin files to include version, date or functionality. Which is actually a good idea. But it means the flash memory fills up with files:
Type http://192.168.4.1/list to see this
Code: Select all
[{"type":"file","name":"stm32_foc_457.bin"},{"type":"file","name":"ajax-loader.gif"},{"type":"file","name":"refresh.png"},{"type":"file","name":"gauges.js"},{"type":"file","name":"stm32_foc_485.bin"},{"type":"file","name":"stm32_foc210509.bin"},{"type":"file","name":"index.js"},{"type":"file","name":"stm32_foc (3).bin"},{"type":"file","name":"Leaf 2019-11-10.json"},{"type":"file","name":"stm32_sine.bin"},{"type":"file","name":"stm32_foc (2).bin"},{"type":"file","name":"gauges.html"},{"type":"file","name":"stm32_foc20200217.bin"},{"type":"file","name":"stm32_foc1.bin"},{"type":"file","name":"stm32_foc.bin"},{"type":"file","name":"inverter.js"},{"type":"file","name":"log.js"},{"type":"file","name":"style.css"},{"type":"file","name":"index.html"},{"type":"file","name":"stm32_foc_curki.bin"},{"type":"file","name":"params.json"},{"type":"file","name":"stm32_foc_IDC_adjust.bin"},{"type":"file","name":"chart.min.js.gz"},{"type":"file","name":"stm32_foc_487.bin"},{"type":"file","name":"wifi.html"},{"type":"file","name":"wifi-updated.html"},{"type":"file","name":"log.html"},{"type":"file","name":"gauge.min.js.gz"},{"type":"file","name":"stm32_foc473.bin"}]
Solution: do not rename the file before updating, but afterwards.
To cure the problem, you need to delete the files. Either by reflashing the ESP SPIFS or by deleting with curl like so:
Code: Select all
curl -X "DELETE" http://192.168.4.1/edit?f=/stm32_foc_487.bin