{"id":230,"date":"2016-02-06T19:58:55","date_gmt":"2016-02-06T19:58:55","guid":{"rendered":"https:\/\/www.kolkataonweb.com\/code-bank\/?p=230"},"modified":"2022-05-02T13:51:35","modified_gmt":"2022-05-02T12:51:35","slug":"esp8266-esp-01","status":"publish","type":"post","link":"https:\/\/www.kolkataonweb.com\/code-bank\/arduino\/esp8266-esp-01\/","title":{"rendered":"ESP8266 ESP-01 &#8211; Part 1 &#8211; Flashing and AT commands"},"content":{"rendered":"<p>This article is about the one that looks like this (aka <strong>ESP-01<\/strong>).<\/p>\n<p><a href=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/02\/esp8266-esp-01-wifi-module-for-iot.jpeg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-231 size-medium\" src=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/02\/esp8266-esp-01-wifi-module-for-iot-300x285.jpeg\" alt=\"esp8266-esp-01-wifi-module-for-iot\" width=\"300\" height=\"285\" srcset=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/02\/esp8266-esp-01-wifi-module-for-iot-300x285.jpeg 300w, https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/02\/esp8266-esp-01-wifi-module-for-iot.jpeg 400w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Flasher version is 2.3<br \/>\nFirmware version is 1.5<\/p>\n<p>Firmware update might be necessary just after purchase. Without firmware update mine was not able to connect to Wi-fi routers (though they were able to find them)<\/p>\n<p>The current firmware available for this is &#8220;ESP8266_AT_v0.51&#8221;. The direct link to the download <a href=\"http:\/\/bbs.espressif.com\/viewtopic.php?f=46&amp;t=1451\">http:\/\/bbs.espressif.com\/viewtopic.php?f=46&amp;t=1451<\/a> . The download is at the bottom of the page as an Attachment.<\/p>\n<p><a href=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/02\/firware-files-and-readme.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-236\" src=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/02\/firware-files-and-readme-1024x538.png\" alt=\"firware files and readme\" width=\"604\" height=\"317\" srcset=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/02\/firware-files-and-readme-1024x538.png 1024w, https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/02\/firware-files-and-readme-300x158.png 300w, https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/02\/firware-files-and-readme.png 1179w\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" \/><\/a><\/p>\n<p>The flasher (for flashing firmware) can be found here <a href=\"http:\/\/bbs.espressif.com\/viewtopic.php?f=57&amp;t=433\">http:\/\/bbs.espressif.com\/viewtopic.php?f=57&amp;t=433<\/a>. The .rar version contains the necessary files to update the firmware.<\/p>\n<p><span style=\"color: #ff0000;\">WARNING:<\/span> read the readme file that came with the firmware.<\/p>\n<p><a href=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/02\/esp8266-flasher.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-235\" src=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/02\/esp8266-flasher.png\" alt=\"esp8266-flasher\" width=\"441\" height=\"631\" srcset=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/02\/esp8266-flasher.png 441w, https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/02\/esp8266-flasher-210x300.png 210w\" sizes=\"auto, (max-width: 441px) 100vw, 441px\" \/><\/a><\/p>\n<p><span style=\"color: #ff0000;\">Please note New chips need DOUT specifically, whereas old ones work with both QIO and DOUT<\/span><\/p>\n<p><strong>\u00a0Latest Flasher and Firmware Downloads (6th Feb, 2016):<\/strong><\/p>\n<ul>\n<li><a href=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/02\/FLASH_DOWNLOAD_TOOLS_v2.4_150924.rar\">Flasher<\/a><\/li>\n<li><a href=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/02\/AT_v0.51_on_ESP8266_NONOS_SDK_V1.5.0.zip\">Firmware<\/a><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h4><strong>Pin configuration<\/strong> of the module<\/h4>\n<p><a href=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/02\/esp8266-pin.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-232\" src=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/02\/esp8266-pin.png\" alt=\"esp8266 - pin\" width=\"349\" height=\"144\" srcset=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/02\/esp8266-pin.png 349w, https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2016\/02\/esp8266-pin-300x124.png 300w\" sizes=\"auto, (max-width: 349px) 100vw, 349px\" \/><\/a><\/p>\n<p><span style=\"color: #ff0000;\">IMPORTANT NOTES: <\/span><\/p>\n<ul>\n<li><span style=\"color: #ff0000;\"><span style=\"color: #000000;\">This board runs on 3.3v <\/span><\/span><\/li>\n<li><span style=\"color: #ff0000;\"><span style=\"color: #000000;\">The default Baud rate is 115200 <\/span><\/span><\/li>\n<li><span style=\"color: #000000;\">Boot errors are output over 74800. This is default and fixed.<br \/>\n<\/span><\/li>\n<li><span style=\"color: #ff0000;\"><span style=\"color: #000000;\">For the RX TX line voltage divider using resistors doesn&#8217;t work. Using a 150 ohms in series for now, waiting for my Logic Level converter. But then so far (many years now) direct connection didn&#8217;t damage the ESP-01.<br \/>\n<\/span><\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h4>Flashing<\/h4>\n<ol>\n<li>Used an Arduino Uno to flash the firmware.<\/li>\n<li>Upload a blank sketch to the Arduino.<\/li>\n<li>The module&#8217;s RX will go to Arduino RX and similarly TX will go TX.<\/li>\n<li>GPIO_0 will go to GND<\/li>\n<li>VCC and CH_PD will go to the 3.3v supply line<\/li>\n<li>Load the flasher<\/li>\n<li>Mine one came with &#8220;Ai-Cloud insid8&#8221; written. This module has a Flash size of 8Mbit: 512KB+512KB. QuadIO and 26MHZ crystal.<\/li>\n<li>Select the appropriate files in the &#8220;Download Path Config&#8221; section in the flasher tool. Some of the addresses might also need to be adjusted. READ the readme file that came with the firmware.<\/li>\n<li>Select the COM port on which Arduino is connected and the set the Baud rate to 115200 (the default of this board)<\/li>\n<li>Press start. If all goes well it will show finish to the left of the &#8220;Start&#8221; and &#8220;Stop&#8221; button<\/li>\n<li>If it fails &#8211; press &#8220;Stop&#8221;. Reset the board by Grounding RESET pin. And press Start again<\/li>\n<li>If the flashing is going on properly then the TX light of Arduino and the Blue light of the module will flash.<\/li>\n<li>Once firmware has been flashed disconnect the GPIO_0 pin from GND. Reset the module and start working<\/li>\n<\/ol>\n<p><strong>Useful links:<\/strong><br \/>\n<a href=\"http:\/\/www.electrodragon.com\/w\/Category:ESP8266_Firmware_and_SDK\">http:\/\/www.electrodragon.com\/w\/Category:ESP8266_Firmware_and_SDK<\/a><\/p>\n<p>&nbsp;<\/p>\n<h4>AT Commands<\/h4>\n<ol>\n<li>Used Arduino Serial monitor for sending AT commands to the Module.<\/li>\n<li>The RX and TX pin configuration will remain same as above.<\/li>\n<li>Start with the AT command.<\/li>\n<li>List of some useful AT commands : <a href=\"http:\/\/www.pridopia.co.uk\/pi-doc\/ESP8266ATCommandsSet.pdf\">http:\/\/www.pridopia.co.uk\/pi-doc\/ESP8266ATCommandsSet.pdf<\/a><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p><strong>Notes<\/strong><\/p>\n<ul>\n<li><em>After flashing the default baud rate becomes 115200. And also the CWMODE might need to be changed to 1 or 3 manually (mine somehow went to mode 2 that is AP mode)<\/em><\/li>\n<li><em>If the RTOS firmware is flashed then the &#8220;user1.1024.new.2.bin&#8221; file inside the AT directory cannot be flashed &#8211; it makes the chip non-responsive.<\/em><\/li>\n<li><em>The required files for RTOS firmware comes in the zip file named &#8220;AT_V0.60_on_ESP8266_NONOS_SDK_V1.5.2_20160203&#8221; and is inside &#8220;noboot&#8221; folder.<\/em><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>Updated version of this here: <a href=\"https:\/\/www.kolkataonweb.com\/code-bank\/arduino\/esp-01-burning-at-rom-new-and-updated\/\">https:\/\/www.kolkataonweb.com\/code-bank\/arduino\/esp-01-burning-at-rom-new-and-updated\/<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article is about the one that looks like this (aka ESP-01). &nbsp; Flasher version is 2.3 Firmware version is 1.5 Firmware update might be necessary just after purchase. Without firmware update mine was not able to connect to Wi-fi routers (though they were able to find them) The current firmware available for this is&hellip; <a class=\"more-link\" href=\"https:\/\/www.kolkataonweb.com\/code-bank\/arduino\/esp8266-esp-01\/\">Continue reading <span class=\"screen-reader-text\">ESP8266 ESP-01 &#8211; Part 1 &#8211; Flashing and AT commands<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[16,17,13,15,14,18,19,40],"class_list":["post-230","post","type-post","status-publish","format-standard","hentry","category-arduino","tag-ai-cloud-insid8","tag-ai-cloud-inside","tag-arduino","tag-esp-01","tag-esp8266","tag-esp8266-firmware","tag-esp8266-flashing-firmware","tag-esp8266-rtos","entry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/230","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/comments?post=230"}],"version-history":[{"count":16,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/230\/revisions"}],"predecessor-version":[{"id":1015,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/230\/revisions\/1015"}],"wp:attachment":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/media?parent=230"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/categories?post=230"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/tags?post=230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}