Cov txheej txheem:

Firmware Flashing ntawm ESP8266: 4 Cov Kauj Ruam
Firmware Flashing ntawm ESP8266: 4 Cov Kauj Ruam

Video: Firmware Flashing ntawm ESP8266: 4 Cov Kauj Ruam

Video: Firmware Flashing ntawm ESP8266: 4 Cov Kauj Ruam
Video: Home Assistant - подключаем адресную ленту WS2812B через ESP8266 с прошивкой WLED 2024, Kaum ib hlis
Anonim
Firmware Flashing ntawm ESP8266
Firmware Flashing ntawm ESP8266

Txhua leej txhua tus tau sim hloov kho lub khoos phis tawj ntawm ESP8266 tus qauv Cov Lus Qhia yuav pab tau koj hauv qhov ua kom pom lub firmware hauv ESP8266.

Kauj Ruam 1: Txuas ESP8266 Nrog Computer

Txuas ESP8266 nrog Lub Khoos Phis Tawj
Txuas ESP8266 nrog Lub Khoos Phis Tawj
Txuas ESP8266 nrog Lub Khoos Phis Tawj
Txuas ESP8266 nrog Lub Khoos Phis Tawj

Ua ntej tshaj plaws koj yuav tsum txuas ESP8266 nrog Computer nrog kev pab ntawm Arduino UNO lossis USB-UART. ua raws daim duab qhia kev txuas mus rau ESP8266 module nrog Arduino lossis USB-UART

Rau ARDUINO UNO

  • Txuas tus pin 3.3v ntawm Arduino UNO rau V ++ thiab EN tus pin ntawm ESP8266
  • Txuas GND tus pin ntawm Arduino UNO rau GND tus pin ntawm ESP8266
  • Txuas TX, RX ntawm Arduino UNO tus pin rau RX thiab TX pinof ESP8266
  • Txuas qhov hloov pauv ntawm GND tus pin ntawm Arduino UNO thiab CPIO0 tus pin ntawm ESP8266 kom qhib lub firmware hloov tshiab hom. (thaum hloov pauv raug nias)
  • Txuas RST ntawm Arduino UNO rau GND ntawm Arduino UNO

raws li daim duab qhia Circuit

Rau USB-UART

  • Txuas tus 3.3v tus pin ntawm USB-UART rau V ++ thiab EN tus pin ntawm ESP8266
  • Txuas GND tus pin ntawm USB-UART rau GND tus pin ntawm ESP8266
  • Txuas TX, RX ntawm USB-UART tus pin rau RX thiab TX tus pin ntawm ESP8266
  • Txuas qhov hloov pauv ntawm GND tus pin ntawm USB-UART thiab CPIO0 tus pin ntawm ESP8266 kom qhib lub khoos phis tawj hloov tshiab. (Thaum hloov pauv)

Kauj Ruam 2: Txheeb Xyuas Qhov Tam Sim No

Txhawm rau txheeb xyuas qhov tam sim no ntawm koj ESP8266 qhib Arduino IDE (yog tias koj tsis tau nyem qhov txuas kom tau nws: -https://www.arduino.cc/en/main/software)

Nco tseg:- Hloov b/w GND thiab CIPO0 yuav qhib (tsis nias)

Qhib Txoj Haujlwm Tshiab <Xaiv Chaw nres nkoj hauv Cov Cuab Yeej <Qhib Serial Monitor hauv cov cuab yeej <Xaiv Tus Nqi Baud rau 115200

Tus saib xyuas qhov chaw nres nkoj yuav tsum tau teeb tsa kab hais kom ua yuav xa nrog zaum kawg NL thiab CR tus cim ob qho tib si.

Hauv kab lus Tshooj Txheeb Xyuas AT cov lus txib

Ntaus AT thiab nias Enter

nws yuav rov qab los

AT

OK

Nco tseg:- Yog tias tsis ua haujlwm nias lub RST khawm ntawm Arduino UNO thiab sim dua

tom qab xeem hom

AT+GMR txhawm rau txheeb xyuas qhov firmware tam sim no

cov zis yuav zoo li:-

AT+GMR

AT version: 0.40.0.0 (Aug 8 2015 14:45:58) SDK version: 1.3.0 Ai-Thinker Technology Co., Ltd. Tsim: 1.3.0.2 Sep 11 2015 11:48:04 OK

Tsis tas li nws yog qhov tsim nyog yuav tsum paub lub cim xeeb flash loj ntawm ESP module, firmware upload chaw nyob yog nyob ntawm nws loj. Phau ntawv no piav qhia hloov kho tshiab ntawm cov khoom siv nrog lub cim xeeb flash loj 8Mbit (512KB+512KB) lossis 16Mbit (1024KB+1024KB), raws li feem ntau. Flash nco me me tuaj yeem pom yog xa AT-command los ntawm kev pib dua: AT+RST.

cov zis yuav zoo li:-

AT+RST

OK ets Lub Ib Hlis 8 2013, rst ua rau: 2, hom khau raj: (3, 1) thauj 0x40100000, len 1396, chav 16 tus tw 4 chksum 0x89 load 0x3ffe8000, len 776, chav 4 tail 4 chksum 0xe8 load 0x3ffe8308, len 540, chav 4 tw 8 chksum 0xc0 csum 0xc0 2nd khau raj version: 1.4 (b1) SPI Ceev: 40MHz SPI Hom: DIO SPI Flash Loj & Daim Ntawv Qhia: 8Mbit (512KB+512KB) dhia kom khiav user1 @ 1000 Ai-Thinker Technology Co., Ltd. npaj txhij

nco tag nrho cov ntsiab lus thiab tawm mus

Kauj Ruam 3: Flash Tool thiab Firmware

Txhawm rau hloov kho lub firmware koj yuav tsum rub tawm daim ntawv thov tshwj xeeb thiab firmware nws tus kheej. Daim ntawv thov rau kev hloov kho tshiab ESP8266 yuav siv Flash Rub Cov Cuab Yeej los ntawm lub vev xaib raug cai Espressif Systems. Txuas mus rau nplooj ntawv rub tawm:

Lub firmware kuj tseem tuaj yeem rub tawm los ntawm lub xaib. Ib qhov txuas mus rau nplooj ntawv rub tawm ntawm lub vev xaib raug cai:

Koj yuav tsum mus rau "SDKs & Demos" ntu thiab rub tawm firmware ESP8266 NONOS SDK version tsawg kawg v1.3.0. los yog siab dua version

Txhua cov ntaub ntawv rub tawm yuav tsum tau ntim thiab muab tso rau hauv phau ntawv teev npe.

Kauj ruam 4: Flashing Firmware

Flashing Firmware
Flashing Firmware
Flashing Firmware
Flashing Firmware
Flashing Firmware
Flashing Firmware

Khiav daim ntawv thov Flash Rub Cov Cuab Yeej v "ib qho version" (cov ntaub ntawv.exe ntawm tib lub npe). Hauv qhov qhib qhov rai yuav tsum raug xaiv xaiv cov ntawv rub tawm thiab teeb tsa hom kev sib txuas.

Cov ntaub ntawv rub tawm tau nyob hauv "bin" phau ntawv teev npe nrog cov ntaub ntawv firmware. Rau txhua cov ntaub ntawv koj yuav tsum qhia meej qhov chaw nyob rub tawm tau. Xaiv cov ntaub ntawv hauv "bin" nplaub tshev

Siv cov lus hauv qab no hauv cov duab los xaiv cov ntaub ntawv thiab chaw nyob

Teem cov chaw hauv qab no:

  • SPIAutoSet - teeb tsa;
  • CrystalFreq - 26M;
  • FLASH SIZE - 8Mbit lossis 16Mbit nyob ntawm qhov loj ntawm lub cim xeeb flash;
  • COM PORT - xaiv qhov chaw nres nkoj uas txuas nrog ESP;
  • PIB - 115200

Nyem khawm "Pib" hauv daim ntawv thov hloov kho firmware.

nws Sync cov ntaub ntawv nrog Pawg Thawj Coj thiab pib rub tawm

Nco tseg:- Yog tias tsis ua haujlwm nias lub pob "RESET" ntawm arduino thiab tom qab ntawd nias "START" dua

Tos kom txog thaum kawg ntawm qhov hloov tshiab firmware. Qhov kawg ntawm cov txheej txheem zoo li cov ntawv sau FINISH ntsuab.

Tua lub hwj chim ESP8266 tus qauv thiab tshem tawm hauv av los ntawm tus pin CPIO0. (Un-nias qhov hloov)

Qhib tus qauv thiab khiav lub chaw nres nkoj txuas. Xyuas kom tus qauv thiab cov khoos phis tawm tshiab ua haujlwm los ntawm xa AT-command AT+GMR.

Pom zoo: