mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-07-24 15:27:41 +08:00
fix(bootloader): Fix V6X-RT bootloader on GCC13 and above
GCC13 does aggresive optimizations that causes a RWW violation. Causing the bootloader to crash while updating. Add compiler arguements to reduce optimizations fixing the issue.
This commit is contained in:
committed by
Peter van der Perk
parent
5332d2b13f
commit
db8557e96d
@@ -41,3 +41,8 @@ target_link_libraries(arch_bootloader
|
||||
bootloader_lib
|
||||
nuttx_arch
|
||||
)
|
||||
|
||||
target_compile_options(arch_bootloader PRIVATE
|
||||
-O1
|
||||
-fno-builtin # disable builtin functions
|
||||
)
|
||||
|
||||
@@ -34,3 +34,8 @@
|
||||
px4_add_library(arch_board_romapi
|
||||
imxrt_romapi.c
|
||||
)
|
||||
|
||||
target_compile_options(arch_board_romapi PRIVATE
|
||||
-O1
|
||||
-fno-builtin # disable builtin functions
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user