From 9cf38932669594fc66d956183842b370a62a5d89 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Tue, 10 Jun 2025 14:09:43 +1200 Subject: [PATCH] boards: fixup image size of KakuteH7 dualimu We have 1 sector for the bootloader and the last 2 for parameters. That's to match how ArduPilot has it. --- .../holybro_kakuteh7dualimu_bootloader.bin | Bin 41844 -> 41844 bytes .../kakuteh7dualimu/firmware.prototype | 2 +- .../nuttx-config/scripts/script.ld | 2 +- .../holybro/kakuteh7dualimu/src/hw_config.h | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) diff --git a/boards/holybro/kakuteh7dualimu/extras/holybro_kakuteh7dualimu_bootloader.bin b/boards/holybro/kakuteh7dualimu/extras/holybro_kakuteh7dualimu_bootloader.bin index ca38b363467fe6395832862205aefbc383950e4e..d0b7bfa91b45b67d57f31678d48cad1bc2d3b387 100755 GIT binary patch delta 32 qcmV+*0N?-g#sc)l0THozeyQC=JvA diff --git a/boards/holybro/kakuteh7dualimu/firmware.prototype b/boards/holybro/kakuteh7dualimu/firmware.prototype index ff5cece0a7..4e00d7a8fc 100644 --- a/boards/holybro/kakuteh7dualimu/firmware.prototype +++ b/boards/holybro/kakuteh7dualimu/firmware.prototype @@ -7,7 +7,7 @@ "summary": "KAKUTEH7", "version": "0.1", "image_size": 0, - "image_maxsize": 1835008, + "image_maxsize": 1703936, "git_identity": "", "board_revision": 0 } diff --git a/boards/holybro/kakuteh7dualimu/nuttx-config/scripts/script.ld b/boards/holybro/kakuteh7dualimu/nuttx-config/scripts/script.ld index ae07f4bfca..31780fad15 100644 --- a/boards/holybro/kakuteh7dualimu/nuttx-config/scripts/script.ld +++ b/boards/holybro/kakuteh7dualimu/nuttx-config/scripts/script.ld @@ -110,7 +110,7 @@ MEMORY { ITCM_RAM (rwx) : ORIGIN = 0x00000000, LENGTH = 64K - FLASH (rx) : ORIGIN = 0x08020000, LENGTH = 1792K /* params in last sector */ + FLASH (rx) : ORIGIN = 0x08020000, LENGTH = 1664K /* params in last two sectors */ DTCM1_RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 64K DTCM2_RAM (rwx) : ORIGIN = 0x20010000, LENGTH = 64K diff --git a/boards/holybro/kakuteh7dualimu/src/hw_config.h b/boards/holybro/kakuteh7dualimu/src/hw_config.h index 03823de861..9620345ff3 100644 --- a/boards/holybro/kakuteh7dualimu/src/hw_config.h +++ b/boards/holybro/kakuteh7dualimu/src/hw_config.h @@ -72,7 +72,7 @@ #define BOARD_TYPE 5409 #define BOARD_FLASH_SECTORS (14) #define BOARD_FLASH_SIZE (16 * 128 * 1024) -#define APP_RESERVATION_SIZE (1 * 128 * 1024) +#define APP_RESERVATION_SIZE (2 * 128 * 1024) #define OSC_FREQ 8