mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
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:
parent
6a0f394d46
commit
21cb0ef50f
@ -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
Normal file
1201
src/lib/parameters/flashparams/flashfs32.c
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user