Skip to content

Commit

Permalink
Merge branch 'bugfix/test_esp_flash_write' into 'master'
Browse files Browse the repository at this point in the history
fix(spi_flash): Fix Test esp_flash_write

Closes IDFCI-2416

See merge request espressif/esp-idf!35181
  • Loading branch information
Konstantin Kondrashov committed Nov 26, 2024
2 parents 8214dc4 + 864d9ed commit 874ce4d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 874ce4d

Please sign in to comment.