使用USB TO TTL更新ESP8266韌體
Step1)首先確認ESP8266的Flash記憶體大小,購買時要留意,目前至少要買1MByte以上,才能更新較新的韌體版本,筆者購買ESP8266 ESP-01S 標榜1MByte的Flash記憶體
Step2)接線如下,使用USB TO TTL(筆者使用CP2102)連線ESP8266,若要更新韌體,IO0需要接地。
Step2)下載韌體,目前筆者下載v1.1.1版,此版本Flash需要1MByte。
下載網址如下,選取檔案ai-thinker-v1.1.1-115200.bin。
https://github.com/sleemanj/ESP8266_Simple/tree/master/firmware
Step3)下載韌體更新程式ESP8266Flasher.exe
64bit版本
https://github.com/nodemcu/nodemcu-flasher/tree/master/Win64/Release
32bit版本
https://github.com/nodemcu/nodemcu-flasher/tree/master/Win32/Release
Step4)使用ESP8266Flasher.exe更新韌體,執行ESP8266Flasher.exe。
點選「Operation」的COM Port選擇CP2102的COM Port,有時需要安裝CP2102的驅動程式
在「Config」頁籤,選擇要更新的韌體ai-thinker-v1.1.1-115200.bin,位址為0x00000
在「Advanced」頁籤,選擇Flash size為1MByte
回到「Operation」使用Flash更新韌體。
下方藍色橫條跑到最右邊表示韌體更新完成,下方為MAC位址。
參考資料
https://cms.35g.tw/coding/%E4%BD%BF%E7%94%A8arduino%E6%9B%B4%E6%96%B0esp8266-firmware/
https://github.com/sleemanj/ESP8266_Simple/tree/master/firmware
https://github.com/nodemcu/nodemcu-flasher/tree/master/Win64/Release
https://github.com/swkim01/fritzing/blob/master/parts/CP2102%20USB%20UART%20Breakout.fzpz