From d00f8b7898b468b4d88b055dbd6607f1c76da1ad Mon Sep 17 00:00:00 2001 From: Konstantin Kondrashov Date: Mon, 25 Nov 2024 17:12:25 +0200 Subject: [PATCH] fix(spi_flash): Fix Test esp_flash_write --- .../spi_flash/test_apps/mspi_test/main/test_read_write.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/spi_flash/test_apps/mspi_test/main/test_read_write.c b/components/spi_flash/test_apps/mspi_test/main/test_read_write.c index 8711e1d885..d7d9302fdf 100644 --- a/components/spi_flash/test_apps/mspi_test/main/test_read_write.c +++ b/components/spi_flash/test_apps/mspi_test/main/test_read_write.c @@ -223,9 +223,8 @@ static void IRAM_ATTR test_write(int dst_off, int src_off, int len) } ESP_ERROR_CHECK(esp_flash_write(NULL, src_buf + src_off, start + dst_off, len)); - fix_rom_func(); - spi_flash_disable_interrupts_caches_and_other_cpu(); + fix_rom_func(); esp_rom_spiflash_result_t rc = esp_rom_spiflash_read(start, dst_buf, sizeof(dst_buf)); spi_flash_enable_interrupts_caches_and_other_cpu(); TEST_ASSERT_EQUAL_HEX(rc, ESP_ROM_SPIFLASH_RESULT_OK);