Skip to content

Commit bd67c23

Browse files
pdgendtMaureenHelm
authored andcommitted
drivers: flash: mcux flexspi nor: Fix write if size > SPI_NOR_PAGE_SIZE
This fixes a bug in the write function of the MCUX FlexSPI flash driver if the length of the data is larger than a single page. Signed-off-by: Pieter De Gendt <[email protected]>
1 parent f5f5028 commit bd67c23

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/flash/flash_mcux_flexspi_nor.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ static int flash_flexspi_nor_write(const struct device *dev, off_t offset,
350350
flash_flexspi_nor_page_program(dev, offset, src, i);
351351
flash_flexspi_nor_wait_bus_busy(dev);
352352
memc_flexspi_reset(data->controller);
353+
src += i;
353354
offset += i;
354355
len -= i;
355356
}

0 commit comments

Comments
 (0)