From eab923fee0ad37c8a00d07e8aa3958cc2cc929f5 Mon Sep 17 00:00:00 2001 From: Stacey Sheldon Date: Sun, 25 Mar 2012 17:49:39 -0400 Subject: [PATCH] revo: move fw image into 128KB sectors This saves the more versatile 16KB and 64KB sectors for other purposes. --- flight/PiOS/STM32F4xx/link_STM32F4xx_OP_memory.ld | 3 ++- make/boards/revolution/board-info.mk | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/flight/PiOS/STM32F4xx/link_STM32F4xx_OP_memory.ld b/flight/PiOS/STM32F4xx/link_STM32F4xx_OP_memory.ld index d6082e917..9f279355d 100644 --- a/flight/PiOS/STM32F4xx/link_STM32F4xx_OP_memory.ld +++ b/flight/PiOS/STM32F4xx/link_STM32F4xx_OP_memory.ld @@ -1,7 +1,8 @@ MEMORY { BD_INFO (r) : ORIGIN = 0x08008000 - 0x80, LENGTH = 0x000080 - FLASH (rx) : ORIGIN = 0x08008000, LENGTH = 0x100000 - 0x008000 + RSVD (rx) : ORIGIN = 0x08008000, LENGTH = 0x020000 - 0x008000 + FLASH (rx) : ORIGIN = 0x08020000, LENGTH = 0x0e0000 SRAM (rwx) : ORIGIN = 0x20000000, LENGTH = 0x020000 CCSRAM (rw) : ORIGIN = 0x10000000, LENGTH = 0x010000 } diff --git a/make/boards/revolution/board-info.mk b/make/boards/revolution/board-info.mk index 77296b09f..6cdd659a8 100644 --- a/make/boards/revolution/board-info.mk +++ b/make/boards/revolution/board-info.mk @@ -15,8 +15,11 @@ OPENOCD_CONFIG := stm32f4xx.stlink.cfg # Note: These must match the values in link_$(BOARD)_memory.ld BL_BANK_BASE := 0x08000000 # Start of bootloader flash BL_BANK_SIZE := 0x00008000 # Should include BD_INFO region -FW_BANK_BASE := 0x08008000 # Start of firmware flash -FW_BANK_SIZE := 0x00038000 # Should include FW_DESC_SIZE + +# Leave the remaining 16KB and 64KB sectors for other uses + +FW_BANK_BASE := 0x08020000 # Start of firmware flash +FW_BANK_SIZE := 0x00040000 # Should include FW_DESC_SIZE FW_DESC_SIZE := 0x00000064