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 <tnelms@roboticresearch.com>
This commit is contained in:
Taylor Nelms 2022-06-27 09:36:24 -04:00 committed by Beat Küng
parent 6a0f394d46
commit 21cb0ef50f
2 changed files with 1208 additions and 1 deletions

View File

@ -31,8 +31,14 @@
#
############################################################################
if(CONFIG_ARCH_CHIP_STM32H7)
set(FLASHFS_SOURCE_FILE flashfs32.c)
else()
set(FLASHFS_SOURCE_FILE flashfs.c)
endif()
add_library(flashparams
flashfs.c
${FLASHFS_SOURCE_FILE}
flashparams.cpp
)

File diff suppressed because it is too large Load Diff