mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 03:23:35 +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:
@@ -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
|
add_library(flashparams
|
||||||
flashfs.c
|
${FLASHFS_SOURCE_FILE}
|
||||||
flashparams.cpp
|
flashparams.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user