Skip to content

Commit 21cb0ef

Browse files
Taylor Nelmsbkueng
Taylor Nelms
authored andcommitted
Component: flash parameter storage on stm32h7. Fixes #15331.
As per the discussion in #15331, fixed issue where stm32h7 chips use hardware ECC bits in program memory that disallow overwriting 32-byte flash line that has already been written. As such, this change allows for a variant implementation of the flashfs system that uses more space in the flash entry header in order to allow an entire line to be reserved for erasing an entry. Signed-off-by: Taylor Nelms <[email protected]>
1 parent 6a0f394 commit 21cb0ef

File tree

2 files changed

+1208
-1
lines changed

2 files changed

+1208
-1
lines changed

src/lib/parameters/flashparams/CMakeLists.txt

+7-1
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,14 @@
3131
#
3232
############################################################################
3333

34+
if(CONFIG_ARCH_CHIP_STM32H7)
35+
set(FLASHFS_SOURCE_FILE flashfs32.c)
36+
else()
37+
set(FLASHFS_SOURCE_FILE flashfs.c)
38+
endif()
39+
3440
add_library(flashparams
35-
flashfs.c
41+
${FLASHFS_SOURCE_FILE}
3642
flashparams.cpp
3743
)
3844

0 commit comments

Comments
 (0)