This is an automated email from the ASF dual-hosted git repository. simbit18 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 76e1c9764284baa0360fffc1ceffdd5e5e421f16 Author: Filipe Cavalcanti <[email protected]> AuthorDate: Fri Feb 20 11:16:51 2026 -0300 documentation: document esp32s2-saola-1:efuse defconfig Adds description for the efuse defconfig on esp32s2-saola-1 board. Signed-off-by: Filipe Cavalcanti <[email protected]> --- .../esp32s2/boards/esp32s2-saola-1/index.rst | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/Documentation/platforms/xtensa/esp32s2/boards/esp32s2-saola-1/index.rst b/Documentation/platforms/xtensa/esp32s2/boards/esp32s2-saola-1/index.rst index 3cd9b2ea88d..b95ed334996 100644 --- a/Documentation/platforms/xtensa/esp32s2/boards/esp32s2-saola-1/index.rst +++ b/Documentation/platforms/xtensa/esp32s2/boards/esp32s2-saola-1/index.rst @@ -232,6 +232,42 @@ was successful by running ``cxxtest``:: Invalid file! /invalid File /proc/version exists! +efuse +----- + +This configuration demonstrates the use of the E-Fuse driver. It can be accessed +through the ``/dev/efuse`` device file. +Virtual E-Fuse mode can be used by enabling `CONFIG_ESPRESSIF_EFUSE_VIRTUAL` +option to prevent possible damages on chip. + +The following snippet demonstrates how to read MAC address: + +.. code-block:: C + + int fd; + int ret; + uint8_t mac[6]; + struct efuse_param_s param; + struct efuse_desc_s mac_addr = + { + .bit_offset = 1, + .bit_count = 48 + }; + + const efuse_desc_t* desc[] = + { + &mac_addr, + NULL + }; + param.field = desc; + param.size = 48; + param.data = mac; + + fd = open("/dev/efuse", O_RDONLY); + ret = ioctl(fd, EFUSEIOC_READ_FIELD, ¶m); + +To find offset and count variables for related E-Fuse, please refer to Espressif's Technical Reference Manuals. + gpio ----
