Skip to content
Commit 382ee011 authored by Christoph Heller's avatar Christoph Heller Committed by Carles Cufí
Browse files

drivers: flash: stm32h7x: Fix wrong flash write offset



The flash_stm32_write_range() function of the STM32H7x flash
driver partially uses a wrong flash program word size for certain
SOC types when calculating the flash write offset. If the used
SOC is not having a flash program word size of 256 bits / 32 bytes
the written data might get corrupted, as the flash write offset
value does not match the number of bytes that were actually
written.

Fixes #45568

Signed-off-by: default avatarChristoph Heller <chris@metanetics.de>
parent 12532ee1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment