From 2c3908d72de72fddf21bb849fae1c4588781067c Mon Sep 17 00:00:00 2001 From: Teesmo Date: Thu, 31 Oct 2024 18:45:10 +0200 Subject: [PATCH] Add page size and pages per block for the MT29F1 series of chips --- spi_nand_flash/src/nand.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spi_nand_flash/src/nand.c b/spi_nand_flash/src/nand.c index 804c4f1aee..a50cdee235 100644 --- a/spi_nand_flash/src/nand.c +++ b/spi_nand_flash/src/nand.c @@ -153,6 +153,8 @@ static esp_err_t spi_nand_micron_init(spi_nand_flash_device_t *dev) dev->read_page_delay_us = 46; dev->program_page_delay_us = 220; dev->dhara_nand.num_blocks = 1024; + dev->dhara_nand.log2_ppb = 6; // 64 pages per block + dev->dhara_nand.log2_page_size = 11; // 2048 bytes per page break; default: return ESP_ERR_INVALID_RESPONSE;