Other Storages
Can ESP32 use LittleFS file system?
LittleFS is a third-party component esp_littlefs, which can be used directly in ESP-IDF. You can use the mklittlefs tool for the image of LittleFS file system.
How to check the memory usage (e.g., DRAM, IRAM, rodata) of ESP32 chips?
You can check the estimated occupied static storage of ESP32 chips by inputting the instruction
idf.py size-components
under corresponding directories in terminal. You can use heap_caps_get_info to obtain dynamic applied memory during operation.
What is the available size of RTC RAM in ESP8266 for users?
The available RTC RAM in ESP8266 for users is 512 bytes (0x200). Please see descriptions in`esp8266.ld <https://github.com/espressif/ESP8266_RTOS_SDK/blob/release/v3.4/components/esp8266/ld/esp8266.ld>`_.
How to enable exFAT?
- CHIP: ESP32
please modify #define FF_FS_EXFAT 0 as #define FF_FS_EXFAT 1 , please reffer to ffconf.h for details.
Is there a limit to the number of partitions in the partition table of ESP32?
Yes. The length of partition table is 0xC00 bytes (can store up to 95 partition table entries). Please refer to the description in partition table.
How to read the remaining memory of the ESP32 chip?
The remaining memory of the chip RAM can be read through esp_get_free_heap_size().
What should I pay attention to when using xTaskCreateStatic()
in ESP-IDF?
You can refer to the xTaskCreateStatic() description.
Based on the ESP-IDF SDK, when defining a global variable with RTC_NOINIT_ATTR uint32_t counter = 0;, the printed value is 1368610594. What is the reason for this?
The RTC_NOINIT_ATTR variable is compiled into the .rtc_noinit section, which is not cleared at startup. Therefore, assigning a value at variable initialization will not take effect. It only becomes effective when assigned after initialization.
When using RTC_NOINIT_ATTR to define a global variable, it is necessary to assign a value to the variable in the application code. The correct approach is as follows:
RTC_NOINIT_ATTR uint32_t counter; counter = 0; printf("Counter value: %"PRIu32" \n",counter);