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