{"id":980,"date":"2021-12-19T10:59:51","date_gmt":"2021-12-19T10:59:51","guid":{"rendered":"https:\/\/www.kolkataonweb.com\/code-bank\/?p=980"},"modified":"2022-05-02T14:38:51","modified_gmt":"2022-05-02T13:38:51","slug":"esp-01-burning-at-rom-new-and-updated","status":"publish","type":"post","link":"https:\/\/www.kolkataonweb.com\/code-bank\/arduino\/esp-01-burning-at-rom-new-and-updated\/","title":{"rendered":"ESP-01 and ESP-01S Burning AT ROM- New and Updated"},"content":{"rendered":"<p>Few years back I had posted an article on burning ROM on ESP-01. The method worked good on my older boards but not working on the newer chips.<\/p>\n<p>I needed to spend quite some hours to figure out the problem. And then it turned out that it is the SPI mode that is the matter. Also the new Flash tool (v 3.9.2 ) is not robust. It often becomes unresponsive.<\/p>\n<ul>\n<li>Upload a blank sketch to Arduino Uno<\/li>\n<li>The new ones need DOUT, 26 Mhz Xtal (check the board), SPI Speed 40 Mhz, 8Mbit. <em>Burning with other modes may result in success but the chip will not work and will end up with boot errors. I got reset reason: 2, boot(3,7)<\/em><\/li>\n<li>Connect RX to RX and TX to 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>Select the appropriate ESP8266 board from Tools &gt; Board menu.<\/li>\n<li>Select the appropriate Flash mode (Only DOUT works for new chips. Old chips work with both QIO and DOUT)<\/li>\n<li>Select baudrate as 115200<\/li>\n<li>Start upload<\/li>\n<li>RESET the module. This is a critical step and the timing matters. It may need a few tries to get it perfect.<\/li>\n<\/ul>\n<p><strong>The new Flash tool<\/strong> (v 3.9.2 ) is not robust. It often becomes unresponsive. The quick fix solution I found is pressing enter in the console (black window that it opens) and then disconnecting and reconnecting the Arduino (USB cable).<\/p>\n<p><strong>Wrong flashing<\/strong> may cause boot problems. To correct ERASE and FLASH OR FLASH all memory locations like shown below<\/p>\n<p><a href=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2022\/05\/ESP-01S-Flashing.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-1022\" src=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2022\/05\/ESP-01S-Flashing-1024x545.png\" alt=\"\" width=\"604\" height=\"321\" srcset=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2022\/05\/ESP-01S-Flashing-1024x545.png 1024w, https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2022\/05\/ESP-01S-Flashing-300x160.png 300w, https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2022\/05\/ESP-01S-Flashing-768x408.png 768w, https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2022\/05\/ESP-01S-Flashing-1536x817.png 1536w, https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2022\/05\/ESP-01S-Flashing.png 1918w\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" \/><\/a><\/p>\n<p><em>The <strong>appropriate addresses<\/strong> can be found in the folder \\ESP8266_AT_Bin_V1.6\\bin\\at\\README.md<\/em><\/p>\n<p>Please note &#8211; <strong>DoNotChgBin<\/strong> is unchecked.<\/p>\n<p>After flashing Firmware version 1.6<\/p>\n<pre class='wp-code-highlight prettyprint'>AT+GMR\r\nAT version:1.6.0.0(Feb 3 2018 12:00:06)\r\nSDK version:2.2.0(f28eaf2)\r\ncompile time:Feb 6 2018 14:36:23\r\nBin version(Wroom 02):1.6.0\r\nOK<\/pre>\n<p>All <strong>diagnostic messages<\/strong>\u00a0 are sent at 74880 Bauds.<br \/>\nBut <strong>AT commands<\/strong> are available only at 115200 Bauds.<\/p>\n<p><strong>After flashing<\/strong> disconnect GPIO_0 from GND and RESET<\/p>\n<p><strong>On proper flashing<\/strong> it will show ready like below<\/p>\n<p><a href=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2021\/12\/ESP-01S-Successful-Flash.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1024\" src=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2021\/12\/ESP-01S-Successful-Flash.png\" alt=\"\" width=\"994\" height=\"530\" srcset=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2021\/12\/ESP-01S-Successful-Flash.png 994w, https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2021\/12\/ESP-01S-Successful-Flash-300x160.png 300w, https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2021\/12\/ESP-01S-Successful-Flash-768x409.png 768w\" sizes=\"auto, (max-width: 994px) 100vw, 994px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Here is the <a href=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2021\/12\/flash_download_tool_3.9.2.zip\">latest flash tool<\/a><br \/>\nHere is the <a href=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2021\/12\/esp8266_at_bin_v1.6.zip\">ROM Version 1.6<\/a><br \/>\nHere is the <a href=\"https:\/\/www.kolkataonweb.com\/code-bank\/wp-content\/uploads\/2021\/12\/ESP8266_AT_Bin_V1.6.2_0.zip\">ROM Version 1.6.2<\/a><\/p>\n<p><span style=\"color: #ff0000;\">NOTES:<\/span><\/p>\n<ul>\n<li>Adequate power supply is needed for burning. I am using a buck convertor capable of delivering upto 1 amp.<\/li>\n<li>Burning new chips with QIO will result in a successful burning but the code will not run.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Few years back I had posted an article on burning ROM on ESP-01. The method worked good on my older boards but not working on the newer chips. I needed to spend quite some hours to figure out the problem. And then it turned out that it is the SPI mode that is the matter.&hellip; <a class=\"more-link\" href=\"https:\/\/www.kolkataonweb.com\/code-bank\/arduino\/esp-01-burning-at-rom-new-and-updated\/\">Continue reading <span class=\"screen-reader-text\">ESP-01 and ESP-01S Burning AT ROM- New and Updated<\/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,373,64],"tags":[15,389,388,14,387,385,386],"class_list":["post-980","post","type-post","status-publish","format-standard","hentry","category-arduino","category-electronics","category-esp-8266","tag-esp-01","tag-esp-01-burn-rom","tag-esp-01-rom","tag-esp8266","tag-esp8266-at-bin-v1-6","tag-esp8266-at-bin-v1-7","tag-esp8266-at-bin-version-1-6-2_0","entry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/980","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=980"}],"version-history":[{"count":11,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/980\/revisions"}],"predecessor-version":[{"id":1025,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/posts\/980\/revisions\/1025"}],"wp:attachment":[{"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/media?parent=980"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/categories?post=980"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kolkataonweb.com\/code-bank\/wp-json\/wp\/v2\/tags?post=980"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}