Skip to content
Commit b7967f7e authored by Thomas Altenbach's avatar Thomas Altenbach Committed by Benjamin Cabé
Browse files

samples: drivers: spi_flash: Use valid addresses/sizes for dual-flash



When a board contains two identical flash memories configured in
parallel dual-flash mode, the actual sector size is twice the sector
size of a single flash memory. So, assuming 4-KiB sectors for each flash
memory, any erase operation must be 8-KiB aligned.

This commit updates the start offset and sector size in the spi_flash
sample to be properly aligned when a dual-flash configuration is used.

At the moment, this is only supported for STM32-based boards and QSPI
flash memories.

Signed-off-by: default avatarThomas Altenbach <altenbach.thomas@gmail.com>
parent 513073b5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment