At+Fs-Filesystem Operations - Espressif Systems ESP32 Instruction Set

At instruction set and examples
Hide thumbs Also See for ESP32:
Table of Contents

Advertisement

!
Notes
Example
3.2.12. AT+FS—Filesystem Operations *
Command
Response
Parameters
Notes
Espressif
at_customize.bin has to be downloaded, so that the relevant commands can be used. For
more details about at_customize.bin please refer to the ESP32_Customize_Partitions.
Important things to note when erasing user partitions:
‣ When erasing the targeted user partition in its entirety, parameters <offset> and
<length> can be omitted. For example, command AT+SYSFLASH=0,"ble_data" can
erase the entire "ble_data" user partition.
‣ If parameters <offset> and <length> are not omitted when erasing the user partition,
they have to be 4KB-aligned.
The introduction to partitions is in
// read 100 bytes from the "ble_data" partition offset 0.
AT+SYSFLASH=2,"ble_data",0,100
// write 10 bytes to the "ble_data" partition offset 100.
AT+SYSFLASH=1,"ble_data",100,10
// erase 8192 bytes from the "ble_data" partition offset 4096.
AT+SYSFLASH=0,"ble_data",4096,8192
Set Command:
AT+FS=<type>,<operation>,<filename>,<offset>,<length>
OK
<type>: only FATFS is currently supported
‣ 0: FATFS
<operation>:
‣ 0: delete file
‣ 1: write file
‣ 2: read file
‣ 3: query the size of the file
‣ 4: list files in a specific directory, only root directory is currently supported
<offset>: offset, for writing and reading operations only
<length>: data length, for writing and reading operations only
This function is disabled by default. User needs to set configuration by "make
menuconfig" to enable it, and re-compile the ESP32 AT firmware.
at_customize.bin has to be downloaded, so that the relevant commands can be used.
The definitions of user partitions are in esp32-at/at_customize.csv. Please refer to the
ESP32_Customize_Partitions
! /! 9 97
ESP-IDF Partition
Tables.
for more details.
3. Basic AT Commands
2019.06

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP32 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents