blob: e535f743d981655778bfad89e69e6d162cc995ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<meta name="author" content="aki">
<meta name="tags" content="tutorial, flash, nodemcu, firmware, nodemcu, hardware">
<link rel="icon" type="image/png" href="cylo.png">
<link rel="stylesheet" type="text/css" href="style.css">
<title>Flashing LOLin NodeMCU v3</title>
<nav><p><a href="https://ignore.pl">ignore.pl</a></p></nav>
<article>
<h1>Flashing LOLin NodeMCU v3</h1>
<p class="subtitle">Published on 2020-06-29 17:58:00+02:00
<p>Republishing old content. This is from when I bought and flashed my first NodeMCU clone (perhaps "loose
implementation"?) of NodeMCU v3 called LOLin v3.
<p>This little board is using CH304G 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.
<p>Without further notes, here is the specification:</p>
<table>
<tr><th>Baud rate<th>Flash mode<th>Flash size<th>Flash frequency
<tr><td>9600 <td>QIO <td>4MiB <td>40MHz
</table>
<p>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.
<a href="https://nodemcu-build.com/">NodeMCU custom builds</a>.
<p>To write the firmware use e.g. <a href="https://github.com/espressif/esptool">esptool</a>:</p>
<pre>
$ esptool.py --port <u>/dev/ttyUSB0</u> --baud 9600 erase_flash
$ esptool.py --port <u>/dev/ttyUSB0</u> --baud 9600 write_flash \
--flash_mode qio --flash_size 4MB --flash_freq 40m \
0x00000 <u>combined-firmware-file.bin</u>
</pre>
<p>To test it you can connect to it with e.g. <code>screen</code>:</p>
<pre>
$ screen <u>/dev/ttyUSB0</u> 115200
</pre>
<p>Or use your favourite terminal emulator:</p>
<pre>
$ st -l <u>/dev/ttyUSB0</u> 115200
</pre>
<img src="flashing_lolin_nodemcu_v3-1.png" alt="nodemcu drawing">
</article>
<script src="https://stats.ignore.pl/track.js"></script>
|