summaryrefslogtreecommitdiff
path: root/docs/esp8266
diff options
context:
space:
mode:
Diffstat (limited to 'docs/esp8266')
-rw-r--r--docs/esp8266/general.rst11
-rw-r--r--docs/esp8266/tutorial/intro.rst23
-rw-r--r--docs/esp8266/tutorial/network_tcp.rst1
3 files changed, 33 insertions, 2 deletions
diff --git a/docs/esp8266/general.rst b/docs/esp8266/general.rst
index 04afed46e..cd659f80a 100644
--- a/docs/esp8266/general.rst
+++ b/docs/esp8266/general.rst
@@ -58,6 +58,17 @@ For your convenience, some of technical specifications are provided below:
and always-available BootROM bootloader, ESP8266 is not brickable.
+Scarcity of runtime resources
+-----------------------------
+
+ESP8266 has very modest resources (first of all, RAM memory). So, please
+avoid allocating too big container objects (lists, dictionaries) and
+buffers. There is also no full-fledged OS to keep track of resources
+and automatically clean them up, so that's the task of a user/user
+application: please be sure to close open files, sockets, etc. as soon
+as possible after use.
+
+
Boot process
------------
diff --git a/docs/esp8266/tutorial/intro.rst b/docs/esp8266/tutorial/intro.rst
index 87d446340..fe824cfff 100644
--- a/docs/esp8266/tutorial/intro.rst
+++ b/docs/esp8266/tutorial/intro.rst
@@ -35,11 +35,30 @@ If your board has a USB connector on it then most likely it is powered through
this when connected to your PC. Otherwise you will need to power it directly.
Please refer to the documentation for your board for further details.
+Getting the firmware
+--------------------
+
+The first thing you need to do is download the most recent MicroPython firmware
+.bin file to load onto your ESP8266 device. You can download it from the
+`MicroPython downloads page <http://micropython.org/download#esp8266>`_.
+From here, you have 3 main choices
+
+* Stable firmware builds for 1024kb modules and above.
+* Daily firmware builds for 1024kb modules and above.
+* Daily firmware builds for 512kb modules.
+
+The best bet is nearly always to go for the Stable firmware builds.
+An exception to this though is if you have an ESP8266 module with only 512kb
+of onboard storage. You can easily tell by trying to load a Stable firmware
+build and if you get the error below, then you may have to use the Daily
+firmware builds for 512kb modules.
+ WARNING: Unlikely to work as data goes beyond end of flash.
+
Deploying the firmware
----------------------
-The very first thing you need to do is put the MicroPython firmware (compiled
-code) on your ESP8266 device. There are two main steps to do this: first you
+Once you have the MicroPython firmware (compiled code), you need to load it onto
+your ESP8266 device. There are two main steps to do this: first you
need to put your device in boot-loader mode, and second you need to copy across
the firmware. The exact procedure for these steps is highly dependent on the
particular board and you will need to refer to its documentation for details.
diff --git a/docs/esp8266/tutorial/network_tcp.rst b/docs/esp8266/tutorial/network_tcp.rst
index 80a494721..26a2f469c 100644
--- a/docs/esp8266/tutorial/network_tcp.rst
+++ b/docs/esp8266/tutorial/network_tcp.rst
@@ -72,6 +72,7 @@ Let's define a function that can download and print a URL::
print(str(data, 'utf8'), end='')
else:
break
+ s.close()
Make sure that you import the socket module before running this function. Then
you can try::