Skip to content

Commit

Permalink
Component: flash parameter storage on stm32h7. Fixes PX4#15331.
Browse files Browse the repository at this point in the history
    As per the discussion in PX4#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]>
  • Loading branch information
Taylor Nelms authored and bkueng committed Jul 25, 2022
1 parent 6a0f394 commit 21cb0ef
Show file tree
Hide file tree
Showing 2 changed files with 1,208 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/lib/parameters/flashparams/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down
Loading

0 comments on commit 21cb0ef

Please sign in to comment.