- Thu Jun 15, 2017 8:51 pm
#67229
marcelstoer wrote:A couple of notes:
- Erasing flash is done using the `erase_flash` command rather than `write_flash` (possibly a typo in your post).
Yes, that was a typo, I did use erase_flash successfully
marcelstoer wrote:- Current versions of esptool.py (2.0 was released today, check with `esptool.py version`) don't need the -fs parameter because they support auto-size detection (on by default).
Ah, I haven't seen that one, I am still using 1.3 which seems to work fine with Nodemcu v1.5.4.1
marcelstoer wrote:- If you use the -fs parameter the value is in MB rather than Mb with current esptool.py versions, see https://github.com/espressif/esptool/#f ... h_size--fs
That is so weird, maybe it ignores the value because it flashed fine with the older version. But I will specify it in MB from now on. Thanks for catching that.
marcelstoer wrote:- With current versions of NodeMCU you don't need to flash the init data manually. The firmware does that automatically on boot if necessary, see https://nodemcu.readthedocs.io/en/lates ... -init-data.
Unfortunately that didn't work either. I tried just flashing 0x00000.bin and 0x00001.bin and I also tried a build from nodemcu-build website listed in the docs but no success.
pronoyc wrote:all I see is garbage on the serial port
marcelstoer wrote:Have you tried setting baud to 115200 explicitly? I assume that this works ok though as you'd otherwise not see the file system erase messages.
I did that too. I also see "Formatting file system, please wait" message, so I know that the baud is correct.