ESP32 ડેવ કિટ ડેવલપમેન્ટ બોર્ડ
ઉત્પાદન માહિતી
વિશિષ્ટતાઓ
- Product: ESP32
- Programming Guide: ESP-IDF
- Release Version: v5.0.9
- ઉત્પાદક: એસ્પ્રેસિફ સિસ્ટમ્સ
- પ્રકાશન તારીખ: મે 16, 2025
ઉત્પાદન વપરાશ સૂચનાઓ
1. પ્રારંભ કરો
ESP32 શરૂ કરતા પહેલા, આનાથી પરિચિત થાઓ
નીચેના:
1.1 પરિચય
Learn about the basic functionalities and capabilities of the
ઇએસપી32.
1.2 તમને શું જોઈએ છે
Ensure you have the necessary hardware and software:
- હાર્ડવેર: જરૂરી હાર્ડવેરની યાદી તપાસો
ઘટકો - સૉફ્ટવેર: Install the required software
ઘટકો
1.3 સ્થાપન
Follow these steps to install the IDE and set up the
પર્યાવરણ:
- IDE: Install the recommended IDE for
programming the ESP32. - મેન્યુઅલ ઇન્સ્ટોલેશન: મેન્યુઅલી સેટ કરો
જો જરૂરી હોય તો પર્યાવરણ.
૧.૪ તમારો પહેલો પ્રોજેક્ટ બનાવો
Create and build your initial project using the ESP32.
૧.૫ ESP-IDF અનઇન્સ્ટોલ કરો
જો જરૂર હોય તો, તમારામાંથી ESP-IDF કેવી રીતે અનઇન્સ્ટોલ કરવું તે શીખો
સિસ્ટમ
2. API સંદર્ભ
વિગતવાર માહિતી માટે API દસ્તાવેજીકરણનો સંદર્ભ લો
એપ્લિકેશન પ્રોટોકોલ, ભૂલ નિયંત્રણ અને ગોઠવણી
માળખાં
વારંવાર પૂછાતા પ્રશ્નો (FAQ)
પ્ર: ESP32 સાથેની સામાન્ય સમસ્યાઓનું નિવારણ હું કેવી રીતે કરી શકું?
A: પ્રોગ્રામિંગ માર્ગદર્શિકામાં મુશ્કેલીનિવારણ વિભાગનો સંદર્ભ લો.
અથવા ઉત્પાદકની મુલાકાત લો webઆધાર સંસાધનો માટે સાઇટ.
પ્રશ્ન: શું હું અન્ય માઇક્રોકન્ટ્રોલર્સ સાથે ESP-IDF નો ઉપયોગ કરી શકું?
A: ESP-IDF is specifically designed for ESP32, but you may find
compatibility with other Espressif microcontrollers.
ESP32
ESP-IDF પ્રોગ્રામિંગ માર્ગદર્શિકા
Release v5.0.9 Espressif Systems May 16, 2025
સામગ્રીઓનું કોષ્ટક
સામગ્રીઓનું કોષ્ટક
i
1 પ્રારંભ કરો
3
૨.૩.૧ પરિચય . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ૮૬
1.2 What You Need . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2.1 Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2.2 Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
1.3 Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
1.3.1 IDE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
1.3.2 Manual Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
1.4 Build Your First Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
૧.૫ ESP-IDF અનઇન્સ્ટોલ કરો .
2 API સંદર્ભ
45
૨.૧ API સંમેલનો .
૨.૧.૧ ભૂલ સંભાળવી.
2.1.2 Configuration structures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
૨.૧.૩ ખાનગી API .
2.1.4 Components in exampલે પ્રોજેક્ટ્સ .
૨.૧.૫ API સ્થિરતા .
૨.૨ એપ્લિકેશન પ્રોટોકોલ .
2.2.1 ASIO port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
૨.૨.૨ ઇએસપી-મોડબસ .
૨.૨.૩ ઇએસપી-એમક્યુટીટી .
૨.૨.૪ ESP-TLS .
૨.૨.૫ ESP HTTP ક્લાયંટ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ૮૦
2.2.6 ESP Local Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
૨.૨.૭ ESP સીરીયલ સ્લેવ લિંક . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ૧૦૪
2.2.8 ESP x509 Certificate Bundle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
2.2.9 HTTP Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
2.2.10 HTTPS Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
2.2.11 ICMP Echo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 154
2.2.12 mDNS Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
૨.૨.૧૩ એમબેડ ટીએલએસ .
૨.૨.૧૪ IP નેટવર્ક સ્તર . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ૧૬૧
૨.૩ બ્લૂટૂથ API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ૧૬૧
2.3.1 Bluetooth® Common . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
૨.૩.૨ બ્લૂટૂથ® ઓછી ઉર્જા . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ૧૭૧
2.3.3 Bluetooth® Classic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 325
૨.૩.૪ કંટ્રોલર અને એચસીઆઈ .
2.3.5 ESP-BLE-MESH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 485
૨.૩.૬ Nimble-આધારિત હોસ્ટ API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 767
૨.૪ ભૂલ કોડ્સ સંદર્ભ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 769
2.5 Networking APIs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 776
2.5.1 Wi-Fi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 776
૨.૫.૨ ઇથરનેટ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 899
૨.૫.૩ થ્રેડ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ૯૩૬
i
2.5.4 ESP-NETIF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 942 2.5.5 IP Network Layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 974 2.5.6 Application Layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 976 2.6 પેરિફેરલ્સ API. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 977 2.6.1 એનાલોગ ટુ ડિજિટલ કન્વર્ટર (ADC) વનશોટ મોડ ડ્રાઇવર. . . . . . . . . . . . . . . . . 977 2.6.2 Analog to Digital Converter (ADC) Continuous Mode Driver . . . . . . . . . . . . . . . 986 2.6.3 એનાલોગ ટુ ડિજિટલ કન્વર્ટર (ADC) કેલિબ્રેશન ડ્રાઇવર. . . . . . . . . . . . . . . . . . . 993 2.6.4 Clock Tree . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 997 2.6.5 ડિજિટલ ટુ એનાલોગ કન્વર્ટર (DAC). . . . . . . . . . . . . . . . . . . . . . . . . . . . 1004 2.6.6 GPIO & RTC GPIO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1008 2.6.7 General Purpose Timer (GPTimer) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ૧૦૨૭ ૨.૬.૮ ઇન્ટર-ઇન્ટિગ્રેટેડ સર્કિટ (I2C). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1039 2.6.9 Inter-IC Sound (I2S) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ૧૦૫૬ ૨.૬.૧૦ એલસીડી. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1090 2.6.11 LED Control (LEDC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1107 2.6.12 Motor Control Pulse Width Modulator (MCPWM) . . . . . . . . . . . . . . . . . . . . . 1126 2.6.13 Pulse Counter (PCNT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1178 2.6.14 રિમોટ કંટ્રોલ ટ્રાન્સસીવર (RMT). . . . . . . . . . . . . . . . . . . . . . . . . . . . ૧૧૯૩ ૨.૬.૧૫ SD પુલ-અપ આવશ્યકતાઓ. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ૧૨૨૦ ૨.૬.૧૬ SDMMC હોસ્ટ ડ્રાઈવર. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ૧૨૨૩ ૨.૬.૧૭ SD SPI હોસ્ટ ડ્રાઈવર. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1229 2.6.18 SDIO Card Slave Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1234 2.6.19 Sigma-Delta Modulation (SDM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1244 2.6.20 SPI Master Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1249 2.6.21 SPI Slave Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1274 2.6.22 ESP32-WROOM-32SE (Secure Element) . . . . . . . . . . . . . . . . . . . . . . . . . ૧૨૮૧ ૨.૬.૨૩ ટચ સેન્સર. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1282 2.6.24 Two-Wire Automotive Interface (TWAI) . . . . . . . . . . . . . . . . . . . . . . . . . . 1299 2.6.25 Universal Asynchronous Receiver/Transmitter (UART) . . . . . . . . . . . . . . . . . . ૧૩૧૭ ૨.૭ પ્રોજેક્ટ રૂપરેખાંકન. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ૧૫૨ ૫.૧ પરિચય. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ૧૩૪૨ ૨.૭.૨ પ્રોજેક્ટ રૂપરેખાંકન મેનુ. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ૧૩૪૨ ૨.૭.૩ sdkconfig.defaults નો ઉપયોગ કરીને. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1342 2.7.4 Kconfig Formatting Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1343 2.7.5 Backward Compatibility of Kconfig Options . . . . . . . . . . . . . . . . . . . . . . . . ૧૩૪૩ ૨.૭.૬ રૂપરેખાંકન વિકલ્પો સંદર્ભ. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ૧૩૪૩ ૨.૮ પ્રોવિઝનિંગ API. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ૧૬૪૭ ૨.૮.૧ પ્રોટોકોલ કોમ્યુનિકેશન. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1647 2.8.2 Unified Provisioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1665 2.8.3 Wi-Fi Provisioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ૧૬૬૯ ૨.૯ સ્ટોરેજ API. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Filesystem Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1691 2.9.2 Manufacturing Utility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1699 2.9.3 Non-volatile Storage Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1703 2.9.4 NVS Partition Generator Utility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1725 2.9.5 SD/SDIO/MMC Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1730 2.9.6 SPI Flash API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1744 2.9.7 SPIFFS Filesystem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1780 2.9.8 Virtual filesystem component . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1784 2.9.9 Wear Levelling API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1800 2.10 System API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1803 2.10.1 App Image Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1803 2.10.2 Application Level Tracing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1808 2.10.3 Call function with external stack . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1813 2.10.4 Chip Revision . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1815 2.10.5 Console . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1817 2.10.6 eFuse Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1826 2.10.7 Error Codes and Helper Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1846
ii
2.10.8 ESP HTTPS OTA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1849 2.10.9 Event Loop Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1856 2.10.10 FreeRTOS (Overview) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1869 2.10.11 FreeRTOS (ESP-IDF) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1871 2.10.12 FreeRTOS (Supplemental Features) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1988 2.10.13 Heap Memory Allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2008 2.10.14 Heap Memory Debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2021 2.10.15 High Resolution Timer (ESP Timer) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2032 2.10.16 Internal and Unstable APIs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2038 2.10.17 Inter-Processor Call . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2040 2.10.18 Interrupt allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2045 2.10.19 Logging library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2051 2.10.20 Miscellaneous System APIs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2058 2.10.21 Over The Air Updates (OTA) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2073 2.10.22 Performance Monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2084 2.10.23 Power Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2087 2.10.24 POSIX Threads Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2093 2.10.25 Random Number Generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2097 2.10.26 Sleep Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2099 2.10.27 SoC Capabilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2111 2.10.28 System Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2121 2.10.29 The himem allocation API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2126 2.10.30 ULP Coprocessor programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2129 2.10.31 Watchdogs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2161
3 હાર્ડવેર સંદર્ભ
2167
3.1 Chip Series Comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2167
3.1.1 Related Documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2170
4 API Guides
2171
4.1 Application Level Tracing library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2171
4.1.1 ઓવરview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2171
4.1.2 Modes of Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2171
૪.૧.૩ રૂપરેખાંકન વિકલ્પો અને નિર્ભરતાઓ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2172
4.1.4 How to Use This Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2173
4.2 Application Startup Flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2181
4.2.1 પ્રથમ એસtagઇ બુટલોડર .
4.2.2 સેકન્ડ એસtage bootloader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2182
4.2.3 Application startup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2183
૪.૩ બ્લૂટૂથ® ક્લાસિક .
4.3.1 ઓવરview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2184
4.4 Bluetooth® Low Energy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2186
4.4.1 ઓવરview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2186
૪.૪.૨ શરૂઆત કરો.
4.4.3 પ્રોfile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2240
૪.૫ બુટલોડર .
4.5.1 Bootloader compatibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2285
૪.૫.૨ લોગ લેવલ .
4.5.3 Factory reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2286
4.5.4 Boot from Test Firmware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2286
૪.૫.૫ રોલબેક .
4.5.6 Watchdog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2287
4.5.7 Bootloader Size . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2287
૪.૫.૮ ડીપ સ્લીપમાંથી ઝડપી બુટ.
૪.૫.૯ કસ્ટમ બુટલોડર .
૪.૬ બિલ્ડ સિસ્ટમ .
4.6.1 ઓવરview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2288
૪.૬.૨ બિલ્ડ સિસ્ટમનો ઉપયોગ કરીને .
iii
4.6.3 ઉદાample Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2291 4.6.4 Project CMakeLists File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2291 4.6.5 ઘટક CMakeLists Files . ૨૨૯૫ ૪.૬.૮ ઘટક આવશ્યકતાઓ . ૨૩૦૦ ૪.૬.૧૧ ડીબગીંગ સીમેક .ample Component CMakeLists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2301 4.6.13 Custom sdkconfig defaults . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2305 4.6.14 Flash arguments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2305 4.6.15 Building the Bootloader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2306 4.6.16 Writing Pure CMake Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2306 4.6.17 Using Third-Party CMake Projects with Components . . . . . . . . . . . . . . . . . . . 2306 4.6.18 Using Prebuilt Libraries with Components . . . . . . . . . . . . . . . . . . . . . . . . . 2307 4.6.19 Using ESP-IDF in Custom CMake Projects . . . . . . . . . . . . . . . . . . . . . . . . . 2307 4.6.20 ESP-IDF CMake Build System API . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2308 4.6.21 File Globbing & Incremental Builds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2312 4.6.22 Build System Metadata . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2313 4.6.23 Build System Internals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2313 4.6.24 Migrating from ESP-IDF GNU Make System . . . . . . . . . . . . . . . . . . . . . . . 2315 4.7 Core Dump . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2316 4.7.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2316 4.7.2 Configurations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2317 4.7.3 Save core dump to flash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2317 4.7.4 Print core dump to UART . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2318 4.7.5 ROM Functions in Backtraces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2318 4.7.6 Dumping variables on demand . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2318 4.7.7 Running espcoredump.py . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2319 4.8 Deep Sleep Wake Stubs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2322 4.8.1 Rules for Wake Stubs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2322 4.8.2 Implementing A Stub . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2322 4.8.3 Loading Code Into RTC Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2322 4.8.4 Loading Data Into RTC Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2323 4.8.5 CRC Check For Wake Stubs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2323 4.8.6 Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2323 4.9 Error Handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2324 4.9.1 Overview . . . . . . . 2324 4.9.4 ESP_ERROR_CHECK મેક્રો . . . . . 2325 4.9.7 ESP_GOTO_ON_ERROR મેક્રો . . . . . . . . 2325 4.9.10 મેક્રોસ તપાસો એક્સamples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2326 4.9.11 Error handling patterns . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2326 4.9.12 C++ Exceptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2327 4.10 ESP-WIFI-MESH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2327 4.10.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2327 4.10.2 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2328 4.10.3 ESP-WIFI-MESH Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2329 4.10.4 Building a Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2334 4.10.5 Managing a Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2339 4.10.6 Data Transmission . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2342 4.10.7 Channel Switching . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2344
iv
4.10.8 Performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2347 4.10.9 Further Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2348 4.11 Event Handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2348 4.11.1 Wi-Fi, Ethernet, and IP Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2348 4.11.2 Mesh Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2349 4.11.3 Bluetooth Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2350 4.12 Fatal Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2350 4.12.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ૨૩૫૦ ૪.૧૨.૨ પેનિક હેન્ડલર. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2350 4.12.3 Register Dump and Backtrace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ૨૩૫૧ ૪.૧૨.૪ GDB સ્ટબ. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ૨૩૫૩ ૪.૧૨.૫ RTC વોચડોગ સમયસમાપ્તિ. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ૨૩૦૪ ૪.૧૨.૬ ગુરુ ધ્યાન ભૂલો . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ૨૩૦૪ ૪.૧૨.૭ અન્ય ઘાતક ભૂલો. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2356 4.13 Flash Encryption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ૧૫૨ ૫.૧ પરિચય. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2359 4.13.2 Relevant eFuses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2359 4.13.3 ફ્લેશ એન્ક્રિપ્શન પ્રક્રિયા. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2360 4.13.4 Flash Encryption Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ૨૩૬૦ ૪.૧૩.૫ શક્ય નિષ્ફળતાઓ. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2366 4.13.6 ESP32 ફ્લેશ એન્ક્રિપ્શન સ્થિતિ. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2368 4.13.7 Reading and Writing Data in Encrypted Flash . . . . . . . . . . . . . . . . . . . . . . . 2368 4.13.8 એન્ક્રિપ્ટેડ ફ્લેશ અપડેટ કરી રહ્યા છીએ. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2369 4.13.9 ફ્લેશ એન્ક્રિપ્શનને અક્ષમ કરી રહ્યું છે. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2369 4.13.10 ફ્લેશ એન્ક્રિપ્શન વિશે મુખ્ય મુદ્દાઓ. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2370 4.13.11 Limitations of Flash Encryption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2370 4.13.12 Flash Encryption and Secure Boot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ૨૩૭૧ ૪.૧૩.૧૩ અદ્યતન સુવિધાઓ. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ૨૩૭૧ ૪.૧૩.૧૪ ટેકનિકલ વિગતો. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2373 4.14 Hardware Abstraction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ૨૩૭૩ ૪.૧૪.૧ આર્કિટેક્ચર. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2374 4.14.2 LL (Low Level) Layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2375 4.14.3 HAL (Hardware Abstraction Layer) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2376 4.15 High-Level Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ૨૩૭૭ ૪.૧૫.૧ વિક્ષેપ સ્તરો. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ૨૩૭૭ ૪.૧૫.૨ નોંધો. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . TAG Debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2378 4.16.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2378 4.16.2 How it Works? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2379 4.16.3 Selecting JTAG Adapter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2380 4.16.4 Setup of OpenOCD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2380 4.16.5 Configuring ESP32 Target . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2380 4.16.6 Launching Debugger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2386 4.16.7 Debugging Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2386 4.16.8 Building OpenOCD from Sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2386 4.16.9 Tips and Quirks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2391 4.16.10 Related Documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2396 4.17 Linker Script Generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2421 4.17.1 Overview . . . . . . . . . . . . 2424 4.18 lwIP . ૨૪૩૦ ૪.૧૮.૨ BSD સોકેટ્સ API . .
v
4.18.7 Performance Optimization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2438 4.19 Memory Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2439
૪.૧૯.૧ DRAM (ડેટા રેમ) . . . . . . . . . 2441 4.19.4 DROM (ફ્લેશમાં સંગ્રહિત ડેટા) . . . 2443 4.20.3 ઓપનથ્રેડ બોર્ડર રાઉટર .view . . . . . . . . . . . . . . 2445 4.21.4 બાઈનરી પાર્ટીશન ટેબલ જનરેટ કરી રહ્યા છીએ . . . . . . . . . . . . . . . . . . . . 2449 4.21.7 પાર્ટીશન ટૂલ (parttool.py) . . . . . . . . . . . 2468 4.23.1 આંશિક માપાંકન . . ૨૪૬૯ ૪.૨૪ સુરક્ષિત બુટ .view . . . . . . . . . . . . . . . 2474 4.24.5 સુરક્ષિત બુટ કેવી રીતે સક્ષમ કરવું . . . . . . . . . . . 2475 4.24.8 છબીઓનું દૂરસ્થ સહીકરણ . . . . . . . . . . . . . . . . . . . . . . . . . 2476 4.24.11 સુરક્ષિત બુટ અને ફ્લેશ એન્ક્રિપ્શન . . . . . . . . . . . 2478 4.25 સિક્યોર બૂટ V2 .tages . . . . . . . . . . . . 2480 4.25.5 સુરક્ષિત પેડિંગ . . 2481 4.25.10 સિક્યોર બૂટ V2 કેવી રીતે સક્ષમ કરવું . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2481 4.25.11 સિક્યોર બૂટ સક્ષમ થયા પછી પ્રતિબંધો .
vi
૪.૨૫.૧૩ છબીઓનું રિમોટ સાઇનિંગ . . . . . . . . . . . 2484 4.25.16 સુરક્ષિત બુટ અને ફ્લેશ એન્ક્રિપ્શન . . 2485 4.26 બાહ્ય RAM માટે સપોર્ટ . . ૨૪૮૭ ૪.૨૬.૫ શરૂ કરવામાં નિષ્ફળતા. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2488 4.27.1 ઓવરview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2488 4.27.2 FreeRTOS Native API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2489 4.27.3 Pthread API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2489 4.27.4 C11 Standard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2489 4.28 Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2489 4.28.1 IDF Frontend – idf.py . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2489 4.28.2 IDF Docker Image . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2493 4.28.3 IDF Windows Installer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2495 4.28.4 IDF Component Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2496 4.28.5 IDF Clang Tidy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2497 4.28.6 Downloadable Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2498 4.29 Unit Testing in ESP32 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2512 4.29.1 Normal Test Cases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2512 4.29.2 Multi-device Test Cases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2513 4.29.3 Multi-stage Test Cases . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2514 4.29.4 Tests For Different Targets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2514 4.29.5 Building Unit Test App . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2515 4.29.6 Running Unit Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2515 4.29.7 Timing Code with Cache Compensated Timer . . . . . . . . . . . . . . . . . . . . . . . 2516 4.29.8 મોક્સ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2517 4.30 Unit Testing on Linux . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2519 4.30.1 એમ્બેડેડ સોફ્ટવેર ટેસ્ટ. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2519 4.30.2 Linux હોસ્ટ પર IDF યુનિટ ટેસ્ટ. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2520 4.31 Wi-Fi Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2521 4.31.1 ESP32 Wi-Fi ફીચર લિસ્ટ. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2521 4.31.2 Wi-Fi એપ્લિકેશન કેવી રીતે લખવી. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2521 4.31.3 ESP32 Wi-Fi API Error Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2522 4.31.4 ESP32 Wi-Fi API પેરામીટર ઇનિશિયલાઇઝેશન. . . . . . . . . . . . . . . . . . . . . . . . . 2522 4.31.5 ESP32 Wi-Fi પ્રોગ્રામિંગ મોડેલ. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2522 4.31.6 ESP32 Wi-Fi Event Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2523 4.31.7 ESP32 Wi-Fi સ્ટેશન સામાન્ય દૃશ્ય . . . . . . . . . . . . . . . . . . . . . . . . . . . 2526 4.31.8 ESP32 Wi-Fi AP General Scenario . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2529 4.31.9 ESP32 વાઇ-ફાઇ સ્કેન. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2529 4.31.10 ESP32 Wi-Fi સ્ટેશન કનેક્ટિંગ દૃશ્ય. . . . . . . . . . . . . . . . . . . . . . . . . 2536 4.31.11 ESP32 Wi-Fi Station Connecting When Multiple APs Are Found . . . . . . . . . . . . . 2543 4.31.12 Wi-Fi Reconnect . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2543 4.31.13 Wi-Fi બીકન સમયસમાપ્તિ. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2543 4.31.14 ESP32 Wi-Fi ગોઠવણી. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2543 4.31.15 Wi-Fi Easy ConnectTM (DPP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2549 4.31.16 Wireless Network Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2549 4.31.17 રેડિયો રિસોર્સ મેઝરમેન્ટ. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2549 4.31.18 Fast BSS Transition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2550 4.31.19 ESP32 Wi-Fi પાવર-સેવિંગ મોડ. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2550 4.31.20 ESP32 વાઇ-ફાઇ થ્રુપુટ. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
vii
4.31.21 Wi-Fi 80211 Packet Send . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2552 4.31.22 Wi-Fi Sniffer Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2554 4.31.23 Wi-Fi Multiple Antennas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2554 4.31.24 Wi-Fi Channel State Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2556 4.31.25 Wi-Fi Channel State Information Configure . . . . . . . . . . . . . . . . . . . . . . . . . 2557 4.31.26 Wi-Fi HT20/40 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2557 4.31.27 Wi-Fi QoS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2557 4.31.28 Wi-Fi AMSDU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2558 4.31.29 Wi-Fi Fragment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2558 4.31.30 WPS Enrollee . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2558 4.31.31 Wi-Fi Buffer Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2558 4.31.32 How to Improve Wi-Fi Performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2559 4.31.33 Wi-Fi Menuconfig . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2562 4.31.34 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2565 4.32 Wi-Fi Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2568 4.32.1 ESP32 Wi-Fi Security Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2568 4.32.2 Protected Management Frames (PMF) . . . . . . . . . . . . . . . . . . . . . . . . . . . 2571 4.32.3 WiFi Enterprise . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2572 4.32.4 WPA3-Personal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2572 4.32.5 Wi-Fi Enhanced OpenTM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2573 4.33 RF Coexistence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2573 4.33.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2574 4.33.2 Supported Coexistence Scenario for ESP32 . . . . . . . . . . . . . . . . . . . . . . . . . 2574 4.33.3 Coexistence Mechanism and Policy . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2574 4.33.4 How to Use the Coexistence Feature . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2576 4.34 Reproducible Builds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2577 4.34.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2577 4.34.2 Reasons for non-reproducible builds . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2577 4.34.3 Enabling reproducible builds in ESP-IDF . . . . . . . . . . . . . . . . . . . . . . . . . . 2577 4.34.4 How reproducible builds are achieved . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2578 4.34.5 Reproducible builds and debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2578 4.34.6 Factors which still affect reproducible builds . . . . . . . . . . . . . . . . . . . . . . . . 2578 4.35 Low Power Mode User Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2578
૫ સ્થળાંતર માર્ગદર્શિકાઓ
2579
૫.૧ ESP-IDF ૫.x સ્થળાંતર માર્ગદર્શિકા .
5.1.1 Migration from 4.4 to 5.0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2579
૬ પુસ્તકાલયો અને માળખા
2611
6.1 Cloud Frameworks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2611
૬.૧.૧ ઇએસપી રેઈનમેકર .
6.1.2 AWS IoT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2611
૬.૧.૩ એઝ્યોર આઇઓટી .
૬.૧.૪ ગુગલ આઇઓટી કોર .
6.1.5 અલીયુન આઇઓટી . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2611
૬.૧.૬ જોયલિંક આઇઓટી .
6.1.7 Tencent IoT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2612
૬.૧.૮ ટેન્સેન્ટ્યુન આઇઓટી .
૬.૧.૯ બાયડુ આઇઓટી .
6.2 Espressifns Frameworks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2612
૬.૨.૧ એસ્પ્રેસિફ ઓડિયો ડેવલપમેન્ટ ફ્રેમવર્ક .
6.2.2 ESP-CSI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2612
6.2.3 Espressif DSP Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2612
૬.૨.૪ ઇએસપી-વાઇફાઇ-મેશ ડેવલપમેન્ટ ફ્રેમવર્ક .
6.2.5 ESP-WHO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2613
૬.૧.૧ ઇએસપી રેઈનમેકર .
૬.૨.૭ ESP-IoT-સોલ્યુશન .
૬.૨.૮ ઇએસપી-પ્રોટોકોલ્સ .
viii
૬.૨.૯ ઇએસપી-બીએસપી .
7 યોગદાન માર્ગદર્શિકા
2615
7.1 How to Contribute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2615
૭.૨ ફાળો આપતા પહેલા .
૭.૩ પુલ રિક્વેસ્ટ પ્રક્રિયા .
૭.૪ કાનૂની ભાગ .
7.5 Related Documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2616
૭.૫.૧ એસ્પ્રેસિફ આઇઓટી ડેવલપમેન્ટ ફ્રેમવર્ક સ્ટાઇલ ગાઇડ .
7.5.2 Install pre-commit Hook for ESP-IDF Project . . . . . . . . . . . . . . . . . . . . . . . 2623
૭.૫.૩ દસ્તાવેજીકરણ કોડ .
૭.૫.૪ એક્સ બનાવવુંampલેસ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2629
૭.૫.૫ API દસ્તાવેજીકરણ નમૂનો .
૭.૫.૬ ફાળો આપનાર કરાર .
7.5.7 Copyright Header Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2634
૭.૫.૮ પાયટેસ્ટ માર્ગદર્શિકા સાથે ESP-IDF પરીક્ષણો .
8 ESP-IDF આવૃત્તિઓ
2645
૮.૧ રિલીઝ .
૮.૨ મારે કયા સંસ્કરણથી શરૂઆત કરવી જોઈએ? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2645
૮.૩ વર્ઝનિંગ સ્કીમ .
8.4 Support Periods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2646
૮.૫ વર્તમાન સંસ્કરણ તપાસી રહ્યું છે .
૮.૬ ગિટ વર્કફ્લો .
૮.૭ ESP-IDF અપડેટ કરી રહ્યું છે .
8.7.1 Updating to Stable Release . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2649
૮.૭.૨ પ્રી-રીલીઝ વર્ઝનમાં અપડેટ કરી રહ્યું છે. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2649
8.7.3 Updating to Master Branch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2649
૮.૭.૪ રિલીઝ શાખામાં અપડેટ કરવું.
9 સંસાધનો
2651
૯.૧ પ્લેટફોર્મઆઈઓ .
૯.૧.૧ પ્લેટફોર્મઆઈઓ શું છે? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2651
૯.૧.૨ સ્થાપન .
9.1.3 Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2652
૯.૧.૪ ટ્યુટોરિયલ્સ .
9.1.5 Project Exampલેસ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2652
9.1.6 Next Steps . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2652
૯.૨ ઉપયોગી લિંક્સ .
૧૦ કોપીરાઈટ્સ અને લાઇસન્સ
2653
૧૦.૧ સોફ્ટવેર કોપીરાઈટ્સ .
10.1.1 Firmware Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2653
10.1.2 Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2654
૧૦.૨ રોમ સોર્સ કોડ કોપીરાઇટ્સ .
10.3 Xtensa libhal MIT લાયસન્સ. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2655
10.4 TinyBasic Plus MIT License . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2655
૧૦.૫ TJpgDec લાઇસન્સ .
11 વિશે
2657
૧૨ ભાષાઓ વચ્ચે સ્વિચ કરો
2659
અનુક્રમણિકા
2661
અનુક્રમણિકા
2661
ix
x
સામગ્રીઓનું કોષ્ટક
આ Espressif IoT ડેવલપમેન્ટ ફ્રેમવર્ક (esp-idf) માટેનું દસ્તાવેજીકરણ છે. ESP-IDF એ ESP32, ESP32-S અને ESP32-C સિરીઝ SoC માટેનું સત્તાવાર વિકાસ માળખું છે. આ દસ્તાવેજ ESP32 SoC સાથે ESP-IDF નો ઉપયોગ કેવી રીતે કરવો તેનું વર્ણન કરે છે.
પ્રારંભ કરો
API સંદર્ભ
API માર્ગદર્શિકાઓ
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
સામગ્રીઓનું કોષ્ટક
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ 1
પ્રારંભ કરો
આ દસ્તાવેજ તમને Espressif દ્વારા ESP32 ચિપ પર આધારિત હાર્ડવેર માટે સોફ્ટવેર ડેવલપમેન્ટ વાતાવરણ સેટ કરવામાં મદદ કરવા માટે છે. તે પછી, એક સરળ ઉદાહરણample will show you how to use ESP-IDF (Espressif IoT Development Framework) for menu configuration, then for building and flashing firmware onto an ESP32 board.
Note: This is documentation for stable version v5.0.9 of ESP-IDF. Other ESP-IDF Versions are also available.
1.1 પરિચય
ESP32 is a system on a chip that integrates the following features: · Wi-Fi (2.4 GHz band) · Bluetooth · Dual high performance Xtensa® 32-bit LX6 CPU cores · Ultra Low Power co-processor · Multiple peripherals
40 nm ટેકનોલોજી દ્વારા સંચાલિત, ESP32 એક મજબૂત, ઉચ્ચ સંકલિત પ્લેટફોર્મ પૂરું પાડે છે, જે કાર્યક્ષમ પાવર વપરાશ, કોમ્પેક્ટ ડિઝાઇન, સુરક્ષા, ઉચ્ચ પ્રદર્શન અને વિશ્વસનીયતા માટેની સતત માંગને પૂર્ણ કરવામાં મદદ કરે છે. Espressif ESP32 શ્રેણીના હાર્ડવેરનો ઉપયોગ કરીને એપ્લિકેશન ડેવલપર્સને તેમના વિચારોને સાકાર કરવામાં મદદ કરવા માટે મૂળભૂત હાર્ડવેર અને સોફ્ટવેર સંસાધનો પૂરા પાડે છે. Espressif દ્વારા સોફ્ટવેર ડેવલપમેન્ટ ફ્રેમવર્ક Wi-Fi, બ્લૂટૂથ, પાવર મેનેજમેન્ટ અને અન્ય ઘણી સિસ્ટમ સુવિધાઓ સાથે ઇન્ટરનેટ ઓફ-થિંગ્સ (IoT) એપ્લિકેશનોના વિકાસ માટે બનાવાયેલ છે.
1.2 તમને શું જોઈએ છે
1.2.1 હાર્ડવેર
· ESP32 બોર્ડ. · USB કેબલ - USB A / માઇક્રો USB B. · Windows, Linux, અથવા macOS ચલાવતું કમ્પ્યુટર.
નોંધ: હાલમાં, કેટલાક ડેવલપમેન્ટ બોર્ડ USB ટાઇપ C કનેક્ટર્સનો ઉપયોગ કરી રહ્યા છે. ખાતરી કરો કે તમારી પાસે તમારા બોર્ડને કનેક્ટ કરવા માટે યોગ્ય કેબલ છે!
If you have one of ESP32 official development boards listed below, you can click on the link to learn more about the hardware.
3
પ્રકરણ ૧. શરૂઆત કરો
ESP32-DevKitS(-R)
This user guide provides information on ESP32-DevKitS(-R), an ESP32-based flashing board produced by Espressif. ESP32-DevKitS(-R) is a combination of two board names: ESP32-DevKitS and ESP32-DevKitS-R. S stands for springs, and R stands for WROVER.
ESP32-DevKitS
ESP32-DevKitS-R
દસ્તાવેજમાં નીચેના મુખ્ય વિભાગો શામેલ છે: · શરૂઆત કરવી: ઓવર પૂરી પાડે છેview ESP32-DevKitS(-R) અને હાર્ડવેર/સોફ્ટવેર સેટઅપ સૂચનાઓ શરૂ કરવા માટે. · હાર્ડવેર સંદર્ભ: ESP32-DevKitS(-R)ns હાર્ડવેર વિશે વધુ વિગતવાર માહિતી પ્રદાન કરે છે. · સંબંધિત દસ્તાવેજો: સંબંધિત દસ્તાવેજોની લિંક્સ આપે છે.
Getting Started This section describes how to get started with ESP32-DevKitS(-R). It begins with a few introductory sections about ESP32-DevKitS(-R), then Section How to Flash a Board provides instructions on how to mount a module onto ESP32-DevKitS(-R), get it ready, and flash firmware onto it.
ઉપરview ESP32-DevKitS(-R) is Espressifns flashing board designed specifically for ESP32. It can be used to flash an ESP32 module without soldering the module to the power supply and signal lines. With a module mounted, ESP32-DevKitS(-R) can also be used as a mini development board like ESP32-DevKitC.
ESP32-DevKitS and ESP32-DevKitS-R boards vary only in layout of spring pins to fit the following ESP32 modules.
· ESP32-DevKitS: ESP32-WROOM-32 ESP32-WROOM-32D ESP32-WROOM-32U ESP32-SOLO-1 ESP32-WROOM-32E ESP32-WROOM-32UE
· ESP32-DevKitS-R: ESP32-WROVER (PCB અને IPEX) ESP32-WROVER-B (PCB અને IPEX) ESP32-WROVER-E ESP32-WROVER-IE
ઉપરોક્ત મોડ્યુલો વિશે માહિતી માટે, કૃપા કરીને ESP32 શ્રેણી મોડ્યુલોનો સંદર્ભ લો.
ઘટકોનું વર્ણન
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ ૧. શરૂઆત કરો
આકૃતિ 1: ESP32-DevKitS – આગળ
એસ્પ્રેસિફ સિસ્ટમ્સ
Fig. 2: ESP32-DevKitS-R – front 5
દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ ૧. શરૂઆત કરો
કી કમ્પોનન્ટ સ્પ્રિંગ પિન 2.54 મીમી ફીમેલ હેડર્સ
USB-ટુ-UART બ્રિજ LDO માઇક્રો-USB કનેક્ટર/માઇક્રો USB પોર્ટ EN બટન બુટ બટન
પાવર ઓન એલઈડી
Description Click the module in. The pins will fit into the modulens castellated holes. These female headers are connected to pins of the module mounted on this board. For description of female headers, please refer to Header Blocks. Single-chip USB to UART bridge provides transfer rates of up to 3 Mbps.
5V-to-3.3V low-dropout voltage regulator (LDO).
USB interface. Power supply for the board as well as the communication interface between a computer and the board.
રીસેટ બટન.
ડાઉનલોડ બટન. Boot દબાવી રાખીને અને પછી EN દબાવવાથી સીરીયલ પોર્ટ દ્વારા ફર્મવેર ડાઉનલોડ કરવા માટે ફર્મવેર ડાઉનલોડ મોડ શરૂ થાય છે.
જ્યારે USB અથવા પાવર સપ્લાય બોર્ડ સાથે જોડાયેલ હોય ત્યારે ચાલુ થાય છે.
How to Flash a Board Before powering up your ESP32-DevKitS(-R), please make sure that it is in good condition with no obvious signs of damage.
જરૂરી હાર્ડવેર · તમારી પસંદગીનું ESP32 મોડ્યુલ · USB 2.0 કેબલ (સ્ટાન્ડર્ડ-A થી માઇક્રો-B) · વિન્ડોઝ, લિનક્સ અથવા macOS ચલાવતું કમ્પ્યુટર
Hardware Setup Please mount a module of your choice onto your ESP32-DevKitS(-R) according to the following steps:
· Gently put your module on the ESP32-DevKitS(-R) board. Make sure that castellated holes on your module are aligned with spring pins on the board.
· Press your module down into the board until it clicks. · Check whether all spring pins are inserted into castellated holes. If there are some misaligned spring pins,
તેમને ટ્વીઝર વડે કાસ્ટલેટેડ છિદ્રોમાં મૂકો.
સ Softwareફ્ટવેર સેટઅપ
પસંદગીની પદ્ધતિ ESP-IDF ડેવલપમેન્ટ ફ્રેમવર્ક ESP32-DevKitS(-R) પર બાઈનરી ફ્લેશ કરવાની પસંદગીની રીત પૂરી પાડે છે. કૃપા કરીને પ્રારંભ કરો પર આગળ વધો, જ્યાં વિભાગ ઇન્સ્ટોલેશન તમને વિકાસ વાતાવરણ સેટ કરવામાં ઝડપથી મદદ કરશે અને પછી એપ્લિકેશનને ફ્લેશ કરશે.ampતમારા ESP32-DevKitS(-R) પર le.
Alternative Method As an alternative, Windows users can flash binaries using the Flash Download Tool. Just download it, unzip it, and follow the instructions inside the doc folder.
નોંધ: ૧. બાઈનરી ફ્લેશ કરવા માટે files, ESP32 ને ફર્મવેર ડાઉનલોડ મોડ પર સેટ કરવું જોઈએ. આ ફ્લેશ ટૂલ દ્વારા આપમેળે કરી શકાય છે, અથવા બુટ બટન દબાવીને અને EN બટન ટેપ કરીને કરી શકાય છે. 2. બાઈનરી ફ્લેશ કર્યા પછી files, the Flash Download Tool restarts your ESP32 module and boots the flashed application by default.
Board Dimensions Contents and Packaging
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
Chapter 1. Get Started Fig. 3: ESP32-DevKitS board dimensions – back
એસ્પ્રેસિફ સિસ્ટમ્સ
આકૃતિ 4: ESP32-DevKitS-R બોર્ડના પરિમાણો - પાછળ 7
દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ ૧. શરૂઆત કરો
Retail orders If you order a few samples, each ESP32-DevKitS(-R) comes in an individual package in either antistatic bag or any packaging depending on a retailer. For retail orders, please go to https://www.espressif.com/en/contact-us/get-sampલેસ
Wholesale Orders If you order in bulk, the boards come in large cardboard boxes. For wholesale orders, please go to https://www.espressif.com/en/contact-us/sales-questions.
હાર્ડવેર સંદર્ભ
બ્લોક ડાયાગ્રામ નીચે આપેલ બ્લોક ડાયાગ્રામ ESP32-DevKitS(-R) ના ઘટકો અને તેમના આંતરજોડાણો દર્શાવે છે.
Fig. 5: ESP32-DevKitS(-R) (click to enlarge)
પાવર સપ્લાય વિકલ્પો બોર્ડને પાવર પૂરો પાડવા માટે ત્રણ પરસ્પર વિશિષ્ટ રીતો છે: · માઇક્રો USB પોર્ટ, ડિફોલ્ટ પાવર સપ્લાય · 5V અને GND હેડર પિન · 3V3 અને GND હેડર પિન
It is advised to use the first option: micro USB port.
એસ્પ્રેસિફ સિસ્ટમ્સ
.
લેબલ સિગ્નલ
L1 3V3 VDD 3V3
L2 EN CHIP_PU
L3 VP SENSOR_VP
L4 VN સેન્સર_VN
L5 34
જીપીઆઈઓ 34
L6 35
જીપીઆઈઓ 35
L7 32
જીપીઆઈઓ 32
L8 33
જીપીઆઈઓ 33
continues on next page
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ ૧. શરૂઆત કરો
કોષ્ટક 1 પાછલા પૃષ્ઠથી ચાલુ છે
.
લેબલ સિગ્નલ
L9 25
જીપીઆઈઓ 25
L10 26
જીપીઆઈઓ 26
L11 27
જીપીઆઈઓ 27
L12 14
જીપીઆઈઓ 14
L13 12
જીપીઆઈઓ 12
L14 GND GND
L15 13
જીપીઆઈઓ 13
L16 D2 SD_DATA2
L17 D3 SD_DATA3
L18 CMD SD_CMD
L19 5V
બાહ્ય 5V
આર૧ જીએનડી જીએનડી
R2 23
જીપીઆઈઓ 23
R3 22
જીપીઆઈઓ 22
R4 TX U0TXD
આર5 આરએક્સ યુ0આરએક્સડી
R6 21
જીપીઆઈઓ 21
આર૧ જીએનડી જીએનડી
R8 19
જીપીઆઈઓ 19
R9 18
જીપીઆઈઓ 18
R10 5
જીપીઆઈઓ 5
R11 17
જીપીઆઈઓ 17
R12 16
જીપીઆઈઓ 16
R13 4
જીપીઆઈઓ 4
R14 0
જીપીઆઈઓ 0
R15 2
જીપીઆઈઓ 2
R16 15
જીપીઆઈઓ 15
R17 D1 SD_DATA1
R18 D0 SD_DATA0
R19 CLK SD_CLK ની કીવર્ડ્સ
હેડર બ્લોક્સ હેડર બ્લોક્સની છબી માટે, કૃપા કરીને ઘટકોનું વર્ણન જુઓ.
સંબંધિત દસ્તાવેજો
· ESP32-DevKitS(-R) સ્કીમેટિક્સ (PDF) · ESP32 ડેટાશીટ (PDF) · ESP32-WROOM-32 ડેટાશીટ (PDF) · ESP32-WROOM-32D અને ESP32-WROOM-32U ડેટાશીટ (PDF) · ESP32-SOLO-1 ડેટાશીટ (PDF) · ESP32-WROVER ડેટાશીટ (PDF) · ESP32-WROVER-B ડેટાશીટ (PDF) · ESP પ્રોડક્ટ સિલેક્ટર
ESP32-DevKitM-1
આ વપરાશકર્તા માર્ગદર્શિકા તમને ESP32-DevKitM-1 સાથે શરૂઆત કરવામાં મદદ કરશે અને વધુ ઊંડાણપૂર્વકની માહિતી પણ પ્રદાન કરશે.
ESP32-DevKitM-1 is an ESP32-MINI-1(1U)-based development board produced by Espressif. Most of the I/O pins are broken out to the pin headers on both sides for easy interfacing. Users can either connect peripherals with jumper wires or mount ESP32-DevKitM-1 on a breadboard.
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ ૧. શરૂઆત કરો
ESP32-DevKitM-1 – આગળ
ESP32-DevKitM-1 – આઇસોમેટ્રિક
The document consists of the following major sections: · Getting started: Provides an overview શરૂ કરવા માટે ESP32-DevKitM-1 અને હાર્ડવેર/સોફ્ટવેર સેટઅપ સૂચનાઓ. · હાર્ડવેર સંદર્ભ: ESP32-DevKitM-1ns હાર્ડવેર વિશે વધુ વિગતવાર માહિતી પ્રદાન કરે છે. · સંબંધિત દસ્તાવેજો: સંબંધિત દસ્તાવેજોની લિંક્સ આપે છે.
શરૂઆત આ વિભાગ ESP32-DevKitM-1 સાથે કેવી રીતે શરૂઆત કરવી તેનું વર્ણન કરે છે. તે ESP32-DevKitM-1 વિશેના કેટલાક પ્રારંભિક વિભાગોથી શરૂ થાય છે, પછી વિભાગ સ્ટાર્ટ એપ્લિકેશન ડેવલપમેન્ટ પ્રારંભિક હાર્ડવેર સેટઅપ કેવી રીતે કરવું અને પછી ESP32-DevKitM-1 પર ફર્મવેર કેવી રીતે ફ્લેશ કરવું તે અંગે સૂચનાઓ પ્રદાન કરે છે.
ઉપરview આ એક નાનું અને અનુકૂળ વિકાસ બોર્ડ છે જે લક્ષણો ધરાવે છે:
· ESP32-MINI-1, or ESP32-MINI-1U module · USB-to-serial programming interface that also provides power supply for the board · pin headers · pushbuttons for reset and activation of Firmware Download mode · a few other components
સામગ્રી અને પેકેજિંગ
Retail orders If you order a few samples, each ESP32-DevKitM-1 comes in an individual package in either antistatic bag or any packaging depending on your retailer.
For retail orders, please go to https://www.espressif.com/en/contact-us/get-sampલેસ
Wholesale Orders If you order in bulk, the boards come in large cardboard boxes. For wholesale orders, please go to https://www.espressif.com/en/contact-us/sales-questions.
ઘટકોનું વર્ણન નીચે આપેલ આકૃતિ અને નીચે આપેલ કોષ્ટક ESP32-DevKitM-1 બોર્ડના મુખ્ય ઘટકો, ઇન્ટરફેસ અને નિયંત્રણોનું વર્ણન કરે છે. આપણે ESP32-MINI-1 મોડ્યુલવાળા બોર્ડને એક ઉદાહરણ તરીકે લઈએ છીએ.ampનીચેના વિભાગોમાં le.
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ ૧. શરૂઆત કરો
Fig. 6: ESP32-DevKitM-1 – front
Key Component On-board module
5 V to 3.3 V LDO Boot Button
Reset Button Micro-USB Port
USB-ટુ-UART બ્રિજ 3.3 V પાવર ઓન LED
I/O કનેક્ટર
વર્ણન
ESP32-MINI-1 module or ESP32-MINI-1U module. ESP32-MINI-1 comes with an on-board PCB antenna. ESP32-MINI-1U comes with an external antenna connector. The two modules both have a 4 MB flash in chip package. For details, please see ESP32-MINI-1 & ESP32-MINI-1U Datasheet.
પાવર રેગ્યુલેટર 5 V ને 3.3 V માં રૂપાંતરિત કરે છે.
Download button. Holding down Boot and then pressing Reset initiates Firmware Download mode for downloading firmware through the serial port.
રીસેટ બટન
યુએસબી ઈન્ટરફેસ. બોર્ડ માટે પાવર સપ્લાય તેમજ કોમ્પ્યુટર અને ESP32 ચિપ વચ્ચે કોમ્યુનિકેશન ઈન્ટરફેસ.
સિંગલ USB-UART બ્રિજ ચિપ 3 Mbps સુધીના ટ્રાન્સફર રેટ પ્રદાન કરે છે.
Turns on when the USB is connected to the board. For details, please see the schematics in Related Documents. All available GPIO pins (except for the SPI bus for flash) are broken out to the pin headers on the board. Users can program ESP32 chip to enable multiple functions.
Start Application Development Before powering up your ESP32-DevKitM-1, please make sure that it is in good condition with no obvious signs of damage.
જરૂરી હાર્ડવેર · ESP32-DevKitM-1 · USB 2.0 કેબલ (સ્ટાન્ડર્ડ-A થી માઇક્રો-B) · વિન્ડોઝ, લિનક્સ અથવા macOS ચલાવતું કમ્પ્યુટર
સોફ્ટવેર સેટઅપ કૃપા કરીને શરૂઆત પર આગળ વધો, જ્યાં વિભાગ ઇન્સ્ટોલેશન તમને વિકાસ વાતાવરણ સેટ કરવામાં ઝડપથી મદદ કરશે અને પછી એપ્લિકેશનને ફ્લેશ કરશે.ampતમારા ESP32-DevKitM-1 પર જાઓ.
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ ૧. શરૂઆત કરો
ધ્યાન આપો: 2 ડિસેમ્બર, 2021 પહેલા બનાવેલા ESP32-DevKitM-1 બોર્ડમાં સિંગલ કોર મોડ્યુલ ઇન્સ્ટોલ કરેલું છે. તમારી પાસે કયું મોડ્યુલ છે તે ચકાસવા માટે, કૃપા કરીને PCN-2021-021 માં મોડ્યુલ માર્કિંગ માહિતી તપાસો. જો તમારા બોર્ડમાં સિંગલ કોર મોડ્યુલ ઇન્સ્ટોલ કરેલું છે, તો કૃપા કરીને તમારી એપ્લિકેશનોને ફ્લેશ કરતા પહેલા મેનુકોન્ફિગમાં સિંગલ કોર મોડ (CONFIG_FREERTOS_UNICORE) સક્ષમ કરો.
હાર્ડવેર રેફરન્સ બ્લોક ડાયાગ્રામ નીચે આપેલ બ્લોક ડાયાગ્રામ ESP32-DevKitM-1 ના ઘટકો અને તેમના ઇન્ટરકનેક્શન્સ દર્શાવે છે.
Fig. 7: ESP32-DevKitM-1
પાવર સોર્સ પસંદ કરો બોર્ડને પાવર પૂરો પાડવા માટે ત્રણ પરસ્પર વિશિષ્ટ રીતો છે: · માઇક્રો USB પોર્ટ, ડિફોલ્ટ પાવર સપ્લાય · 5V અને GND હેડર પિન · 3V3 અને GND હેડર પિન
ચેતવણી: · ઉપરોક્ત વિકલ્પોમાંથી ફક્ત એક જ વિકલ્પનો ઉપયોગ કરીને વીજ પુરવઠો પૂરો પાડવો આવશ્યક છે, નહીં તો બોર્ડ અને/અથવા વીજ પુરવઠા સ્ત્રોતને નુકસાન થઈ શકે છે. · માઇક્રો USB પોર્ટ દ્વારા વીજ પુરવઠો આપવાની ભલામણ કરવામાં આવે છે.
Pin Descriptions The table below provides the Name and Function of pins on both sides of the board. For peripheral pin configurations, please refer to ESP32 Datasheet.
ના.
નામ
પ્રકાર
1
જીએનડી
P
2
3V3
P
કાર્ય ગ્રાઉન્ડ 3.3 V પાવર સપ્લાય
continues on next page
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ ૧. શરૂઆત કરો
કોષ્ટક 2 પાછલા પૃષ્ઠથી ચાલુ છે
ના.
નામ
પ્રકાર
કાર્ય
3
I36
I
GPIO36, ADC1_CH0, RTC_GPIO0
4
I37
I
GPIO37, ADC1_CH1, RTC_GPIO1
5
I38
I
GPIO38, ADC1_CH2, RTC_GPIO2
6
I39
I
GPIO39, ADC1_CH3, RTC_GPIO3
7
આરએસટી
I
રીસેટ કરો; ઉચ્ચ: સક્ષમ કરો; નીચું: પાવર બંધ
8
I34
I
GPIO34, ADC1_CH6, RTC_GPIO4
9
I35
I
GPIO35, ADC1_CH7, RTC_GPIO5
10
IO32
I/O
GPIO32, XTAL_32K_P (32.768 kHz crystal oscillator input),
ADC1_CH4, TOUCH9, RTC_GPIO9
11
IO33
I/O
GPIO33, XTAL_32K_N (32.768 kHz ક્રિસ્ટલ ઓસિલેટર આઉટપુટ),
ADC1_CH5, TOUCH8, RTC_GPIO8
12
IO25
I/O
GPIO25, DAC_1, ADC2_CH8, RTC_GPIO6, EMAC_RXD0
13
IO26
I/O
GPIO26, DAC_2, ADC2_CH9, RTC_GPIO7, EMAC_RXD1
14
IO27
I/O
GPIO27, ADC2_CH7, TOUCH7, RTC_GPIO17, EMAC_RX_DV
15
IO14
I/O
GPIO14, ADC2_CH6, TOUCH6, RTC_GPIO16, MTMS, HSPICLK,
HS2_CLK, SD_CLK, EMAC_TXD2
16
5V
P
5 વી પાવર સપ્લાય
17
IO12
I/O
GPIO12, ADC2_CH5, TOUCH5, RTC_GPIO15, MTDI, HSPIQ,
HS2_DATA2, SD_DATA2, EMAC_TXD3
18
IO13
I/O
GPIO13, ADC2_CH4, TOUCH4, RTC_GPIO14, MTCK, HSPID,
HS2_DATA3, SD_DATA3, EMAC_RX_ER
19
IO15
I/O
GPIO15, ADC2_CH3, TOUCH3, RTC_GPIO13, MTDO, HSPICS0,
HS2_CMD, SD_CMD, EMAC_RXD3
20
IO2
I/O
GPIO2, ADC2_CH2, TOUCH2, RTC_GPIO12, HSPIWP,
HS2_DATA0, SD_DATA0
21
IO0
I/O
GPIO0, ADC2_CH1, TOUCH1, RTC_GPIO11, CLK_OUT1,
EMAC_TX_CLK
22
IO4
I/O
GPIO4, ADC2_CH0, TOUCH0, RTC_GPIO10, HSPIHD,
HS2_DATA1, SD_DATA1, EMAC_TX_ER
23
IO9
I/O
GPIO9, HS1_DATA2, U1RXD, SD_DATA2
24
IO10
I/O
GPIO10, HS1_DATA3, U1TXD, SD_DATA3
25
IO5
I/O
GPIO5, HS1_DATA6, VSPICS0, EMAC_RX_CLK
26
IO18
I/O
GPIO18, HS1_DATA7, VSPICLK
27
IO23
I/O
GPIO23, HS1_STROBE, VSPID
28
IO19
I/O
GPIO19, VSPIQ, U0CTS, EMAC_TXD0
29
IO22
I/O
GPIO22, VSPIWP, U0RTS, EMAC_TXD1
30
IO21
I/O
GPIO21, VSPIHD, EMAC_TX_EN
31
TXD0
I/O
GPIO1, U0TXD, CLK_OUT3, EMAC_RXD2
32
આરએક્સડી 0
I/O
GPIO3, U0RXD, CLK_OUT2
હાર્ડવેર પુનરાવર્તન વિગતો કોઈ પાછલા સંસ્કરણો ઉપલબ્ધ નથી.
સંબંધિત દસ્તાવેજો
· ESP32-MINI-1 & ESP32-MINI-1U Datasheet (PDF) · ESP32-DevKitM-1 Schematics (PDF) · ESP32-DevKitM-1 PCB layout (PDF) · ESP32-DevKitM-1 layout (DXF) – You can view it with Autodesk Viewઓનલાઇન · ESP32 ડેટાશીટ (PDF) · ESP પ્રોડક્ટ સિલેક્ટર
બોર્ડ માટે અન્ય ડિઝાઇન દસ્તાવેજો માટે, કૃપા કરીને sales@espressif.com પર અમારો સંપર્ક કરો.
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ ૧. શરૂઆત કરો
1.2.2 સ .ફ્ટવેર
To start using ESP-IDF on ESP32, install the following software: · Toolchain to compile code for ESP32 · Build tools – CMake and Ninja to build a full Application for ESP32 · ESP-IDF that essentially contains API (software libraries and source code) for ESP32 and scripts to operate the Toolchain
1.3 સ્થાપન
બધા જરૂરી સોફ્ટવેર ઇન્સ્ટોલ કરવા માટે, અમે આ કાર્યને સરળ બનાવવા માટે કેટલીક અલગ અલગ રીતો પ્રદાન કરીએ છીએ. ઉપલબ્ધ વિકલ્પોમાંથી એક પસંદ કરો.
1.3.1 IDE
Note: We highly recommend installing the ESP-IDF through your favorite IDE.
· એક્લિપ્સ પ્લગઇન · VSCode એક્સટેન્શન
1.3.2 મેન્યુઅલ ઇન્સ્ટોલેશન
For the manual procedure, please select according to your operating system.
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ ૧. શરૂઆત કરો
વિન્ડોઝ માટે ટૂલચેનનું માનક સેટઅપ
Introduction ESP-IDF requires some prerequisite tools to be installed so you can build firmware for supported chips. The prerequisite tools include Python, Git, cross-compilers, CMake and Ninja build tools. For this Getting Started wenre going to use the Command Prompt, but after ESP-IDF is installed you can use Eclipse Plugin or another graphical IDE with CMake support instead. Note: Limitations: – The installation path of ESP-IDF and ESP-IDF Tools must not be longer than 90 characters. Too long installation paths might result in a failed build. – The installation path of Python or ESP-IDF must not contain white spaces or parentheses. – The installation path of Python or ESP-IDF should not contain special characters (nonASCII) unless the operating system is configured with oUnicode UTF-8psupport. System Administrator can enable the support via Control Panel – Change date, time, or number formats – Administrative tab – Change system locale – check the option oBeta: Use Unicode UTF-8 for worldwide language supportp – Ok and reboot the computer.
ESP-IDF ટૂલ્સ ઇન્સ્ટોલર ESP-IDFns પૂર્વજરૂરીયાતો ઇન્સ્ટોલ કરવાનો સૌથી સરળ રસ્તો એ છે કે ESP-IDF ટૂલ્સ ઇન્સ્ટોલર્સમાંથી એક ડાઉનલોડ કરો.
Windows Installer Download
ઓનલાઈન અને ઓફલાઈન ઇન્સ્ટોલર માટે યુઝકેસ શું છે ઓનલાઈન ઇન્સ્ટોલર ખૂબ નાનું છે અને ESP-IDF ના બધા ઉપલબ્ધ રીલીઝના ઇન્સ્ટોલેશનને મંજૂરી આપે છે. ઇન્સ્ટોલર ઇન્સ્ટોલેશન પ્રક્રિયા દરમિયાન ફક્ત Git For Windows સહિત જરૂરી ડિપેન્ડન્સીઝ ડાઉનલોડ કરશે. ઇન્સ્ટોલર ડાઉનલોડ કરેલ સ્ટોર કરે છે. fileકેશ ડિરેક્ટરી %userpro માં sfile%. એસ્પ્રેસિફ
Offline Installer does not require any network connection. The installer contains all required dependencies including Git For Windows .
ઇન્સ્ટોલેશનના ઘટકો ઇન્સ્ટોલર નીચેના ઘટકોનો ઉપયોગ કરે છે:
· એમ્બેડેડ પાયથોન · ક્રોસ-કમ્પાઇલર્સ · ઓપનઓસીડી · સીમેક અને નીન્જા બિલ્ડ ટૂલ્સ · ઇએસપી-આઇડીએફ
ઇન્સ્ટોલર ESP-IDF સાથે હાલની ડિરેક્ટરીનો ફરીથી ઉપયોગ કરવાની પણ મંજૂરી આપે છે. ભલામણ કરેલ ડિરેક્ટરી %userpro છે.file%Desktopesp-idf where %userprofile% એ તમારી હોમ ડિરેક્ટરી છે.
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ ૧. શરૂઆત કરો
Launching ESP-IDF Environment At the end of the installation process you can check out option Run ESP-IDF PowerShell Environment or Run ESP-IDF Command Prompt (cmd.exe). The installer will launch ESP-IDF environment in selected prompt. Run ESP-IDF PowerShell Environment:
આકૃતિ 8: ESP-IDF પાવરશેલ એન્વાયર્નમેન્ટ ચલાવો સાથે ESP-IDF ટૂલ્સ સેટઅપ વિઝાર્ડ પૂર્ણ કરવું
ESP-IDF કમાન્ડ પ્રોમ્પ્ટ (cmd.exe) ચલાવો:
કમાન્ડ પ્રોમ્પ્ટનો ઉપયોગ કરીને શરૂઆત કરવાના બાકીના પગલાં માટે, આપણે વિન્ડોઝ કમાન્ડ પ્રોમ્પ્ટનો ઉપયોગ કરીશું. ESP-IDF ટૂલ્સ ઇન્સ્ટોલર ESP-IDF કમાન્ડ પ્રોમ્પ્ટ લોન્ચ કરવા માટે સ્ટાર્ટ મેનૂમાં એક શોર્ટકટ પણ બનાવે છે. આ શોર્ટકટ કમાન્ડ પ્રોમ્પ્ટ (cmd.exe) લોન્ચ કરે છે અને પર્યાવરણ ચલ (PATH, IDF_PATH અને અન્ય) સેટ કરવા માટે export.bat સ્ક્રિપ્ટ ચલાવે છે. આ કમાન્ડ પ્રોમ્પ્ટની અંદર, બધા ઇન્સ્ટોલ કરેલા ટૂલ્સ ઉપલબ્ધ છે. નોંધ કરો કે આ શોર્ટકટ ESP-IDF ટૂલ્સ ઇન્સ્ટોલરમાં પસંદ કરેલી ESP-IDF ડિરેક્ટરી માટે વિશિષ્ટ છે. જો તમારી પાસે કમ્પ્યુટર પર બહુવિધ ESP-IDF ડિરેક્ટરીઓ છે (દા.ત.ample, ESP-IDF ના વિવિધ સંસ્કરણો સાથે કામ કરવા માટે), તમારી પાસે તેનો ઉપયોગ કરવા માટે બે વિકલ્પો છે:
1. ESP-IDF ટૂલ્સ ઇન્સ્ટોલર દ્વારા બનાવેલ શોર્ટકટની એક નકલ બનાવો, અને નવા શોર્ટકટની કાર્યકારી ડિરેક્ટરીને તમે જે ESP-IDF ડિરેક્ટરીનો ઉપયોગ કરવા માંગો છો તેમાં બદલો.
2. Alternatively, run cmd.exe, then change to the ESP-IDF directory you wish to use, and run export.bat. Note that unlike the previous option, this way requires Python and Git to be present in PATH. If you get errors related to Python or Git not being found, use the first option.
ESP-IDF પર પ્રથમ પગલાં હવે બધી આવશ્યકતાઓ પૂર્ણ થઈ ગઈ હોવાથી, આગળનો વિષય તમને તમારા પ્રથમ પ્રોજેક્ટની શરૂઆત કેવી રીતે કરવી તે અંગે માર્ગદર્શન આપશે.
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ 1. શરૂઆત કરો આકૃતિ 9: ESP-IDF પાવરશેલ
આકૃતિ 10: ESP-IDF કમાન્ડ પ્રોમ્પ્ટ (cmd.exe) ચલાવીને ESP-IDF ટૂલ્સ સેટઅપ વિઝાર્ડ પૂર્ણ કરવું.
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ ૧. શરૂઆત કરો
Fig. 11: ESP-IDF Command Prompt
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ ૧. શરૂઆત કરો
This guide will help you on the first steps using ESP-IDF. Follow this guide to start a new project on the ESP32 and build, flash, and monitor the device output. Note: If you have not yet installed ESP-IDF, please go to Installation and follow the instruction in order to get all the software needed to use this guide.
પ્રોજેક્ટ શરૂ કરો હવે તમે ESP32 માટે તમારી અરજી તૈયાર કરવા માટે તૈયાર છો. તમે getstarted/hello_world પ્રોજેક્ટ સાથે શરૂઆત કરી શકો છો.ampESP-IDF માં લેસ ડિરેક્ટરી.
મહત્વપૂર્ણ: ESP-IDF બિલ્ડ સિસ્ટમ ESP-IDF અથવા પ્રોજેક્ટ્સના પાથમાં જગ્યાઓને સપોર્ટ કરતી નથી.
Copy the project get-started/hello_world to ~/esp directory: cd %userprofile% ખાસ કરીને xcopy /e /i % IDF_PATH% exampલેગેટ-સ્ટાર્ટેડહેલો_વર્લ્ડ હેલો_વર્લ્ડ
નોંધ: ભૂતપૂર્વની શ્રેણી છેampભૂતપૂર્વ માં લે પ્રોજેક્ટ્સampESP-IDF માં લેસ ડિરેક્ટરી. તમે ઉપર દર્શાવ્યા પ્રમાણે કોઈપણ પ્રોજેક્ટની નકલ કરી શકો છો અને તેને ચલાવી શકો છો. ભૂતપૂર્વ બિલ્ડ કરવાનું પણ શક્ય છેamples in-place without copying them first.
તમારા ઉપકરણને કનેક્ટ કરો હવે તમારા ESP32 બોર્ડને કમ્પ્યુટર સાથે કનેક્ટ કરો અને તપાસો કે બોર્ડ કયા સીરીયલ પોર્ટ હેઠળ દેખાય છે. વિન્ડોઝમાં સીરીયલ પોર્ટ નામો COM થી શરૂ થાય છે. જો તમને ખાતરી ન હોય કે સીરીયલ પોર્ટ નામ કેવી રીતે તપાસવું, તો કૃપા કરીને સંપૂર્ણ વિગતો માટે ESP32 સાથે સીરીયલ કનેક્શન સ્થાપિત કરો જુઓ.
નોંધ: પોર્ટનું નામ હાથમાં રાખો કારણ કે તમને આગલા પગલાઓમાં તેની જરૂર પડશે.
તમારા પ્રોજેક્ટને ગોઠવો તમારી hello_world ડિરેક્ટરી પર જાઓ, ESP32 ને લક્ષ્ય તરીકે સેટ કરો અને પ્રોજેક્ટ ગોઠવણી ઉપયોગિતા menuconfig ચલાવો.
વિન્ડોઝ સીડી % યુઝરપ્રોfile%esphello_world idf.py સેટ-ટાર્ગેટ esp32 idf.py મેનુકોન્ફિગ
નવો પ્રોજેક્ટ ખોલ્યા પછી, તમારે પહેલા idf.py set-target esp32 વડે લક્ષ્ય સેટ કરવું જોઈએ. નોંધ કરો કે પ્રોજેક્ટમાં હાલના બિલ્ડ્સ અને રૂપરેખાંકનો, જો કોઈ હોય, તો તે આ પ્રક્રિયામાં સાફ અને પ્રારંભ કરવામાં આવશે. આ પગલું બિલકુલ છોડી દેવા માટે લક્ષ્યને પર્યાવરણ ચલમાં સાચવી શકાય છે. વધારાની માહિતી માટે લક્ષ્ય ચિપ પસંદ કરો: સેટ-ટાર્ગેટ જુઓ. જો અગાઉના પગલાં યોગ્ય રીતે કરવામાં આવ્યા હોય, તો નીચેનું મેનૂ દેખાય છે: તમે પ્રોજેક્ટ વિશિષ્ટ ચલોને સેટ કરવા માટે આ મેનૂનો ઉપયોગ કરી રહ્યા છો, દા.ત., Wi-Fi નેટવર્ક નામ અને પાસવર્ડ, પ્રોસેસર ગતિ, વગેરે. menuconfig સાથે પ્રોજેક્ટ સેટ કરવાનું ohello_wordp માટે છોડી શકાય છે, કારણ કે આ ભૂતપૂર્વample ડિફોલ્ટ રૂપરેખાંકન સાથે ચાલે છે.
ધ્યાન આપો: જો તમે ESP32-SOLO-1 મોડ્યુલ સાથે ESP32-DevKitC બોર્ડ અથવા ESP32-MIN1-1(1U) મોડ્યુલ સાથે ESP32-DevKitM-1 બોર્ડનો ઉપયોગ કરો છો, તો કૃપા કરીને ફ્લેશિંગ કરતા પહેલા મેનુકોન્ફિગમાં સિંગલ કોર મોડ (CONFIG_FREERTOS_UNICORE) સક્ષમ કરો.ampલેસ
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ ૧. શરૂઆત કરો
Fig. 12: Project configuration – Home window
Note: The colors of the menu could be different in your terminal. You can change the appearance with the option –style. Please run idf.py menuconfig –help for further information.
જો તમે સપોર્ટેડ ડેવલપમેન્ટ બોર્ડમાંથી કોઈ એકનો ઉપયોગ કરી રહ્યા છો, તો તમે બોર્ડ સપોર્ટ પેકેજનો ઉપયોગ કરીને તમારા ડેવલપમેન્ટને ઝડપી બનાવી શકો છો. વધુ માહિતી માટે વધારાની ટિપ્સ જુઓ.
Build the Project Build the project by running:
idf.py બિલ્ડ
આ આદેશ એપ્લિકેશન અને તમામ ESP-IDF ઘટકોનું સંકલન કરશે, પછી તે બુટલોડર, પાર્ટીશન ટેબલ અને એપ્લિકેશન દ્વિસંગી જનરેટ કરશે.
$ idf.py build Running cmake in directory /path/to/hello_world/build Executing “cmake -G Ninja –warn-uninitialized /path/to/hello_world”… Warn about uninitialized values. — Found Git: /usr/bin/git (found version “2.17.0”) — Building empty aws_iot component due to configuration — Component names: … — Component paths: …
… (બિલ્ડ સિસ્ટમ આઉટપુટની વધુ રેખાઓ)
[527/527] hello_world.bin esptool.py v2.3.1 જનરેટ કરી રહ્યું છે
Project build complete. To flash, run this command: ../../../components/esptool_py/esptool/esptool.py -p (PORT) -b 921600 write_flash -flash_mode dio –flash_size detect –flash_freq 40m 0x10000 build/hello_world. bin build 0x1000 build/bootloader/bootloader.bin 0x8000 build/partition_table/ partition-table.bin or run ‘idf.py -p PORT flash’
જો ત્યાં કોઈ ભૂલો ન હોય, તો ફર્મવેર બાઈનરી .bin જનરેટ કરીને બિલ્ડ સમાપ્ત થશે files.
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ ૧. શરૂઆત કરો
Flash onto the Device Flash the binaries that you just built (bootloader.bin, partition-table.bin and hello_world.bin) onto your ESP32 board by running: idf.py -p PORT [-b BAUD] flash
PORT ને તમારા ESP32 બોર્ડન્સ સીરીયલ પોર્ટ નામથી બદલો. તમે BAUD ને તમને જોઈતા બાઉડ રેટથી બદલીને ફ્લેશર બાઉડ રેટ પણ બદલી શકો છો. ડિફોલ્ટ બાઉડ રેટ 460800 છે. idf.py દલીલો વિશે વધુ માહિતી માટે, idf.py જુઓ.
Note: The option flash automatically builds and flashes the project, so running idf.py build is not necessary.
Encountered Issues While Flashing? If you run the given command and see errors such asoFailed to connectp, there might be several reasons for this. One of the reasons might be issues encountered by esptool.py, the utility that is called by the build system to reset the chip, interact with the ROM bootloader, and flash firmware. One simple solution to try is manual reset described below, and if it does not help you can find more details about possible issues in Troubleshooting.
esptool.py resets ESP32 automatically by asserting DTR and RTS control lines of the USB to serial converter chip, i.e., FTDI or CP210x (for more information, see Establish Serial Connection with ESP32). The DTR and RTS control lines are in turn connected to GPIO0 and CHIP_PU (EN) pins of ESP32, thus changes in the voltagDTR અને RTS ના e સ્તરો ESP32 ને ફર્મવેર ડાઉનલોડ મોડમાં બુટ કરશે. ભૂતપૂર્વ તરીકેample, check the schematic for the ESP32 DevKitC development board.
સામાન્ય રીતે, તમને સત્તાવાર esp-idf ડેવલપમેન્ટ બોર્ડ સાથે કોઈ સમસ્યા ન હોવી જોઈએ. જો કે, esptool.py નીચેના કિસ્સાઓમાં તમારા હાર્ડવેરને આપમેળે રીસેટ કરવામાં સક્ષમ નથી:
· Your hardware does not have the DTR and RTS lines connected to GPIO0 and CHIP_PU · The DTR and RTS lines are configured differently · There are no such serial control lines at all
Depending on the kind of hardware you have, it may also be possible to manually put your ESP32 board into Firmware Download mode (reset).
· એસ્પ્રેસિફ દ્વારા ઉત્પાદિત ડેવલપમેન્ટ બોર્ડ માટે, આ માહિતી સંબંધિત શરૂઆત માર્ગદર્શિકાઓ અથવા વપરાશકર્તા માર્ગદર્શિકાઓમાં મળી શકે છે. ઉદાહરણ તરીકેampઅને, ESP-IDF ડેવલપમેન્ટ બોર્ડને મેન્યુઅલી રીસેટ કરવા માટે, બુટ બટન (GPIO0) દબાવી રાખો અને EN બટન (CHIP_PU) દબાવો.
· For other types of hardware, try pulling GPIO0 down.
Normal Operation When flashing, you will see the output log similar to the following:
… esptool.py –chip esp32 -p /dev/ttyUSB0 -b 460800 –before=default_reset -after=hard_reset write_flash –flash_mode dio –flash_freq 40m –flash_size 2MB 0x8000 partition_table/partition-table.bin 0x1000 bootloader/bootloader.bin 0x10000 hello_world.bin esptool.py v3.0-dev સીરીયલ પોર્ટ /dev/ttyUSB0 કનેક્ટ કરી રહ્યું છે…….._ ચિપ ESP32D0WDQ6 છે (રિવિઝન 0) સુવિધાઓ: WiFi, BT, ડ્યુઅલ કોર, કોડિંગ સ્કીમ કંઈ નહીં ક્રિસ્ટલ 40MHz છે MAC: 24:0a:c4:05:b9:14 સ્ટબ અપલોડ કરી રહ્યું છે… સ્ટબ ચાલી રહ્યું છે… સ્ટબ ચાલી રહ્યું છે… બાઉડ રેટને 460800 માં બદલી રહ્યું છે.
(આગળના પાના પર ચાલુ)
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ ૧. શરૂઆત કરો
(પાછલા પૃષ્ઠથી ચાલુ) ફ્લેશ કદ ગોઠવી રહ્યું છે… ૩૦૭૨ બાઇટ્સ ૧૦૩ સુધી સંકુચિત… ૦x૦૦૦૦૮૦૦૦ પર લખવું… (૧૦૦%) ૦.૦ સેકન્ડમાં ૦x૦૦૦૦૮૦૦૦ પર ૩૦૭૨ બાઇટ્સ (૧૦૩ સંકુચિત) લખ્યા (અસરકારક ૫૯૬૨.૮ kbit/s)… ડેટાનો હેશ ચકાસાયેલ. ૨૬૦૯૬ બાઇટ્સ ૧૫૪૦૮ સુધી સંકુચિત… ૦x૦૦૦૦૧૦૦૦ પર લખવું… (૧૦૦%) ૦.૪ સેકન્ડમાં ૦x૦૦૦૦૧૦૦૦ પર ૨૬૦૯૬ બાઇટ્સ (૧૫૪૦૮ સંકુચિત) લખ્યા (અસરકારક ૫૪૬.૭ kbit/s)… ડેટાનો હેશ ચકાસાયેલ. ૧૪૭૧૦૪ બાઇટ્સને ૭૭૩૬૪ સુધી સંકુચિત કર્યા... ૦x૦૦૧૦૦૦૦ પર લખવું... (૨૦%) ૦x૦૦૧૪૦૦૦ પર લખવું... (૪૦%) ૦x૦૦૧૮૦૦૦ પર લખવું... (૬૦%) ૦x૦૦૧સી૦૦૦ પર લખવું... (૮૦%) ૦x૦૦૨૦૦૦ પર લખવું... (૧૦૦%) ૧.૯ સેકન્ડમાં ૦x૦૦૧૦૦૦૦ પર ૧૪૭૧૦૪ બાઇટ (૭૭૩૬૪ સંકુચિત) લખ્યા (અસરકારક ૬૧૫.૫ kbit/s)... ડેટાનો હેશ ચકાસાયેલ.
છોડી રહ્યાં છીએ... RTS પિન દ્વારા હાર્ડ રીસેટ કરી રહ્યાં છીએ... થઈ ગયું
If there are no issues by the end of the flash process, the board will reboot and start up theohello_worldpapplication. If yound like to use the Eclipse or VS Code IDE instead of running idf.py, check out Eclipse Plugin, VSCode Extension.
આઉટપુટનું નિરીક્ષણ કરો. ohello_worldpis ખરેખર ચાલી રહ્યું છે કે નહીં તે ચકાસવા માટે, idf.py -p PORT monitor લખો (PORT ને તમારા સીરીયલ પોર્ટ નામથી બદલવાનું ભૂલશો નહીં).
આ આદેશ IDF મોનિટર એપ્લિકેશન લોન્ચ કરે છે:
$ idf.py -p <PORT> monitor Running idf_monitor in directory […]/esp/hello_world/build Executing “python […]/esp-idf/tools/idf_monitor.py -b 115200 […]/esp/hello_ world/build/hello_world.elf”… — idf_monitor on <PORT> 115200 —– Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H –ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) ets Jun 8 2016 00:22:57 …
સ્ટાર્ટઅપ અને ડાયગ્નોસ્ટિક લોગ ઉપર સ્ક્રોલ કર્યા પછી, તમારે ઓહેલો વર્લ્ડ જોવું જોઈએ!એપ્લિકેશન દ્વારા પ્રિન્ટ આઉટ.
… હેલો વર્લ્ડ! ૧૦ સેકન્ડમાં ફરી શરૂ થઈ રહ્યું છે… આ ૨ CPU કોર(કોર), WiFi/BT/BLE, સિલિકોન રિવિઝન ૧, ૨MB બાહ્ય ફ્લેશ સાથે esp32 ચિપ છે ન્યૂનતમ ફ્રી હીપ સાઇઝ: ૨૯૮૯૬૮ બાઇટ્સ ૯ સેકન્ડમાં ફરી શરૂ થઈ રહ્યું છે… ૮ સેકન્ડમાં ફરી શરૂ થઈ રહ્યું છે… ૭ સેકન્ડમાં ફરી શરૂ થઈ રહ્યું છે…
IDF મોનિટરમાંથી બહાર નીકળવા માટે શોર્ટકટ Ctrl+] નો ઉપયોગ કરો.
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ ૧. શરૂઆત કરો
If IDF monitor fails shortly after the upload, or, if instead of the messages above, you see random garbage similar to what is given below, your board is likely using a 26 MHz crystal. Most development board designs use 40 MHz, so ESP-IDF uses this frequency as a default value.
જો તમને આવી સમસ્યા હોય, તો નીચે મુજબ કરો: 1. મોનિટરમાંથી બહાર નીકળો. 2. મેનુકોન્ફિગ પર પાછા જાઓ. 3. કમ્પોનન્ટ રૂપરેખા > હાર્ડવેર સેટિંગ્સ > મુખ્ય XTAL રૂપરેખા > મુખ્ય XTAL આવર્તન પર જાઓ, પછી CONFIG_XTAL_FREQ_SEL ને 26 MHz પર બદલો. 4. તે પછી, એપ્લિકેશન ફરીથી બનાવો અને ફ્લેશ કરો.
In the current version of ESP-IDF, main XTAL frequencies supported by ESP32 are as follows:
· ૨૬ મેગાહર્ટ્ઝ · ૪૦ મેગાહર્ટ્ઝ
Note: You can combine building, flashing and monitoring into one step by running: idf.py -p PORT flash monitor
See also: · IDF Monitor for handy shortcuts and more details on using IDF monitor. · idf.py for a full reference of idf.py commands and options.
Thatns all that you need to get started with ESP32! Now you are ready to try some other exampઓછી, અથવા સીધા તમારી પોતાની એપ્લિકેશનો વિકસાવવા પર જાઓ.
મહત્વપૂર્ણ: કેટલાક ભૂતપૂર્વamples do not support ESP32 because required hardware is not included in ESP32 so it cannot be supported. If building an exampલે, કૃપા કરીને README તપાસો file સપોર્ટેડ ટાર્ગેટ્સ ટેબલ માટે. જો આ ESP32 ટાર્ગેટ સહિત હાજર હોય, અથવા ટેબલ બિલકુલ અસ્તિત્વમાં ન હોય, તો ભૂતપૂર્વample will work on ESP32.
વધારાની ટિપ્સ
પરવાનગી સમસ્યાઓ /dev/ttyUSB0 કેટલાક Linux વિતરણો સાથે, ESP32 ફ્લેશ કરતી વખતે તમને "Failed to open port /dev/ttyUSB0" ભૂલ સંદેશ મળી શકે છે. આ સમસ્યા વર્તમાન વપરાશકર્તાને ડાયલઆઉટ જૂથમાં ઉમેરીને ઉકેલી શકાય છે.
Python compatibility ESP-IDF supports Python 3.7 or newer. It is recommended to upgrade your operating system to a recent version satisfying this requirement. Other options include the installation of Python from sources or the use of a Python version management system such as pyenv.
Start with Board Support Package To speed up prototyping on some development boards, you can use Board Support Packages (BSPs), which makes initialization of a particular board as easy as few function calls.
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ ૧. શરૂઆત કરો
BSP સામાન્ય રીતે ડેવલપમેન્ટ બોર્ડ પર પૂરા પાડવામાં આવેલા બધા હાર્ડવેર ઘટકોને સપોર્ટ કરે છે. પિનઆઉટ વ્યાખ્યા અને પ્રારંભિક કાર્યો ઉપરાંત, BSP બાહ્ય ઘટકો જેમ કે સેન્સર, ડિસ્પ્લે, ઓડિયો કોડેક્સ વગેરે માટે ડ્રાઇવરો સાથે આવે છે. BSPs IDF કમ્પોનન્ટ મેનેજર દ્વારા વિતરિત કરવામાં આવે છે, તેથી તેઓ IDF કમ્પોનન્ટ રજિસ્ટ્રીમાં મળી શકે છે. અહીં એક ઉદાહરણ છેample of how to add ESP-WROVER-KIT BSP to your project: idf.py add-dependency esp_wrover_kit
વધુ માજીampBSP ઉપયોગની માહિતી BSP ex માં મળી શકે છેampલેસ ફોલ્ડર.
Related Documents For advanced users who want to customize the install process: · Updating ESP-IDF tools on Windows · Establish Serial Connection with ESP32 · Eclipse Plugin · VSCode Extension · IDF Monitor
Updating ESP-IDF tools on Windows
Install ESP-IDF tools using a script From the Windows Command Prompt, change to the directory where ESPIDF is installed. Then run:
install.bat
For Powershell, change to the directory where ESP-IDF is installed. Then run:
ઇન્સ્ટોલ.ps1
This will download and install the tools necessary to use ESP-IDF. If the specific version of the tool is already installed, no action will be taken. The tools are downloaded and installed into a directory specified during ESP-IDF Tools Installer process. By default, this is C:Usersusername.espressif.
Add ESP-IDF tools to PATH using an export script ESP-IDF tools installer creates a Start menu shortcut for oESP-IDF Command Promptp. This shortcut opens a Command Prompt window where all the tools are already
available. In some cases, you may want to work with ESP-IDF in a Command Prompt window which wasnnt started using that shortcut. If this is the case, follow the instructions below to add ESP-IDF tools to PATH. In the command prompt where you need to use ESP-IDF, change to the directory where ESP-IDF is installed, then execute export.bat:
cd % userprofile%espesp-idf નિકાસ.બેટ
Alternatively in the Powershell where you need to use ESP-IDF, change to the directory where ESP-IDF is installed, then execute export.ps1:
cd ~/esp/esp-idf export.ps1
જ્યારે આ થઈ જશે, ત્યારે આ કમાન્ડ પ્રોમ્પ્ટમાં ટૂલ્સ ઉપલબ્ધ થશે.
Establish Serial Connection with ESP32 This section provides guidance how to establish serial connection between ESP32 and PC.
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ ૧. શરૂઆત કરો
ESP32 ને PC થી કનેક્ટ કરો. USB કેબલનો ઉપયોગ કરીને ESP32 બોર્ડને PC સાથે કનેક્ટ કરો. જો ડિવાઇસ ડ્રાઇવર આપમેળે ઇન્સ્ટોલ ન થાય, તો તમારા ESP32 બોર્ડ (અથવા બાહ્ય કન્વર્ટર ડોંગલ) પર USB થી સીરીયલ કન્વર્ટર ચિપ ઓળખો, ઇન્ટરનેટ પર ડ્રાઇવરો શોધો અને તેમને ઇન્સ્ટોલ કરો. નીચે Espressif દ્વારા ઉત્પાદિત મોટાભાગના ESP32 બોર્ડ પર ઇન્સ્ટોલ કરેલા USB થી સીરીયલ કન્વર્ટર ચિપ્સની સૂચિ અને ડ્રાઇવરોની લિંક્સ છે:
· CP210x: CP210x USB થી UART બ્રિજ VCP ડ્રાઇવર્સ · FTDI: FTDI વર્ચ્યુઅલ COM પોર્ટ ડ્રાઇવર્સ કૃપા કરીને ઉપયોગમાં લેવાતા ચોક્કસ USB થી સીરીયલ કન્વર્ટર ચિપ માટે બોર્ડ વપરાશકર્તા માર્ગદર્શિકા તપાસો. ઉપરોક્ત ડ્રાઇવર્સ મુખ્યત્વે સંદર્ભ માટે છે. સામાન્ય પરિસ્થિતિઓમાં, ડ્રાઇવર્સ ઓપરેટિંગ સિસ્ટમ સાથે બંડલ કરેલા હોવા જોઈએ અને બોર્ડને PC સાથે કનેક્ટ કર્યા પછી આપમેળે ઇન્સ્ટોલ થઈ જવા જોઈએ.
Check port on Windows Check the list of identified COM ports in the Windows Device Manager. Disconnect ESP32 and connect it back, to verify which port disappears from the list and then shows back again. Figures below show serial port for ESP32 DevKitC and ESP32 WROVER KIT
Fig. 13: USB to UART bridge of ESP32-DevKitC in Windows Device Manager
Check port on Linux and macOS To check the device name for the serial port of your ESP32 board (or external converter dongle), run this command two times, first with the board / dongle unplugged, then with plugged in. The port which appears the second time is the one you need: Linux
ls /dev/tty*
macOS
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ ૧. શરૂઆત કરો
આકૃતિ ૧૪: વિન્ડોઝ ડિવાઇસ મેનેજરમાં ESP-WROVER-KIT ના બે USB સીરીયલ પોર્ટ
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ ૧. શરૂઆત કરો
ls /dev/cu.* Note: macOS users: if you donnt see the serial port then check you have the USB/serial drivers installed. See Section Connect ESP32 to PC for links to drivers. For macOS High Sierra (10.13), you may also have to explicitly allow the drivers to load. Open System Preferences -> Security & Privacy -> General and check if there is a message shown here about oSystem Software from developer lpwhere the developer name is Silicon Labs or FTDI.
Linux પર ડાયલઆઉટમાં યુઝર ઉમેરવું હાલમાં લોગ થયેલ યુઝર પાસે USB દ્વારા સીરીયલ પોર્ટ વાંચવા અને લખવાની ઍક્સેસ હોવી જોઈએ. મોટાભાગના Linux ડિસ્ટ્રિબ્યુશન પર, આ નીચેના આદેશનો ઉપયોગ કરીને યુઝરને ડાયલઆઉટ ગ્રુપમાં ઉમેરીને કરવામાં આવે છે:
sudo usermod -a -G ડાયલઆઉટ $USER
આર્ક લિનક્સ પર આ નીચેના આદેશ સાથે uucp જૂથમાં વપરાશકર્તાને ઉમેરીને કરવામાં આવે છે:
sudo usermod -a -G uucp $USER
ખાતરી કરો કે તમે સીરીયલ પોર્ટ માટે વાંચવા અને લખવાની પરવાનગીઓને સક્ષમ કરવા માટે ફરીથી લોગિન કરો છો.
સીરીયલ કનેક્શન ચકાસો હવે ખાતરી કરો કે સીરીયલ કનેક્શન કાર્યરત છે. ESP32 રીસેટ કર્યા પછી ટર્મિનલ પર કોઈ આઉટપુટ મળે છે કે નહીં તે તપાસીને તમે સીરીયલ ટર્મિનલ પ્રોગ્રામનો ઉપયોગ કરીને આ કરી શકો છો. ESP32 પર ડિફોલ્ટ કન્સોલ બોડ રેટ 115200 છે.
Windows and Linux In this exampઆપણે પુટી SSH ક્લાયંટનો ઉપયોગ કરીશું જે વિન્ડોઝ અને લિનક્સ બંને માટે ઉપલબ્ધ છે. તમે અન્ય સીરીયલ પ્રોગ્રામનો ઉપયોગ કરી શકો છો અને નીચે આપેલા કોમ્યુનિકેશન પેરામીટર્સ સેટ કરી શકો છો. ટર્મિનલ ચલાવો અને ઓળખાયેલ સીરીયલ પોર્ટ સેટ કરો. બાઉડ રેટ = 115200 (જો જરૂરી હોય તો, ઉપયોગમાં લેવાતી ચિપના ડિફોલ્ટ બાઉડ રેટમાં આને બદલો), ડેટા બિટ્સ = 8, સ્ટોપ બિટ્સ = 1, અને પેરિટી = N. નીચે આપેલ છે.ampવિન્ડોઝ અને લિનક્સ પર પોર્ટ અને આવા ટ્રાન્સમિશન પરિમાણો (ટૂંકમાં 115200-8-1-N તરીકે વર્ણવેલ) સેટ કરવાના સ્ક્રીનશોટ. ઉપરોક્ત પગલાંઓમાં તમે ઓળખેલ બરાબર એ જ સીરીયલ પોર્ટ પસંદ કરવાનું યાદ રાખો. પછી ટર્મિનલમાં સીરીયલ પોર્ટ ખોલો અને તપાસો કે શું તમને ESP32 દ્વારા છાપેલ કોઈ લોગ દેખાય છે. લોગ સામગ્રી ESP32 પર લોડ થયેલ એપ્લિકેશન પર આધાર રાખે છે, Ex જુઓample Output.
નોંધ: કોમ્યુનિકેશન કાર્યરત છે કે નહીં તેની ચકાસણી કર્યા પછી સીરીયલ ટર્મિનલ બંધ કરો. જો તમે ટર્મિનલ સત્ર ખુલ્લું રાખશો, તો પછીથી ફર્મવેર અપલોડ કરવા માટે સીરીયલ પોર્ટ ઍક્સેસિબલ રહેશે નહીં.
macOS To spare you the trouble of installing a serial terminal program, macOS offers the screen command. · As discussed in Check port on Linux and macOS, run:
ls /dev/cu.* · You should see similar output:
/dev/cu.Bluetooth-Incoming-Port /dev/cu.SLAB_USBtoUART USBtoUART7
/dev/cu.SLAB_
· The output will vary depending on the type and the number of boards connected to your PC. Then pick the device name of your board and run (if needed, change o115200pto the default baud rate of the chip in use):
screen /dev/cu.device_name 115200 Replace device_name with the name found running ls /dev/cu.*.
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ ૧. શરૂઆત કરો
આકૃતિ 15: વિન્ડોઝ પર પુટ્ટીમાં સીરીયલ કોમ્યુનિકેશન સેટ કરવું
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ ૧. શરૂઆત કરો
Fig. 16: Setting Serial Communication in PuTTY on Linux
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ ૧. શરૂઆત કરો
· તમે સ્ક્રીન પર દેખાતા કેટલાક લોગ શોધી રહ્યા છો. લોગની સામગ્રી ESP32 પર લોડ થયેલ એપ્લિકેશન પર આધારિત હશે, Ex જુઓ.ample આઉટપુટ. સ્ક્રીન સત્રમાંથી બહાર નીકળવા માટે Ctrl-A + ટાઈપ કરો.
નોંધ: વાતચીત કાર્યરત છે કે નહીં તે ચકાસ્યા પછી સ્ક્રીન સત્રમાંથી બહાર નીકળવાનું ભૂલશો નહીં. જો તમે તેમ કરવામાં નિષ્ફળ જાઓ અને ફક્ત ટર્મિનલ વિન્ડો બંધ કરો, તો પછીથી ફર્મવેર અપલોડ કરવા માટે સીરીયલ પોર્ટ ઍક્સેસિબલ રહેશે નહીં.
Example Output An exampનીચે લોગ બતાવેલ છે. જો તમને કંઈ ન દેખાય તો બોર્ડ રીસેટ કરો. ets જૂન 8 2016 00:22:57
rst:0x5 (DEEPSLEEP_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) ets Jun 8 2016 00:22:57
rst:0x7 (TG0WDT_SYS_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0x00 clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:2 load:0x3fff0008,len:8 load:0x3fff0010,len:3464 load:0x40078000,len:7828 load:0x40080000,len:252 entry 0x40080034 I (44) boot: ESP-IDF v2.0-rc1-401-gf9fba35 2nd stage bootloader I (45) boot: compile time 18:48:10
…
If you can see readable log output, it means serial connection is working and you are ready to proceed with installation and finally upload of application to ESP32.
નોંધ: કેટલાક સીરીયલ પોર્ટ વાયરિંગ રૂપરેખાંકનો માટે, ESP32 બુટ થાય અને સીરીયલ આઉટપુટ ઉત્પન્ન કરે તે પહેલાં ટર્મિનલ પ્રોગ્રામમાં સીરીયલ RTS અને DTR પિનને અક્ષમ કરવાની જરૂર છે. આ હાર્ડવેર પર જ આધાર રાખે છે, મોટાભાગના ડેવલપમેન્ટ બોર્ડ (બધા Espressif બોર્ડ સહિત) માં આ સમસ્યા હોતી નથી. જો RTS અને DTR સીધા EN અને GPIO0 પિન સાથે વાયર કરેલા હોય તો આ સમસ્યા હાજર હોય છે. વધુ વિગતો માટે esptool દસ્તાવેજીકરણ જુઓ.
If you got here from Step 5. First Steps on ESP-IDF when installing s/w for ESP32 development, then you can continue with Step 5. First Steps on ESP-IDF.
IDF મોનિટર IDF મોનિટર મુખ્યત્વે એક સીરીયલ ટર્મિનલ પ્રોગ્રામ છે જે લક્ષ્ય ઉપકરણોના સીરીયલ પોર્ટ પર અને ત્યાંથી સીરીયલ ડેટા રિલે કરે છે. તે કેટલીક IDF-વિશિષ્ટ સુવિધાઓ પણ પ્રદાન કરે છે. IDF મોનિટર idf.py મોનિટર ચલાવીને IDF પ્રોજેક્ટમાંથી લોન્ચ કરી શકાય છે.
Keyboard Shortcuts For easy interaction with IDF Monitor, use the keyboard shortcuts given in the table.
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ ૧. શરૂઆત કરો
કીબોર્ડ શોર્ટકટ Ctrl+] Ctrl+T
· Ctrl+T
· Ctrl+]
· Ctrl+P
· Ctrl+R
· Ctrl+F
· Ctrl+A (or A)
· Ctrl+Y
· Ctrl+L
· Ctrl+I (અથવા I)
· Ctrl+H (અથવા H)
· Ctrl+X (or X)
Ctrl+C
ક્રિયા
વર્ણન
પ્રોગ્રામમાંથી બહાર નીકળો મેનુ એસ્કેપ કી મેનુ અક્ષરને જ રિમોટ પર મોકલો
એક્ઝિટ કેરેક્ટરને જ રિમોટ પર મોકલો
Reset target into bootloader to pause app via RTS line
Reset target board via RTS
Build and flash the project
Build and flash the app only
Stop/resume log output printing on screen
સ્ટોપ/રિઝ્યુમ લોગ આઉટપુટ આમાં સાચવવામાં આવ્યો file
Stop/resume timestamps
પ્રિન્ટીંગ
બધા કીબોર્ડ શોર્ટકટ્સ દર્શાવો
નીચે આપેલી કીમાંથી એક દબાવો અને તેને અનુસરો.
Resets the target, into bootloader via the RTS line (if connected), so that the board runs nothing. Useful when you need to wait for another device to startup. Resets the target board and re-starts the application via the RTS line (if connected).
પ્રોજેક્ટ ફ્લેશ ટાર્ગેટ ચલાવવા માટે idf_monitor ને થોભાવે છે, પછી idf_monitor ને ફરી શરૂ કરે છે. કોઈપણ બદલાયેલ સ્ત્રોત files ને ફરીથી કમ્પાઇલ કરવામાં આવે છે અને પછી ફરીથી ફ્લેશ કરવામાં આવે છે. જો idf_monitor ને આર્ગ્યુમેન્ટ -E થી શરૂ કરવામાં આવ્યું હોય તો ટાર્ગેટ એન્ક્રિપ્ટેડ-ફ્લેશ ચલાવવામાં આવે છે. એપ-ફ્લેશ ટાર્ગેટ ચલાવવા માટે idf_monitor ને થોભાવે છે, પછી idf_monitor ને ફરી શરૂ કરે છે. ફ્લેશ ટાર્ગેટની જેમ, પરંતુ ફક્ત મુખ્ય એપ્લિકેશન બનાવવામાં આવે છે અને ફરીથી ફ્લેશ કરવામાં આવે છે. જો idf_monitor ને આર્ગ્યુમેન્ટ -E થી શરૂ કરવામાં આવ્યું હોય તો ટાર્ગેટ એન્ક્રિપ્ટેડ-એપ-ફ્લેશ ચલાવવામાં આવે છે. સક્રિય કરતી વખતે બધા આવનારા સીરીયલ ડેટાને કાઢી નાખે છે. મોનિટર છોડ્યા વિના લોગ આઉટપુટને ઝડપથી થોભાવવા અને તપાસવાની મંજૂરી આપે છે. એક બનાવે છે file પ્રોજેક્ટ ડિરેક્ટરીમાં અને આઉટપુટ તેમાં લખાયેલું છે file જ્યાં સુધી આ સમાન કીબોર્ડ શોર્ટકટ (અથવા IDF મોનિટર બહાર નીકળે છે) થી અક્ષમ ન થાય ત્યાં સુધી. IDF મોનિટર ટાઇમસ્ટ પ્રિન્ટ કરી શકે છેamp in the beginning of each line. The timestamp ફોર્મેટ -ટાઇમેસ્ટ દ્વારા બદલી શકાય છેamp-ફોર્મેટ કમાન્ડ લાઇન દલીલ.
પ્રોગ્રામમાંથી બહાર નીકળો
ચાલી રહેલ એપ્લિકેશનમાં વિક્ષેપ પાડો
રનટાઇમ પર એપ્લિકેશન ડીબગ કરવા માટે IDF મોનિટરને થોભાવે છે અને GDB પ્રોજેક્ટ ડીબગર ચલાવે છે. આ માટે :ref:CONFIG_ESP_SYSTEM_GDBSTUB_RUNTIME વિકલ્પ સક્ષમ હોવો જરૂરી છે.
Any keys pressed, other than Ctrl-] and Ctrl-T, will be sent through the serial port.
IDF-specific features
ઓટોમેટિક એડ્રેસ ડીકોડિંગ જ્યારે પણ ESP-IDF 0x4_______ ફોર્મનો હેક્સાડેસિમલ કોડ એડ્રેસ આઉટપુટ કરે છે, ત્યારે IDF મોનિટર સોર્સ કોડમાં સ્થાન શોધવા અને ફંક્શન નામ શોધવા માટે addr2line_ નો ઉપયોગ કરે છે.
જો ESP-IDF એપ ક્રેશ થાય અને ગભરાટ ફેલાય, તો રજિસ્ટર ડમ્પ અને બેકટ્રેસ ઉત્પન્ન થાય છે, જેમ કે નીચે મુજબ:
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ ૧. શરૂઆત કરો
Guru Meditation Error of type StoreProhibited occurred on core 0. Exception was
હેન્ડલ વગરનું.
રજિસ્ટર ડમ્પ:
PC
: 0x400f360d પીએસ
: 0x00060330 A0
: 0x800dbf56 A1
:
0x3ffb7e00
A2
: 0x3ffb136c A3
: 0x00000005 A4
: 0x00000000 A5
:
0x00000000
A6
: 0x00000000 A7
: 0x00000080 A8
: 0x00000000 A9
:
0x3ffb7dd0
A10
: 0x00000003 A11
: 0x00060f23 A12
: 0x00060f20 A13
:
0x3ffba6d0
A14
: 0x00000047 A15
: 0x0000000f SAR
: 0x00000019 કારણ:
0x0000001d
EXCVADDR: 0x00000000 LBEG : 0x4000c46c લેન્ડ : 0x4000c477 LCOUNT :
0x00000000
Backtrace: 0x400f360d:0x3ffb7e00 0x400dbf56:0x3ffb7e20 0x400dbf5e:0x3ffb7e40 0x400dbf82:0x3ffb7e60 0x400d071d:0x3ffb7e90
IDF Monitor adds more details to the dump:
Guru Meditation Error of type StoreProhibited occurred on core 0. Exception was
હેન્ડલ વગરનું.
રજિસ્ટર ડમ્પ:
PC
: 0x400f360d પીએસ
: 0x00060330 A0
: 0x800dbf56 A1
:
0x3ffb7e00
0x400f360d: do_something_to_crash at /home/gus/esp/32/idf/examples/get-started/
hello_world/main/./hello_world_main.c:57
(ઇનલાઇન દ્વારા) /home/gus/esp/32/idf/ex પર inner_dont_crashampલેસ/ગેટ-સ્ટાર્ટ/હેલો_
વિશ્વ/મુખ્ય/./હેલો_વર્લ્ડ_મેઈન.સી:52
A2
: 0x3ffb136c A3
: 0x00000005 A4
: 0x00000000 A5
:
0x00000000
A6
: 0x00000000 A7
: 0x00000080 A8
: 0x00000000 A9
:
0x3ffb7dd0
A10
: 0x00000003 A11
: 0x00060f23 A12
: 0x00060f20 A13
:
0x3ffba6d0
A14
: 0x00000047 A15
: 0x0000000f SAR
: 0x00000019 કારણ:
0x0000001d
EXCVADDR: 0x00000000 LBEG : 0x4000c46c લેન્ડ : 0x4000c477 LCOUNT :
0x00000000
Backtrace: 0x400f360d:0x3ffb7e00 0x400dbf56:0x3ffb7e20 0x400dbf5e:0x3ffb7e40 0x400dbf82:0x3ffb7e60 0x400d071d:0x3ffb7e90 0x400f360d: do_something_to_crash at /home/gus/esp/32/idf/examples/get-started/ hello_world/main/./hello_world_main.c:57 (inlined by) inner_dont_crash at /home/gus/esp/32/idf/examples/get-started/hello_ world/main/./hello_world_main.c:52 0x400dbf56: still_dont_crash at /home/gus/esp/32/idf/examples/get-started/hello_ world/main/./hello_world_main.c:47 0x400dbf5e: dont_crash at /home/gus/esp/32/idf/examples/get-started/hello_world/ main/./hello_world_main.c:42 0x400dbf82: app_main at /home/gus/esp/32/idf/examples/get-started/hello_world/main/ ./hello_world_main.c:33 0x400d071d: /home/gus/esp/32/idf/components/esp32/./cpu_start.c:254 પર મુખ્ય કાર્ય
દરેક સરનામાંને ડીકોડ કરવા માટે, IDF મોનિટર પૃષ્ઠભૂમિમાં નીચેનો આદેશ ચલાવે છે: xtensa-esp32-elf-addr2line -pfiaC -e build/PROJECT.elf ADDRESS
Note: Set environment variable ESP_MONITOR_DECODE to 0 or call idf_monitor.py with specific command line
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ ૧. શરૂઆત કરો
વિકલ્પ: idf_monitor.py –disable-address-decoding સરનામાં ડીકોડિંગને અક્ષમ કરવા માટે.
કનેક્શન પર ટાર્ગેટ રીસેટ ડિફૉલ્ટ રૂપે, IDF મોનિટર ટાર્ગેટને કનેક્ટ કરતી વખતે રીસેટ કરશે. ટાર્ગેટ ચિપનું રીસેટ DTR અને RTS સીરીયલ લાઇનનો ઉપયોગ કરીને કરવામાં આવે છે. IDF મોનિટરને કનેક્શન પર ટાર્ગેટને આપમેળે રીસેટ કરવાથી રોકવા માટે, –no-reset વિકલ્પ (દા.ત., idf_monitor.py –no-reset) નો ઉપયોગ કરીને IDF મોનિટરને કૉલ કરો.
નોંધ: –no-reset વિકલ્પ IDF મોનિટરને ચોક્કસ પોર્ટ સાથે કનેક્ટ કરતી વખતે પણ સમાન વર્તન લાગુ કરે છે (દા.ત., idf.py મોનિટર –no-reset -p [PORT]).
Launching GDB with GDBStub GDBStub is a useful runtime debugging feature that runs on the target and connects to the host over the serial port to receive debugging commands. GDBStub supports commands such as reading memory and variables, examining call stack frames etc. Although GDBStub is less versatile than JTAG ડીબગીંગ, તેને કોઈ ખાસ હાર્ડવેરની જરૂર નથી (જેમ કે JTAG to USB bridge) as communication is done entirely over the serial port. A target can be configured to run GDBStub in the background by setting the CONFIG_ESP_SYSTEM_PANIC to GDBStub on runtime. GDBStub will run in the background until a Ctrl+C message is sent over the serial port and causes the GDBStub to break (i.e., stop the execution of) the program, thus allowing GDBStub to handle debugging commands. Furthermore, the panic handler can be configured to run GDBStub on a crash by setting the CONFIG_ESP_SYSTEM_PANIC to GDBStub on panic. When a crash occurs, GDBStub will output a special string pattern over the serial port to indicate that it is running. In both cases (i.e., sending the Ctrl+C message, or receiving the special string pattern), IDF Monitor will automatically launch GDB in order to allow the user to send debugging commands. After GDB exits, the target is reset via the RTS serial line. If this line is not connected, users can reset their target (by pressing the boardns Reset button).
Note: In the background, IDF Monitor runs the following command to launch GDB:
xtensa-esp32-elf-gdb -ex “set serial baud BAUD” -ex “target remote PORT” -ex interrupt build/PROJECT.elf :idf_target:`Hello NAME chip`
Output Filtering IDF monitor can be invoked as idf.py monitor –print-filter=”xyz”, where –print-filter is the parameter for output filtering. The default value is an empty string, which means that everything is printed.
શું છાપવું તેના પરના નિયંત્રણોને શ્રેણી તરીકે સ્પષ્ટ કરી શકાય છેtag>:<log_level> items where <tag> is the tag સ્ટ્રિંગ અને એ {N, E, W, I, D, V, *} સમૂહમાંથી એક અક્ષર છે જે લોગીંગ માટેના સ્તરનો ઉલ્લેખ કરે છે.
માજી માટેample, PRINT_FILTER=”tag1:W” ફક્ત ESP_LOGW(“) સાથે લખેલા આઉટપુટ સાથે મેળ ખાય છે અને પ્રિન્ટ કરે છે.tag૧”, …) અથવા ઓછા વર્બોસિટી સ્તરે, એટલે કે ESP_LOGE(“tag1″, …). Not specifying a <log_level> or using * defaults to Verbose level.
નોંધ: લોગીંગ લાઇબ્રેરી દ્વારા તમને જરૂરી ન હોય તેવા આઉટપુટને કમ્પાઇલ કરતી વખતે અક્ષમ કરવા માટે પ્રાથમિક લોગીંગનો ઉપયોગ કરો. IDF મોનિટર સાથે આઉટપુટ ફિલ્ટરિંગ એ એક ગૌણ ઉકેલ છે જે એપ્લિકેશનને ફરીથી કમ્પાઇલ કર્યા વિના ફિલ્ટરિંગ વિકલ્પોને સમાયોજિત કરવા માટે ઉપયોગી થઈ શકે છે.
Your app tags આઉટપુટ ફિલ્ટરિંગ સુવિધા સાથે સુસંગત થવા માટે તેમાં ખાલી જગ્યાઓ, ફૂદડી *, અથવા કોલોન : ન હોવા જોઈએ.
If the last line of the output in your app is not followed by a carriage return, the output filtering might get confused, i.e., the monitor starts to print the line and later finds out that the line should not have been written. This is a known issue and can be avoided by always adding a carriage return (especially when no output follows immediately afterwards).
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ ૧. શરૂઆત કરો
Examples of Filtering Rules:
· * નો ઉપયોગ કોઈપણ સાથે મેચ કરવા માટે કરી શકાય છે tags. However, the string PRINT_FILTER=”*:I tag1:E” with regards to tag૧ ફક્ત ભૂલો છાપે છે, કારણ કે નિયમ tag1 has a higher priority over the rule for *.
· ડિફોલ્ટ (ખાલી) નિયમ *:V ની સમકક્ષ છે કારણ કે દરેક સાથે મેળ ખાય છે tag વર્બોઝ સ્તર અથવા નીચલા સ્તરે એટલે કે બધું જ મેચ કરવું.
· “*:N” ફક્ત લોગીંગ ફંક્શન્સમાંથી આઉટપુટ જ નહીં, પણ printf વગેરે દ્વારા બનાવેલા પ્રિન્ટ્સને પણ દબાવી દે છે. આને ટાળવા માટે, *:E અથવા ઉચ્ચ વર્બોસિટી સ્તરનો ઉપયોગ કરો.
· Rules “tag1:V”, “tag1:v”, “tag૧:", "tag૧:*", અને "tag1” are equivalent. · Rule “tag1:W tag1:E” is equivalent to “tag૧:ઈ” કારણ કે તેની કોઈપણ પરિણામી ઘટના tag
નામ પાછલા નામને ઓવરરાઈટ કરે છે. · નિયમ “tag1:આઇ tag2:W” only prints tag1 at the Info verbosity level or lower and tag2 at the Warning
verbosity level or lower. · Rule “tag1:આઇ tag2:W tag3:N” is essentially equivalent to the previous one because tag3:N સ્પષ્ટ કરે છે
કે tag૩ છાપવું જોઈએ નહીં. · tag3:N in the rule “tag1:આઇ tag2:W tag3:N *:V” is more meaningful because without tag૩:N ધ
tag૩ સંદેશાઓ છાપી શકાયા હોત; માટે ભૂલો tag1 અને tag2 એ ઉલ્લેખિત (અથવા ઓછા) વર્બોસિટી સ્તરે છાપવામાં આવશે અને બાકીનું બધું મૂળભૂત રીતે છાપવામાં આવશે.
A More Complex Filtering Example નીચેનો લોગ સ્નિપેટ કોઈપણ ફિલ્ટરિંગ વિકલ્પો વિના પ્રાપ્ત થયો હતો:
load:0x40078000,len:13564 entry 0x40078d4c E (31) esp_image: image at 0x30000 has invalid magic byte W (31) esp_image: image at 0x30000 has invalid SPI mode 255 E (39) boot: Factory app partition is not bootable I (568) cpu_start: Pro cpu up. I (569) heap_init: Initializing. RAM available for dynamic allocation: I (603) cpu_start: Pro cpu start user code D (309) light_driver: [light_init, 74]:status: 1, mode: 2 D (318) vfs: esp_vfs_register_fd_range is successful for range <54; 64) and VFS ID 1 I (328) wifi: wifi driver task: 3ffdbf84, prio:23, stack:4096, core=0
The captured output for the filtering options PRINT_FILTER=”wifi esp_image:E light_driver:I” is given below:
E (31) esp_image: image at 0x30000 has invalid magic byte I (328) wifi: wifi driver task: 3ffdbf84, prio:23, stack:4096, core=0
“PRINT_FILTER=”light_driver:D esp_image:N boot:N cpu_start:N vfs:N wifi:N *:V” વિકલ્પો નીચે મુજબનું આઉટપુટ દર્શાવે છે:
load:0x40078000,len:13564 એન્ટ્રી 0x40078d4c I (569) heap_init: શરૂ કરી રહ્યું છે. ગતિશીલ ફાળવણી માટે RAM ઉપલબ્ધ છે: D (309) light_driver: [light_init, 74]: સ્થિતિ: 1, મોડ: 2
Known Issues with IDF Monitor
Issues Observed on Windows
· વિન્ડોઝ કન્સોલ મર્યાદાઓને કારણે એરો કી, તેમજ કેટલીક અન્ય કી, GDB માં કામ કરતી નથી. · ક્યારેક, જ્યારે oidf.pypexits, IDF મોનિટર ફરી શરૂ થાય તે પહેલાં તે 30 સેકન્ડ સુધી અટકી શકે છે. · જ્યારે ogdbpis ચાલે છે, ત્યારે તે GDBStub સાથે વાતચીત શરૂ કરતા પહેલા થોડા સમય માટે અટકી શકે છે.
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ 1. Linux અને macOS માટે સ્ટાન્ડર્ડ ટૂલચેન સેટઅપ શરૂ કરો
Installation Step by Step This is a detailed roadmap to walk you through the installation process.
ડેવલપમેન્ટ એન્વાયર્નમેન્ટ સેટ કરવું તમારા ESP32 માટે ESP-IDF સેટ કરવા માટેના આ પગલાં છે. · પગલું 1. પૂર્વજરૂરીયાતો ઇન્સ્ટોલ કરો · પગલું 2. ESP-IDF મેળવો · પગલું 3. ટૂલ્સ સેટ કરો · પગલું 4. પર્યાવરણ ચલ સેટ કરો · પગલું 5. ESP-IDF પરના પ્રથમ પગલાં
Step 1. Install Prerequisites In order to use ESP-IDF with the ESP32, you need to install some software packages based on your Operating System. This setup guide will help you on getting everything installed on Linux and macOS based systems.
Linux વપરાશકર્તાઓ માટે ESP-IDF નો ઉપયોગ કરીને કમ્પાઇલ કરવા માટે તમારે નીચેના પેકેજો મેળવવાની જરૂર પડશે. ચલાવવાનો આદેશ તમે Linux ના કયા વિતરણનો ઉપયોગ કરી રહ્યા છો તેના પર આધાર રાખે છે:
· Ubuntu and Debian: sudo apt-get install git wget flex bison gperf python3 python3-pip python3venv cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0
· CentOS 7 & 8: sudo yum -y update && sudo yum install git wget flex bison gperf python3 cmake ninja-build ccache dfu-util libusbx
CentOS 7 is still supported but CentOS version 8 is recommended for a better user experience. · Arch: sudo pacman -S –needed gcc git make flex bison gperf python cmake ninja ccache dfu-util libusb
નોંધ: · ESP-IDF સાથે ઉપયોગ કરવા માટે CMake વર્ઝન 3.16 અથવા તેનાથી નવું વર્ઝન જરૂરી છે. જો તમારા OS વર્ઝનમાં યોગ્ય વર્ઝન ન હોય તો યોગ્ય વર્ઝન ઇન્સ્ટોલ કરવા માટે otools/idf_tools.py install cmakep ચલાવો. · જો તમને ઉપરોક્ત યાદીમાં તમારું Linux ડિસ્ટ્રિબ્યુશન દેખાતું નથી, તો કૃપા કરીને પેકેજ ઇન્સ્ટોલેશન માટે કયો આદેશ વાપરવો તે જાણવા માટે તેના દસ્તાવેજો તપાસો.
For macOS Users ESP-IDF will use the version of Python installed by default on macOS. · Install CMake & Ninja build: If you have HomeBrew, you can run: brew install cmake ninja dfu-util If you have MacPorts, you can run: sudo port install cmake ninja dfu-util Otherwise, consult the CMake and Ninja home pages for macOS installation downloads.
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ ૧. શરૂઆત કરો
· ઝડપી બિલ્ડ માટે ccache ઇન્સ્ટોલ કરવાની પણ ભારપૂર્વક ભલામણ કરવામાં આવે છે. જો તમારી પાસે HomeBrew છે, તો આ MacPorts પર brew install ccache અથવા sudo port install ccache દ્વારા કરી શકાય છે.
નોંધ: જો કોઈપણ પગલા દરમિયાન આ પ્રકારની ભૂલ દેખાય છે: xcrun: ભૂલ: અમાન્ય સક્રિય વિકાસકર્તા પાથ (/Library/Developer/CommandLineTools), /Library/Developer/CommandLineTools/usr/bin/xcrun પર xcrun ખૂટે છે.
પછી તમારે ચાલુ રાખવા માટે XCode કમાન્ડ લાઇન ટૂલ્સ ઇન્સ્ટોલ કરવાની જરૂર પડશે. તમે xcode-select –install ચલાવીને આ ઇન્સ્ટોલ કરી શકો છો.
Apple M1 Users If you use Apple M1 platform and see an error like this: WARNING: directory for tool xtensa-esp32-elf version esp-2021r2-patch3-8.4.0 is present, but tool was not found ERROR: tool xtensa-esp32-elf has no installed versions. Please run ‘install.sh’ to install it.
or: zsh: bad CPU type in executable: ~/.espressif/tools/xtensa-esp32-elf/esp-2021r2patch3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
Then you will need to install Apple Rosetta 2 by running /usr/sbin/softwareupdate –install-rosetta –agree-to-license
પાયથોન 3 ઇન્સ્ટોલ કરવું macOS Catalina 10.15 રિલીઝ નોટ્સના આધારે, Python 2.7 નો ઉપયોગ કરવાની ભલામણ કરવામાં આવતી નથી અને Python 2.7 ને macOS ના ભવિષ્યના વર્ઝનમાં ડિફોલ્ટ રૂપે શામેલ કરવામાં આવશે નહીં. તમારી પાસે હાલમાં કયું Python છે તે તપાસો: python –version
If the output is like Python 2.7.17, your default interpreter is Python 2.7. If so, also check if Python 3 isnnt already installed on your computer: python3 –version
If the above command returns an error, it means Python 3 is not installed. Below is an overview પાયથોન 3 ઇન્સ્ટોલ કરવા માટેના પગલાંઓ.
· હોમબ્રુ સાથે ઇન્સ્ટોલેશન નીચે મુજબ કરી શકાય છે: brew install python3
· જો તમારી પાસે MacPorts હોય, તો તમે આ ચલાવી શકો છો: sudo port install python38
પગલું 2. ESP-IDF મેળવો ESP32 માટે એપ્લિકેશનો બનાવવા માટે, તમારે ESP-IDF રિપોઝીટરીમાં Espressif દ્વારા પૂરી પાડવામાં આવેલ સોફ્ટવેર લાઇબ્રેરીઓની જરૂર પડશે. ESP-IDF મેળવવા માટે, તમારી ઇન્સ્ટોલેશન ડિરેક્ટરીમાં નેવિગેટ કરો અને git clone વડે રિપોઝીટરીને ક્લોન કરો, નીચે આપેલ સૂચનાઓને અનુસરીને, તમારી ઓપરેટિંગ સિસ્ટમ માટે વિશિષ્ટ. ટર્મિનલ ખોલો, અને નીચેના આદેશો ચલાવો:
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ ૧. શરૂઆત કરો
mkdir -p ~/esp cd ~/esp git ક્લોન -b v5.0.9 –રિકર્સિવ https://github.com/espressif/esp-idf.git
ESP-IDF ને ~/esp/esp-idf માં ડાઉનલોડ કરવામાં આવશે. આપેલ પરિસ્થિતિમાં કયા ESP-IDF સંસ્કરણનો ઉપયોગ કરવો તે વિશેની માહિતી માટે ESP-IDF સંસ્કરણોનો સંપર્ક કરો.
Step 3. Set up the tools Aside from the ESP-IDF, you also need to install the tools used by ESP-IDF, such as the compiler, debugger, Python packages, etc, for projects supporting ESP32. cd ~/esp/esp-idf ./install.sh esp32
or with Fish shell cd ~/esp/esp-idf ./install.fish esp32
The above commands install tools for ESP32 only. If you intend to develop projects for more chip targets then you should list all of them and run for exampલે: સીડી ~/esp/esp-idf ./install.sh esp32,esp32s2
or with Fish shell cd ~/esp/esp-idf ./install.fish esp32,esp32s2
In order to install tools for all supported targets please run the following command: cd ~/esp/esp-idf ./install.sh all
અથવા ફિશ શેલ સીડી સાથે ~/esp/esp-idf ./install.fish બધા
નોંધ: macOS વપરાશકર્તાઓ માટે, જો કોઈપણ પગલા દરમિયાન આવી ભૂલ દેખાય છે:urlઓપન એરર [SSL: CERTIFICATE_VERIFY_FAILED] પ્રમાણપત્ર ચકાસણી નિષ્ફળ: સ્થાનિક જારીકર્તા પ્રમાણપત્ર મેળવવામાં અસમર્થ (_ssl.c:xxx)
પ્રમાણપત્રો ઇન્સ્ટોલ કરવા માટે તમે તમારા કમ્પ્યુટરના પાયથોન ફોલ્ડરમાં Install Certificates.command ચલાવી શકો છો. વિગતો માટે, ESP-IDF ટૂલ્સ ઇન્સ્ટોલ કરતી વખતે ડાઉનલોડ ભૂલ જુઓ.
વૈકલ્પિક File Downloads The tools installer downloads a number of files GitHub Releases સાથે જોડાયેલ છે. જો GitHub ને ઍક્સેસ કરવાનું ધીમું હોય તો GitHub એસેટ ડાઉનલોડ્સ માટે Espressifns ડાઉનલોડ સર્વરને પ્રાધાન્ય આપવા માટે પર્યાવરણ ચલ સેટ કરવું શક્ય છે.
નોંધ: આ સેટિંગ ફક્ત GitHub રિલીઝમાંથી ડાઉનલોડ કરેલા વ્યક્તિગત ટૂલ્સને નિયંત્રિત કરે છે, તે બદલતું નથી URLs used to access any Git repositories.
To prefer the Espressif download server when installing tools, use the following sequence of commands when running install.sh:
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ ૧. શરૂઆત કરો
સીડી ~/esp/esp-idf નિકાસ IDF_GITHUB_ASSETS=”dl.espressif.com/github_assets” ./install.sh
ટૂલ્સ ઇન્સ્ટોલેશન પાથને કસ્ટમાઇઝ કરવું આ પગલામાં રજૂ કરાયેલ સ્ક્રિપ્ટ્સ ESP-IDF દ્વારા જરૂરી કમ્પાઇલેશન ટૂલ્સ ઇન્સ્ટોલ કરે છે જે Linux પર યુઝર હોમ ડિરેક્ટરી: $HOME/.espressif ની અંદર છે. જો તમે ટૂલ્સને અલગ ડિરેક્ટરીમાં ઇન્સ્ટોલ કરવા માંગતા હો, તો ઇન્સ્ટોલેશન સ્ક્રિપ્ટ્સ ચલાવતા પહેલા પર્યાવરણ ચલ IDF_TOOLS_PATH સેટ કરો. ખાતરી કરો કે તમારા યુઝર એકાઉન્ટ પાસે આ પાથ વાંચવા અને લખવા માટે પૂરતી પરવાનગીઓ છે. જો IDF_TOOLS_PATH બદલતા હો, તો ખાતરી કરો કે દર વખતે જ્યારે ઇન્સ્ટોલ સ્ક્રિપ્ટ (install.bat, install.ps1 અથવા install.sh) અને એક્સપોર્ટ સ્ક્રિપ્ટ (export.bat, export.ps1 અથવા export.sh) એક્ઝિક્યુટ થાય ત્યારે તે સમાન મૂલ્ય પર સેટ થયેલ છે.
પગલું 4. પર્યાવરણ ચલોને સેટ કરો ઇન્સ્ટોલ કરેલા ટૂલ્સ હજુ સુધી PATH પર્યાવરણ ચલોમાં ઉમેરવામાં આવ્યા નથી. કમાન્ડ લાઇનમાંથી ટૂલ્સને ઉપયોગી બનાવવા માટે, કેટલાક પર્યાવરણ ચલોને સેટ કરવા આવશ્યક છે. ESP-IDF બીજી સ્ક્રિપ્ટ પ્રદાન કરે છે જે તે કરે છે. ટર્મિનલમાં જ્યાં તમે ESP-IDF નો ઉપયોગ કરવા જઈ રહ્યા છો, ત્યાં ચલાવો:
. $HOME/esp/esp-idf/export.sh
અથવા માછલી માટે (માત્ર માછલી સંસ્કરણ 3.0.0 થી સમર્થિત):
. $HOME/esp/esp-idf/export.fish
Note the space between the leading dot and the path! If you plan to use esp-idf frequently, you can create an alias for executing export.sh:
1. Copy and paste the following command to your shellns profile (.પ્રોfile, .bashrc, .zprofile, વગેરે)
ઉપનામ get_idf='. $HOME/esp/esp-idf/export.sh' 2. ટર્મિનલ સત્ર પુનઃપ્રારંભ કરીને અથવા સોર્સ [પ્રો માટે માર્ગ] ચલાવીને રૂપરેખાંકન તાજું કરો.file],
ભૂતપૂર્વ માટેample, source ~/.bashrc. હવે તમે કોઈપણ ટર્મિનલ સત્રમાં esp-idf પર્યાવરણ સેટ કરવા અથવા તાજું કરવા માટે get_idf ચલાવી શકો છો. તકનીકી રીતે, તમે તમારા shellns pro માં export.sh ઉમેરી શકો છો.file સીધા; જોકે, તે આગ્રહણીય નથી. આમ કરવાથી દરેક ટર્મિનલ સત્રમાં IDF વર્ચ્યુઅલ વાતાવરણ સક્રિય થાય છે (જેમાં IDF ની જરૂર નથી તે સહિત), વર્ચ્યુઅલ વાતાવરણના હેતુને નિષ્ફળ બનાવે છે અને સંભવતઃ અન્ય સોફ્ટવેરને અસર કરે છે.
પગલું ૫. ESP-IDF પર પ્રથમ પગલાં હવે બધી આવશ્યકતાઓ પૂર્ણ થઈ ગઈ હોવાથી, આગળનો વિષય તમને તમારા પ્રથમ પ્રોજેક્ટને કેવી રીતે શરૂ કરવો તે અંગે માર્ગદર્શન આપશે. આ માર્ગદર્શિકા તમને ESP-IDF નો ઉપયોગ કરવાના પ્રથમ પગલાંમાં મદદ કરશે. ESP32 પર નવો પ્રોજેક્ટ શરૂ કરવા અને ઉપકરણ આઉટપુટ બનાવવા, ફ્લેશ કરવા અને મોનિટર કરવા માટે આ માર્ગદર્શિકાને અનુસરો.
નોંધ: જો તમે હજુ સુધી ESP-IDF ઇન્સ્ટોલ કર્યું નથી, તો કૃપા કરીને ઇન્સ્ટોલેશન પર જાઓ અને આ માર્ગદર્શિકાનો ઉપયોગ કરવા માટે જરૂરી બધા સોફ્ટવેર મેળવવા માટે સૂચનાઓનું પાલન કરો.
પ્રોજેક્ટ શરૂ કરો હવે તમે ESP32 માટે તમારી અરજી તૈયાર કરવા માટે તૈયાર છો. તમે getstarted/hello_world પ્રોજેક્ટ સાથે શરૂઆત કરી શકો છો.ampESP-IDF માં લેસ ડિરેક્ટરી.
મહત્વપૂર્ણ: ESP-IDF બિલ્ડ સિસ્ટમ ESP-IDF અથવા પ્રોજેક્ટ્સના પાથમાં જગ્યાઓને સપોર્ટ કરતી નથી.
Copy the project get-started/hello_world to ~/esp directory:
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ ૧. શરૂઆત કરો
સીડી ~/esp સીપી -આર $IDF_PATH/exampલેસ/ગેટ-સ્ટાર્ટ/હેલો_વર્લ્ડ .
નોંધ: ભૂતપૂર્વની શ્રેણી છેampભૂતપૂર્વ માં લે પ્રોજેક્ટ્સampESP-IDF માં લેસ ડિરેક્ટરી. તમે ઉપર દર્શાવ્યા પ્રમાણે કોઈપણ પ્રોજેક્ટની નકલ કરી શકો છો અને તેને ચલાવી શકો છો. ભૂતપૂર્વ બિલ્ડ કરવાનું પણ શક્ય છેamples in-place without copying them first.
Connect Your Device Now connect your ESP32 board to the computer and check under which serial port the board is visible. Serial ports have the following naming patterns:
· Linux: starting with /dev/tty · macOS: starting with /dev/cu. If you are not sure how to check the serial port name, please refer to Establish Serial Connection with ESP32 for full details.
નોંધ: પોર્ટનું નામ હાથમાં રાખો કારણ કે તમને આગલા પગલાઓમાં તેની જરૂર પડશે.
તમારા પ્રોજેક્ટને ગોઠવો તમારી hello_world ડિરેક્ટરી પર જાઓ, ESP32 ને લક્ષ્ય તરીકે સેટ કરો, અને પ્રોજેક્ટ રૂપરેખાંકન ઉપયોગિતા menuconfig ચલાવો. cd ~/esp/hello_world idf.py set-target esp32 idf.py menuconfig
નવો પ્રોજેક્ટ ખોલ્યા પછી, તમારે પહેલા idf.py set-target esp32 વડે લક્ષ્ય સેટ કરવું જોઈએ. નોંધ કરો કે પ્રોજેક્ટમાં હાલના બિલ્ડ્સ અને ગોઠવણીઓ, જો કોઈ હોય, તો તે આ પ્રક્રિયામાં સાફ અને પ્રારંભ કરવામાં આવશે. આ પગલું બિલકુલ છોડી દેવા માટે લક્ષ્યને પર્યાવરણ ચલમાં સાચવી શકાય છે. વધારાની માહિતી માટે લક્ષ્ય ચિપ પસંદ કરો: સેટ-ટાર્ગેટ જુઓ. જો અગાઉના પગલાં યોગ્ય રીતે કરવામાં આવ્યા હોય, તો નીચેનું મેનુ દેખાય છે:
Fig. 17: Project configuration – Home window You are using this menu to set up project specific variables, e.g., Wi-Fi network name and password, the processor speed, etc. Setting up the project with menuconfig may be skipped forohello_worldp, since this exampલે સાથે દોડે છે
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ ૧. શરૂઆત કરો
મૂળભૂત રૂપરેખાંકન.
ધ્યાન આપો: જો તમે ESP32-SOLO-1 મોડ્યુલ સાથે ESP32-DevKitC બોર્ડ અથવા ESP32-MIN1-1(1U) મોડ્યુલ સાથે ESP32-DevKitM-1 બોર્ડનો ઉપયોગ કરો છો, તો કૃપા કરીને ફ્લેશિંગ કરતા પહેલા મેનુકોન્ફિગમાં સિંગલ કોર મોડ (CONFIG_FREERTOS_UNICORE) સક્ષમ કરો.ampલેસ
Note: The colors of the menu could be different in your terminal. You can change the appearance with the option –style. Please run idf.py menuconfig –help for further information.
જો તમે સપોર્ટેડ ડેવલપમેન્ટ બોર્ડમાંથી કોઈ એકનો ઉપયોગ કરી રહ્યા છો, તો તમે બોર્ડ સપોર્ટ પેકેજનો ઉપયોગ કરીને તમારા ડેવલપમેન્ટને ઝડપી બનાવી શકો છો. વધુ માહિતી માટે વધારાની ટિપ્સ જુઓ.
Build the Project Build the project by running:
idf.py બિલ્ડ
આ આદેશ એપ્લિકેશન અને તમામ ESP-IDF ઘટકોનું સંકલન કરશે, પછી તે બુટલોડર, પાર્ટીશન ટેબલ અને એપ્લિકેશન દ્વિસંગી જનરેટ કરશે.
$ idf.py build Running cmake in directory /path/to/hello_world/build Executing “cmake -G Ninja –warn-uninitialized /path/to/hello_world”… Warn about uninitialized values. — Found Git: /usr/bin/git (found version “2.17.0”) — Building empty aws_iot component due to configuration — Component names: … — Component paths: …
… (બિલ્ડ સિસ્ટમ આઉટપુટની વધુ રેખાઓ)
[527/527] hello_world.bin esptool.py v2.3.1 જનરેટ કરી રહ્યું છે
Project build complete. To flash, run this command: ../../../components/esptool_py/esptool/esptool.py -p (PORT) -b 921600 write_flash -flash_mode dio –flash_size detect –flash_freq 40m 0x10000 build/hello_world. bin build 0x1000 build/bootloader/bootloader.bin 0x8000 build/partition_table/ partition-table.bin or run ‘idf.py -p PORT flash’
જો ત્યાં કોઈ ભૂલો ન હોય, તો ફર્મવેર બાઈનરી .bin જનરેટ કરીને બિલ્ડ સમાપ્ત થશે files.
Flash onto the Device Flash the binaries that you just built (bootloader.bin, partition-table.bin and hello_world.bin) onto your ESP32 board by running:
idf.py -p પોર્ટ [-b BAUD] ફ્લેશ
PORT ને તમારા ESP32 બોર્ડન્સ સીરીયલ પોર્ટ નામથી બદલો. તમે BAUD ને તમને જોઈતા બાઉડ રેટથી બદલીને ફ્લેશર બાઉડ રેટ પણ બદલી શકો છો. ડિફોલ્ટ બાઉડ રેટ 460800 છે. idf.py દલીલો વિશે વધુ માહિતી માટે, idf.py જુઓ.
Note: The option flash automatically builds and flashes the project, so running idf.py build is not necessary.
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ ૧. શરૂઆત કરો
Encountered Issues While Flashing? If you run the given command and see errors such asoFailed to connectp, there might be several reasons for this. One of the reasons might be issues encountered by esptool.py, the utility that is called by the build system to reset the chip, interact with the ROM bootloader, and flash firmware. One simple solution to try is manual reset described below, and if it does not help you can find more details about possible issues in Troubleshooting.
esptool.py resets ESP32 automatically by asserting DTR and RTS control lines of the USB to serial converter chip, i.e., FTDI or CP210x (for more information, see Establish Serial Connection with ESP32). The DTR and RTS control lines are in turn connected to GPIO0 and CHIP_PU (EN) pins of ESP32, thus changes in the voltagDTR અને RTS ના e સ્તરો ESP32 ને ફર્મવેર ડાઉનલોડ મોડમાં બુટ કરશે. ભૂતપૂર્વ તરીકેample, check the schematic for the ESP32 DevKitC development board.
સામાન્ય રીતે, તમને સત્તાવાર esp-idf ડેવલપમેન્ટ બોર્ડ સાથે કોઈ સમસ્યા ન હોવી જોઈએ. જો કે, esptool.py નીચેના કિસ્સાઓમાં તમારા હાર્ડવેરને આપમેળે રીસેટ કરવામાં સક્ષમ નથી:
· Your hardware does not have the DTR and RTS lines connected to GPIO0 and CHIP_PU · The DTR and RTS lines are configured differently · There are no such serial control lines at all
Depending on the kind of hardware you have, it may also be possible to manually put your ESP32 board into Firmware Download mode (reset).
· એસ્પ્રેસિફ દ્વારા ઉત્પાદિત ડેવલપમેન્ટ બોર્ડ માટે, આ માહિતી સંબંધિત શરૂઆત માર્ગદર્શિકાઓ અથવા વપરાશકર્તા માર્ગદર્શિકાઓમાં મળી શકે છે. ઉદાહરણ તરીકેampઅને, ESP-IDF ડેવલપમેન્ટ બોર્ડને મેન્યુઅલી રીસેટ કરવા માટે, બુટ બટન (GPIO0) દબાવી રાખો અને EN બટન (CHIP_PU) દબાવો.
· For other types of hardware, try pulling GPIO0 down.
Normal Operation When flashing, you will see the output log similar to the following:
… esptool.py –chip esp32 -p /dev/ttyUSB0 -b 460800 –before=default_reset -after=hard_reset write_flash –flash_mode dio –flash_freq 40m –flash_size 2MB 0x8000 partition_table/partition-table.bin 0x1000 bootloader/bootloader.bin 0x10000 hello_world.bin esptool.py v3.0-dev Serial port /dev/ttyUSB0 Connecting…….._ Chip is ESP32D0WDQ6 (revision 0) Features: WiFi, BT, Dual Core, Coding Scheme None Crystal is 40MHz MAC: 24:0a:c4:05:b9:14 Uploading stub… Running stub… Stub running… Changing baud rate to 460800 Changed. Configuring flash size… Compressed 3072 bytes to 103… Writing at 0x00008000… (100 %) Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.0 seconds (effective 5962.8 kbit/s)… Hash of data verified. Compressed 26096 bytes to 15408… Writing at 0x00001000… (100 %) Wrote 26096 bytes (15408 compressed) at 0x00001000 in 0.4 seconds (effective 546.7 kbit/s)… Hash of data verified. Compressed 147104 bytes to 77364… Writing at 0x00010000… (20 %) Writing at 0x00014000… (40 %) Writing at 0x00018000… (60 %) Writing at 0x0001c000… (80 %)
(આગળના પાના પર ચાલુ)
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ ૧. શરૂઆત કરો
(પાછલા પૃષ્ઠથી ચાલુ) 0x00020000 પર લખવું… (100%) 1.9 સેકન્ડમાં 0x00010000 પર 147104 બાઇટ્સ (77364 સંકુચિત) લખ્યા (અસરકારક 615. 5 kbit/s)… ડેટાનો હેશ ચકાસાયેલ.
છોડી રહ્યાં છીએ... RTS પિન દ્વારા હાર્ડ રીસેટ કરી રહ્યાં છીએ... થઈ ગયું
If there are no issues by the end of the flash process, the board will reboot and start up theohello_worldpapplication. If yound like to use the Eclipse or VS Code IDE instead of running idf.py, check out Eclipse Plugin, VSCode Extension.
આઉટપુટ મોનિટર કરો. ohello_worldpis ખરેખર ચાલી રહ્યું છે કે નહીં તે ચકાસવા માટે, idf.py -p PORT monitor લખો (PORT ને તમારા સીરીયલ પોર્ટ નામથી બદલવાનું ભૂલશો નહીં). આ આદેશ IDF મોનિટર એપ્લિકેશન શરૂ કરે છે:
$ idf.py -p <PORT> monitor Running idf_monitor in directory […]/esp/hello_world/build Executing “python […]/esp-idf/tools/idf_monitor.py -b 115200 […]/esp/hello_ world/build/hello_world.elf”… — idf_monitor on <PORT> 115200 —– Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H –ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) ets Jun 8 2016 00:22:57 …
સ્ટાર્ટઅપ અને ડાયગ્નોસ્ટિક લોગ ઉપર સ્ક્રોલ કર્યા પછી, તમારે ઓહેલો વર્લ્ડ જોવું જોઈએ!એપ્લિકેશન દ્વારા પ્રિન્ટ આઉટ.
… હેલો વર્લ્ડ! ૧૦ સેકન્ડમાં ફરી શરૂ થઈ રહ્યું છે… આ ૨ CPU કોર(કોર), WiFi/BT/BLE, સિલિકોન રિવિઝન ૧, ૨MB બાહ્ય ફ્લેશ સાથે esp32 ચિપ છે ન્યૂનતમ ફ્રી હીપ સાઇઝ: ૨૯૮૯૬૮ બાઇટ્સ ૯ સેકન્ડમાં ફરી શરૂ થઈ રહ્યું છે… ૮ સેકન્ડમાં ફરી શરૂ થઈ રહ્યું છે… ૭ સેકન્ડમાં ફરી શરૂ થઈ રહ્યું છે…
IDF મોનિટરમાંથી બહાર નીકળવા માટે શોર્ટકટ Ctrl+] નો ઉપયોગ કરો. જો IDF મોનિટર અપલોડ થયા પછી તરત જ નિષ્ફળ જાય, અથવા, ઉપરના સંદેશાઓને બદલે, તમને નીચે આપેલા સંદેશાઓ જેવો રેન્ડમ કચરો દેખાય, તો તમારું બોર્ડ કદાચ 26 MHz ક્રિસ્ટલનો ઉપયોગ કરી રહ્યું છે. મોટાભાગના ડેવલપમેન્ટ બોર્ડ ડિઝાઇન 40 MHz નો ઉપયોગ કરે છે, તેથી ESP-IDF આ ફ્રીક્વન્સીનો ઉપયોગ ડિફોલ્ટ મૂલ્ય તરીકે કરે છે.
જો તમને આવી સમસ્યા હોય, તો નીચે મુજબ કરો:
1. Exit the monitor. 2. Go back to menuconfig. 3. Go to Component config > Hardware Settings > Main XTAL Config > Main XTAL
frequency, then change CONFIG_XTAL_FREQ_SEL to 26 MHz. 4. After that, build and flash the application again.
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ ૧. શરૂઆત કરો
In the current version of ESP-IDF, main XTAL frequencies supported by ESP32 are as follows:
· ૨૬ મેગાહર્ટ્ઝ · ૪૦ મેગાહર્ટ્ઝ
Note: You can combine building, flashing and monitoring into one step by running: idf.py -p PORT flash monitor
See also: · IDF Monitor for handy shortcuts and more details on using IDF monitor. · idf.py for a full reference of idf.py commands and options.
Thatns all that you need to get started with ESP32! Now you are ready to try some other exampઓછી, અથવા સીધા તમારી પોતાની એપ્લિકેશનો વિકસાવવા પર જાઓ.
મહત્વપૂર્ણ: કેટલાક ભૂતપૂર્વamples do not support ESP32 because required hardware is not included in ESP32 so it cannot be supported. If building an exampલે, કૃપા કરીને README તપાસો file સપોર્ટેડ ટાર્ગેટ્સ ટેબલ માટે. જો આ ESP32 ટાર્ગેટ સહિત હાજર હોય, અથવા ટેબલ બિલકુલ અસ્તિત્વમાં ન હોય, તો ભૂતપૂર્વample will work on ESP32.
વધારાની ટિપ્સ
પરવાનગી સમસ્યાઓ /dev/ttyUSB0 કેટલાક Linux વિતરણો સાથે, ESP32 ફ્લેશ કરતી વખતે તમને "Failed to open port /dev/ttyUSB0" ભૂલ સંદેશ મળી શકે છે. આ સમસ્યા વર્તમાન વપરાશકર્તાને ડાયલઆઉટ જૂથમાં ઉમેરીને ઉકેલી શકાય છે.
Python compatibility ESP-IDF supports Python 3.7 or newer. It is recommended to upgrade your operating system to a recent version satisfying this requirement. Other options include the installation of Python from sources or the use of a Python version management system such as pyenv.
Start with Board Support Package To speed up prototyping on some development boards, you can use Board Support Packages (BSPs), which makes initialization of a particular board as easy as few function calls. A BSP typically supports all of the hardware components provided on development board. Apart from the pinout definition and initialization functions, a BSP ships with drivers for the external components such as sensors, displays, audio codecs etc. The BSPs are distributed via IDF Component Manager, so they can be found in IDF Component Registry. Herens an example of how to add ESP-WROVER-KIT BSP to your project: idf.py add-dependency esp_wrover_kit
વધુ માજીampBSP ઉપયોગની માહિતી BSP ex માં મળી શકે છેampલેસ ફોલ્ડર.
Tip: Updating ESP-IDF It is recommended to update ESP-IDF from time to time, as newer versions fix bugs and/or provide new features. Please note that each ESP-IDF major and minor release version has an associated support period, and when one release branch is approaching end of life (EOL), all users are encouraged to upgrade their projects to more recent ESP-IDF releases, to find out more about support periods, see ESP-IDF Versions.
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ ૧. શરૂઆત કરો
અપડેટ કરવાનો સૌથી સરળ રસ્તો એ છે કે હાલના esp-idf ફોલ્ડરને કાઢી નાખો અને તેને ફરીથી ક્લોન કરો, જાણે કે પગલું 2 માં વર્ણવેલ પ્રારંભિક ઇન્સ્ટોલેશન કરી રહ્યા હોવ. ESP-IDF મેળવો. બીજો ઉકેલ એ છે કે ફક્ત જે બદલાયું છે તે અપડેટ કરો. અપડેટ પ્રક્રિયા તમે જે ESP-IDF નો ઉપયોગ કરી રહ્યા છો તેના પર આધાર રાખે છે. ESP-IDF અપડેટ કર્યા પછી, જો નવા ESP-IDF સંસ્કરણને ટૂલ્સના વિવિધ સંસ્કરણોની જરૂર હોય તો, ફરીથી ઇન્સ્ટોલ સ્ક્રિપ્ટ ચલાવો. પગલું 3 પર સૂચનાઓ જુઓ. ટૂલ્સ સેટ કરો. એકવાર નવા ટૂલ્સ ઇન્સ્ટોલ થઈ જાય, પછી એક્સપોર્ટ સ્ક્રિપ્ટનો ઉપયોગ કરીને પર્યાવરણ અપડેટ કરો. પગલું 4 પર સૂચનાઓ જુઓ. પર્યાવરણ ચલો સેટ કરો.
Related Documents · Establish Serial Connection with ESP32 · Eclipse Plugin · VSCode Extension · IDF Monitor
૧.૪ તમારો પહેલો પ્રોજેક્ટ બનાવો
If you already have the ESP-IDF installed and not using IDE, you can build your first project from the command line following the Start a Project on Windows or Start a Project on Linux and macOS.
૧.૫ ESP-IDF અનઇન્સ્ટોલ કરો
જો તમે ESP-IDF દૂર કરવા માંગતા હો, તો કૃપા કરીને અનઇન્સ્ટોલ ESP-IDF ને અનુસરો.
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
પ્રકરણ 2
API સંદર્ભ
2.1 API Conventions
આ દસ્તાવેજ ESP-IDF એપ્લિકેશન પ્રોગ્રામિંગ ઇન્ટરફેસ (API) માટે સામાન્ય પરંપરાઓ અને ધારણાઓનું વર્ણન કરે છે. ESP-IDF અનેક પ્રકારના પ્રોગ્રામિંગ ઇન્ટરફેસ પૂરા પાડે છે:
· પબ્લિક હેડરમાં જાહેર કરાયેલ C ફંક્શન્સ, સ્ટ્રક્ચર્સ, એનમ્સ, ટાઇપ ડેફિનેશન્સ અને પ્રીપ્રોસેસર મેક્રોઝ fileESPIDF ઘટકોના s. પ્રોગ્રામિંગ માર્ગદર્શિકાના API સંદર્ભ વિભાગના વિવિધ પૃષ્ઠો પર આ કાર્યો, માળખાં અને પ્રકારોનું વર્ણન છે.
· Build system functions, predefined variables and options. These are documented in the build system guide. · Kconfig options can can be used in code and in the build system (CMakeLists.txt) files. · હોસ્ટ ટૂલ્સ અને તેમના કમાન્ડ લાઇન પેરામીટર્સ પણ ESP-IDF ઇન્ટરફેસનો ભાગ છે. ESP-IDF માં ખાસ કરીને ESP-IDF તેમજ તૃતીય-પક્ષ લાઇબ્રેરીઓ માટે લખાયેલા ઘટકોનો સમાવેશ થાય છે. કેટલાક કિસ્સાઓમાં, તૃતીય-પક્ષ લાઇબ્રેરીમાં ESP-IDF-વિશિષ્ટ રેપર ઉમેરવામાં આવે છે, જે એક ઇન્ટરફેસ પ્રદાન કરે છે જે કાં તો સરળ હોય છે અથવા બાકીની ESP-IDF સુવિધાઓ સાથે વધુ સારી રીતે સંકલિત હોય છે. અન્ય કિસ્સાઓમાં, તૃતીય-પક્ષ લાઇબ્રેરીનું મૂળ API એપ્લિકેશન ડેવલપર્સને રજૂ કરવામાં આવે છે. નીચેના વિભાગો ESP-IDF API ના કેટલાક પાસાઓ અને તેમના ઉપયોગને સમજાવે છે.
2.1.1 ભૂલ હેન્ડલિંગ
મોટાભાગના ESP-IDF APIs esp_err_t પ્રકાર સાથે વ્યાખ્યાયિત ભૂલ કોડ પરત કરે છે. ભૂલ સંભાળવાના અભિગમો વિશે વધુ માહિતી માટે ભૂલ સંભાળવાનો વિભાગ જુઓ. ભૂલ કોડ સંદર્ભમાં ESP-IDF ઘટકો દ્વારા પરત કરાયેલ ભૂલ કોડ્સની સૂચિ શામેલ છે.
૨.૧.૨ રૂપરેખાંકન માળખાં
Important: Correct initialization of configuration structures is an important part in making the application compatible with future versions of ESP-IDF.
ESP-IDF માં મોટાભાગના આરંભિકરણ અથવા રૂપરેખાંકન કાર્યો રૂપરેખાંકન માળખાના નિર્દેશક તરીકે દલીલ તરીકે લે છે. ઉદાહરણ તરીકેampલે:
45
Chapter 2. API Reference
const esp_timer_create_args_t my_timer_args = { .callback = &my_timer_callback, .arg = callback_arg, .name = “my_timer”
}; esp_timer_handle_t my_timer; esp_err_t err = esp_timer_create(&my_timer_args, &my_timer);
ઇનિશિયલાઇઝેશન ફંક્શન્સ ક્યારેય પોઇન્ટરને રૂપરેખાંકન માળખામાં સંગ્રહિત કરતા નથી, તેથી સ્ટેક પર માળખું ફાળવવાનું સલામત છે.
The application must initialize all fields of the structure. The following is incorrect:
esp_timer_create_args_t my_timer_args; my_timer_args.callback = &my_timer_callback; /* Incorrect! Fields .arg and .name are not initialized */ esp_timer_create(&my_timer_args, &my_timer);
Most ESP-IDF examples સ્ટ્રક્ચર ઇનિશિયલાઇઝેશન માટે C99 નિયુક્ત ઇનિશિયલાઇઝર્સનો ઉપયોગ કરે છે, કારણ કે તે ફીલ્ડ્સના સબસેટને સેટ કરવાની અને બાકીના ફીલ્ડ્સને શૂન્ય-ઇનિશિયલાઇઝ કરવાની સંક્ષિપ્ત રીત પ્રદાન કરે છે:
const esp_timer_create_args_t my_timer_args = { .callback = &my_timer_callback, /* સાચું, ફીલ્ડ્સ .arg અને .name શૂન્ય-પ્રારંભિક છે */
};
C++ language doesnnt support the designated initializers syntax until C++20, however GCC compiler partially supports it as an extension. When using ESP-IDF APIs in C++ code, you may consider using the following pattern:
esp_timer_create_args_t my_timer_args = {}; /* બધા ફીલ્ડ શૂન્ય-પ્રારંભિક છે */ my_timer_args.callback = &my_timer_callback;
Default initializers
કેટલાક રૂપરેખાંકન માળખાં માટે, ESP-IDF ક્ષેત્રોના ડિફોલ્ટ મૂલ્યો સેટ કરવા માટે મેક્રો પ્રદાન કરે છે:
httpd_config_t config = HTTPD_DEFAULT_CONFIG(); /* HTTPD_DEFAULT_CONFIG નિયુક્ત ઇનિશિયલાઇઝર સુધી વિસ્તરે છે.
Now all fields are set to the default values. Any field can still be modified: */ config.server_port = 8081; httpd_handle_t server; esp_err_t err = httpd_start(&server, &config);
It is recommended to use default initializer macros whenever they are provided for a particular configuration structure.
૨.૧.૩ ખાનગી API
Certain header files in ESP-IDF contain APIs intended to be used only in ESP-IDF source code, and not by the applications. Such header files માં ઘણીવાર તેમના નામ અથવા પાથમાં private અથવા esp_private હોય છે. અમુક ઘટકો, જેમ કે hal માં ફક્ત private API હોય છે. ખાનગી API ને નાના અથવા પેચ રીલીઝ વચ્ચે અસંગત રીતે દૂર કરી શકાય છે અથવા બદલી શકાય છે.
2.1.4 Components in exampલે પ્રોજેક્ટ્સ
ESP-IDF ભૂતપૂર્વamples contain a variety of projects demonstrating usage of ESP-IDF APIs. In order to reduce code duplication in the exampઓછા, થોડા સામાન્ય સહાયકો એવા ઘટકોની અંદર વ્યાખ્યાયિત કરવામાં આવે છે જેનો ઉપયોગ બહુવિધ ભૂતપૂર્વ દ્વારા થાય છેampલેસ
એસ્પ્રેસિફ સિસ્ટમ્સ
૧ દસ્તાવેજ પ્રતિસાદ સબમિટ કરો
રિલીઝ v5.0.9
Chapter 2. API Reference
આમાં સ્થિત ઘટકોનો સમાવેશ થાય છે
દસ્તાવેજો / સંસાધનો
![]() |
Espressif Systems ESP32 Dev Kitc Development Board [પીડીએફ] વપરાશકર્તા માર્ગદર્શિકા ESP32 Dev Kitc Development Board, ESP32, Dev Kitc Development Board, Kitc Development Board, Development Board, Board |