From 2520161bf08b0ad76c47262c04e8a62e0eb88c94 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 7 Oct 2024 10:01:23 +1100 Subject: [PATCH] SPRacingH7: pin SPRacingH7 to 128kB of program space --- libraries/AP_HAL_ChibiOS/hwdef/SPRacingH7RF/hwdef.dat | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/SPRacingH7RF/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/SPRacingH7RF/hwdef.dat index b96f7f01b2d4a..9d8d7cc259442 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/SPRacingH7RF/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/SPRacingH7RF/hwdef.dat @@ -26,6 +26,10 @@ define HAL_FLASH_PROTECTION 1 EXT_FLASH_SIZE_MB 2 +# pin program size limit to 128kB. If we don't do this then "flashram" +# (the ".ramfunc" space) overflows. +define HAL_PROGRAM_SIZE_LIMIT_KB 128 + I2C_ORDER I2C1 I2C2 # order of UARTs (and USB)