This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit e499efd1190e4dc0c500413d28c475a3521eca86 Author: Tiago Medicci Serrano <tiago.medi...@espressif.com> AuthorDate: Thu Mar 27 11:52:00 2025 -0300 boards/xtensa/esp32: Enable SPI Flash's MTD block This commit enables the SPI Flash's MTD block driver. This block driver enables testing the SPI Flash device without any associated filesystems. Signed-off-by: Tiago Medicci Serrano <tiago.medi...@espressif.com> --- boards/xtensa/esp32/common/src/esp32_board_spiflash.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/boards/xtensa/esp32/common/src/esp32_board_spiflash.c b/boards/xtensa/esp32/common/src/esp32_board_spiflash.c index 56ad37c2fa..014d1390f5 100644 --- a/boards/xtensa/esp32/common/src/esp32_board_spiflash.c +++ b/boards/xtensa/esp32/common/src/esp32_board_spiflash.c @@ -429,6 +429,13 @@ static int init_storage_partition(void) return ret; } + ret = ftl_initialize(0, mtd); + if (ret < 0) + { + syslog(LOG_ERR, "ERROR: Failed to initialize the FTL layer: %d\n", + ret); + return ret; + } #endif return ret;