Browse Source

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>
pr-sensor-distance
Taylor Nelms 3 years ago committed by Beat Küng
parent
commit
21cb0ef50f
  1. 8
      src/lib/parameters/flashparams/CMakeLists.txt
  2. 1201
      src/lib/parameters/flashparams/flashfs32.c

8
src/lib/parameters/flashparams/CMakeLists.txt

@ -31,8 +31,14 @@ @@ -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
)

1201
src/lib/parameters/flashparams/flashfs32.c

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save