From cd3ccd8766bc68c245e9e9a0c410e387b23b48b0 Mon Sep 17 00:00:00 2001 From: Peter van der Perk Date: Fri, 5 Jan 2024 14:57:16 +0100 Subject: [PATCH] fmu-v6xrt: extend bl and link to 64M flash size --- boards/px4/fmu-v6xrt/firmware.prototype | 2 +- boards/px4/fmu-v6xrt/nuttx-config/scripts/script.ld | 2 +- boards/px4/fmu-v6xrt/src/hw_config.h | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/boards/px4/fmu-v6xrt/firmware.prototype b/boards/px4/fmu-v6xrt/firmware.prototype index a94d419a3d7a..5dc476e28645 100644 --- a/boards/px4/fmu-v6xrt/firmware.prototype +++ b/boards/px4/fmu-v6xrt/firmware.prototype @@ -7,7 +7,7 @@ "summary": "PX4FMUv6XRT", "version": "0.1", "image_size": 0, - "image_maxsize": 4063232, + "image_maxsize": 66977792, "git_identity": "", "board_revision": 0 } diff --git a/boards/px4/fmu-v6xrt/nuttx-config/scripts/script.ld b/boards/px4/fmu-v6xrt/nuttx-config/scripts/script.ld index dc05748b6adf..de0e2ac62d86 100644 --- a/boards/px4/fmu-v6xrt/nuttx-config/scripts/script.ld +++ b/boards/px4/fmu-v6xrt/nuttx-config/scripts/script.ld @@ -34,7 +34,7 @@ MEMORY { - flash (rx) : ORIGIN = 0x30020000, LENGTH = 4M-128K /* We have 64M but we do not want to wait to program it all */ + flash (rx) : ORIGIN = 0x30020000, LENGTH = 64M-128K /* We have 64M but we do not want to wait to program it all */ sram (rwx) : ORIGIN = 0x20240000, LENGTH = 2M-256k-512k itcm (rwx) : ORIGIN = 0x00000000, LENGTH = 256K /* TODO FlexRAM partition */ dtcm (rwx) : ORIGIN = 0x20000000, LENGTH = 256K diff --git a/boards/px4/fmu-v6xrt/src/hw_config.h b/boards/px4/fmu-v6xrt/src/hw_config.h index 19611e379cb6..46d9738e93a0 100644 --- a/boards/px4/fmu-v6xrt/src/hw_config.h +++ b/boards/px4/fmu-v6xrt/src/hw_config.h @@ -74,9 +74,9 @@ #define BOARD_TYPE 35 // The board has a 64 Mb part with 16384, 4K secors, but we artificialy limit it to 4 Mb // as 1024, 4K sectors -#define BOARD_FLASH_SECTORS 1024 // Really (16384) +#define BOARD_FLASH_SECTORS 16383 // Really (16384 - 1) #define BOARD_FIRST_FLASH_SECTOR_TO_ERASE 32 // We resreve 128K for the bootloader -#define BOARD_FLASH_SIZE (4 * 1024 * 1024) +#define BOARD_FLASH_SIZE (64 * 1024 * 1024) #define OSC_FREQ 24