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
This commit is contained in:
Peter Barker 2024-10-17 13:21:54 +11:00 committed by Andrew Tridgell
parent de675641ad
commit 4e0930a09d
3 changed files with 6 additions and 6 deletions

View File

@ -105,8 +105,8 @@ SECTIONS
. = ALIGN(4); . = ALIGN(4);
__ram3_init_text__ = LOADADDR(.fastramfunc); __ram3_init_text__ = LOADADDR(.fastramfunc);
__ram3_init__ = .; __ram3_init__ = .;
/* ChibiOS won't boot unless these are excluded */ /* ChibiOS won't boot unless some of these are excluded */
EXCLUDE_FILE (*vectors.o *crt0_v7m.o *crt1.o *board.o) EXCLUDE_FILE (*vectors.o *crt0_v7m.o *crt1.o *board.o *chprintf.o)
/* performance critical sections of ChibiOS */ /* performance critical sections of ChibiOS */
*libch.a:ch*.*(.text*) *libch.a:ch*.*(.text*)
*libch.a:nvic.*(.text*) *libch.a:nvic.*(.text*)

View File

@ -106,8 +106,8 @@ SECTIONS
__ram3_init_text__ = LOADADDR(.fastramfunc); __ram3_init_text__ = LOADADDR(.fastramfunc);
__ram3_init__ = .; __ram3_init__ = .;
/* performance critical sections of ChibiOS */ /* performance critical sections of ChibiOS */
/* ChibiOS won't boot unless these are excluded */ /* ChibiOS won't boot unless some of these are excluded */
EXCLUDE_FILE (*vectors.o *crt0_v7m.o *crt1.o) *libch.a:ch*.*(.text*) EXCLUDE_FILE (*vectors.o *crt0_v7m.o *crt1.o *chprintf.o) *libch.a:ch*.*(.text*)
*libch.a:nvic.*(.text*) *libch.a:nvic.*(.text*)
*libch.a:bouncebuffer.*(.text*) *libch.a:bouncebuffer.*(.text*)
*libch.a:stm32_util.*(.text*) *libch.a:stm32_util.*(.text*)

View File

@ -106,8 +106,8 @@ SECTIONS
__ram3_init_text__ = LOADADDR(.fastramfunc); __ram3_init_text__ = LOADADDR(.fastramfunc);
__ram3_init__ = .; __ram3_init__ = .;
/* performance critical sections of ChibiOS */ /* performance critical sections of ChibiOS */
/* ChibiOS won't boot unless these are excluded */ /* ChibiOS won't boot unless some of these are excluded */
EXCLUDE_FILE (*vectors.o *crt0_v7m.o *crt1.o) *libch.a:ch*.*(.text*) EXCLUDE_FILE (*vectors.o *crt0_v7m.o *crt1.o *chprintf.o) *libch.a:ch*.*(.text*)
*libch.a:nvic.*(.text*) *libch.a:nvic.*(.text*)
*libch.a:bouncebuffer.*(.text*) *libch.a:bouncebuffer.*(.text*)
*libch.a:stm32_util.*(.text*) *libch.a:stm32_util.*(.text*)