Republishing old content. This is from when I bought and flashed my first NodeMCU clone (perhaps "loose
implementation"?) of NodeMCU v3 called LOLin v3.
This little board is using CH340 TTL to USB converter, so if you happen to work on Windows you must make sure you
have the driver installed beforehand. Mentioned chip is quite common, and I've seen it on various Arduino, so there is
a high chance that you already have it.
Without further notes, here is the specification:
Baud rate | Flash mode | Flash size | Flash frequency
|
---|
9600 | QIO | 4MiB | 40MHz
|
You will need a combined firmware binary. If you are compiling it by yourself, I suggest using one of the development
branches. If you don't have environment set up there are online building services available e.g.
NodeMCU custom builds.
To write the firmware use e.g. esptool:
$ esptool.py --port /dev/ttyUSB0 --baud 9600 erase_flash
$ esptool.py --port /dev/ttyUSB0 --baud 9600 write_flash \
--flash_mode qio --flash_size 4MB --flash_freq 40m \
0x00000 combined-firmware-file.bin
To test it you can connect to it with e.g. screen
:
$ screen /dev/ttyUSB0 115200
Or use your favourite terminal emulator:
$ st -l /dev/ttyUSB0 115200