{"id":3625,"date":"2024-01-22T09:24:24","date_gmt":"2024-01-22T15:24:24","guid":{"rendered":"https:\/\/lab.rapternet.us\/?p=3625"},"modified":"2024-01-14T09:26:33","modified_gmt":"2024-01-14T15:26:33","slug":"flashing-a-lolin32-with-esphome","status":"publish","type":"post","link":"https:\/\/lab.rapternet.us\/?p=3625","title":{"rendered":"Flashing a Lolin32 with EspHome"},"content":{"rendered":"\n<p>In working on a new variant in my EspDeck line of devices, I need a controller with more flash space, and so I look at the Esp32 controllers, and their 4mb flash models. This is a bit of my frustrations in getting them setup.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>I started out by plugging it in to my computer and trying to use the web flasher. This didn&#8217;t work no matter if I held our clicked the reset button (though I didn&#8217;t expect reset to do anything, the board doesn&#8217;t have a boot button). A little bit of research later and I have to hooks GPIO 0 and 2 to ground at startup to get it into boot mode, after which I can use the web flash to install EspHome.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"562\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/ESP32-WeMos-LOLIN32-pinout-mischianti.jpg\" alt=\"\" class=\"wp-image-3633\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/ESP32-WeMos-LOLIN32-pinout-mischianti.jpg 1024w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/ESP32-WeMos-LOLIN32-pinout-mischianti-300x165.jpg 300w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/ESP32-WeMos-LOLIN32-pinout-mischianti-768x422.jpg 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption class=\"wp-element-caption\">Lolin32 Pinout<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"771\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240108_0051405622205037759822249857-1024x771.jpg\" alt=\"\" class=\"wp-image-3639\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240108_0051405622205037759822249857-1024x771.jpg 1024w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240108_0051405622205037759822249857-300x226.jpg 300w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240108_0051405622205037759822249857-768x578.jpg 768w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240108_0051405622205037759822249857-1536x1157.jpg 1536w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/pxl_20240108_0051405622205037759822249857.jpg 2000w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption class=\"wp-element-caption\">My jank grounding to enable flashing<\/figcaption><\/figure>\n\n\n\n<p>After I grounded those pins, started it up, and flashed it with EspHome, it was time to setup the WiFi. This encountered the next problem.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"761\" height=\"460\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/image-1.png\" alt=\"\" class=\"wp-image-3627\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/image-1.png 761w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/image-1-300x181.png 300w\" sizes=\"auto, (max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><figcaption class=\"wp-element-caption\">Hrm<\/figcaption><\/figure>\n\n\n\n<p>This was at least easily resolved by hitting the reset button on the board after removing the boot mode wires.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"516\" height=\"337\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/image-2.png\" alt=\"\" class=\"wp-image-3629\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/image-2.png 516w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/image-2-300x196.png 300w\" sizes=\"auto, (max-width: 516px) 100vw, 516px\" \/><figcaption class=\"wp-element-caption\">Finally<\/figcaption><\/figure>\n\n\n\n<p>Now that the Esp is on the Wi-Fi, it finally shows up in the EspHome addon and I can get working on it (or so I thought).<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"871\" height=\"172\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/image-3.png\" alt=\"\" class=\"wp-image-3630\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/image-3.png 871w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/image-3-300x59.png 300w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/image-3-768x152.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption class=\"wp-element-caption\">Visible in Home Assistant<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">OTA Issues<\/h2>\n\n\n\n<p>I managed to get everything setup in home assistant and even it goes to flash the new firmware, but it errors out, stating that the connection was reset by the peer. This is keeping me from doing an OTA update, which also keeps me from updating the configuration to make use of the devices.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"223\" src=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/image-4-1024x223.png\" alt=\"\" class=\"wp-image-3635\" srcset=\"https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/image-4-1024x223.png 1024w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/image-4-300x65.png 300w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/image-4-768x167.png 768w, https:\/\/lab.rapternet.us\/wp-content\/uploads\/2024\/01\/image-4.png 1379w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption class=\"wp-element-caption\">No no no<\/figcaption><\/figure>\n\n\n\n<p>This is as far as I got on these boards for now, though I do have <a href=\"https:\/\/randomnerdtutorials.com\/solved-failed-to-connect-to-esp32-timed-out-waiting-for-packet-header\/\" target=\"_blank\" rel=\"noreferrer noopener\">one potential solution<\/a> to try in the future<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In working on a new variant in my EspDeck line of devices, I need a controller with more flash space, and so I look at the Esp32 controllers, and their 4mb flash models. This is a bit of my frustrations in getting them setup.<\/p>\n","protected":false},"author":1,"featured_media":3639,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[74],"class_list":["post-3625","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to","tag-esphome"],"_links":{"self":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts\/3625","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3625"}],"version-history":[{"count":11,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts\/3625\/revisions"}],"predecessor-version":[{"id":3662,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/posts\/3625\/revisions\/3662"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=\/wp\/v2\/media\/3639"}],"wp:attachment":[{"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3625"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3625"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab.rapternet.us\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}