EasyManua.ls Logo

Espressif Systems ESP - Page 139

Default Icon
191 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 4. Software framework
4.9.29 When using the release/v3.3 version of ESP8266-RTOS-SDK, how to enter Light-
sleep mode?
First set the wake-up mode of Light-sleep mode, please refer to
ESP8266_RTOS_SDK/components/esp8266/include/esp_sleep.h.
Then use the esp_light_sleep_start() API to enter Light-sleep mode.
You can refer to the esp-idf/examples/system/light_sleep/main/light_sleep_example_main.c example for im-
plementation logic.
Please read API Reference for API descriptions about sleep modes in ESP8266-RTOS-SDK.
4.9.30 How to wake up ESP8266 in Deep sleep mode?
The ESP8266 can only be awakened from Deep sleep mode via RTC Timer, the timing duration is set by user
via esp_deep_sleep, and GPIO16(XPD_DCDC) should be connected to EXT_RSTB through a 0 Ω resistor to
support such function. Please refer to related API descriptions.
4.9.31 When using the ESP32-WROVER module, there is a problem of battery jitter or
abnormal power-o and power-on, causing the system to crash and fail to wake
up. What is the reason?
Application scenario: The current is about 12 uA during sleep. When the battery is unplugged or the product is
shaken, it will cause power failure, but there is still electricity in the capacitor. During the process of discharging
ESP32 from 3.3 V to 0 V, ESP32 will fail to wake up when powered on again with 3.3 V.
Please check whether the chip VCC and EN meet the power-on sequence requirements.
Consider adding a reset chip to ensure normal timing.
For ESP32 power-on and reset timing description, please refer to ESP32 Datasheet.
4.9.32 How to ash a customized mac address?
You can start by understanding the MAC mechanics of ESP modules, please refer to Introduction to Mac
Addresses. There are currently 2 options for burning customized MAC addresses:
Option 1: directly 󰝙ash it into efuse blk3.
Option 2: Store in 󰝙ash. It is not recommended to store the MAC address in the default NVS partition.
It is recommended to create a customized NVS partition for storing customized Mac addresses. For more
information on the use of customized MAC addresses, please refer to base_mac_address.
4.9.33 When ESP32 uses esp_timer, network communication or Bluetooth communica-
tion is abnormal. What is the reason?
esp_timer is a high-precision hardware timer component, and some background components also use it to
complete some system tasks. When using esp_timer, please do not call delay and blocking APIs in the callback
function of the timer, and try to ensure that the function is executed as quickly as possible, so as not to a󰝗ect
the performance of other system components.
If you do not need very high time precision, please use the timer component xTimer in FreeRTOS.
Espressif Systems 122
Submit Document Feedback
Release master

Table of Contents