From 4e0930a09d1394f72b67fd927b7a1f20df4a48cc Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 17 Oct 2024 13:21:54 +1100 Subject: [PATCH] AP_HAL_ChibiOS: exclude chprintf from fastramfunc on H730 we are overflowing the ITCM area for SPRacingH7RF and other boards are not far behind. Step away from the edge by removing this function which should never be in a fast path --- libraries/AP_HAL_ChibiOS/hwdef/common/common_extf.ld | 4 ++-- libraries/AP_HAL_ChibiOS/hwdef/common/common_extf_h730.ld | 4 ++-- libraries/AP_HAL_ChibiOS/hwdef/common/common_extf_h750.ld | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/common/common_extf.ld b/libraries/AP_HAL_ChibiOS/hwdef/common/common_extf.ld index 8843b69dde..fe873acf1c 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/common/common_extf.ld +++ b/libraries/AP_HAL_ChibiOS/hwdef/common/common_extf.ld @@ -105,8 +105,8 @@ SECTIONS . = ALIGN(4); __ram3_init_text__ = LOADADDR(.fastramfunc); __ram3_init__ = .; - /* ChibiOS won't boot unless these are excluded */ - EXCLUDE_FILE (*vectors.o *crt0_v7m.o *crt1.o *board.o) + /* ChibiOS won't boot unless some of these are excluded */ + EXCLUDE_FILE (*vectors.o *crt0_v7m.o *crt1.o *board.o *chprintf.o) /* performance critical sections of ChibiOS */ *libch.a:ch*.*(.text*) *libch.a:nvic.*(.text*) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/common/common_extf_h730.ld b/libraries/AP_HAL_ChibiOS/hwdef/common/common_extf_h730.ld index d46fadcf7c..a0d7451d19 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/common/common_extf_h730.ld +++ b/libraries/AP_HAL_ChibiOS/hwdef/common/common_extf_h730.ld @@ -106,8 +106,8 @@ SECTIONS __ram3_init_text__ = LOADADDR(.fastramfunc); __ram3_init__ = .; /* performance critical sections of ChibiOS */ - /* ChibiOS won't boot unless these are excluded */ - EXCLUDE_FILE (*vectors.o *crt0_v7m.o *crt1.o) *libch.a:ch*.*(.text*) + /* ChibiOS won't boot unless some of these are excluded */ + EXCLUDE_FILE (*vectors.o *crt0_v7m.o *crt1.o *chprintf.o) *libch.a:ch*.*(.text*) *libch.a:nvic.*(.text*) *libch.a:bouncebuffer.*(.text*) *libch.a:stm32_util.*(.text*) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/common/common_extf_h750.ld b/libraries/AP_HAL_ChibiOS/hwdef/common/common_extf_h750.ld index ab1f170f43..ebe47db4a8 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/common/common_extf_h750.ld +++ b/libraries/AP_HAL_ChibiOS/hwdef/common/common_extf_h750.ld @@ -106,8 +106,8 @@ SECTIONS __ram3_init_text__ = LOADADDR(.fastramfunc); __ram3_init__ = .; /* performance critical sections of ChibiOS */ - /* ChibiOS won't boot unless these are excluded */ - EXCLUDE_FILE (*vectors.o *crt0_v7m.o *crt1.o) *libch.a:ch*.*(.text*) + /* ChibiOS won't boot unless some of these are excluded */ + EXCLUDE_FILE (*vectors.o *crt0_v7m.o *crt1.o *chprintf.o) *libch.a:ch*.*(.text*) *libch.a:nvic.*(.text*) *libch.a:bouncebuffer.*(.text*) *libch.a:stm32_util.*(.text*)