From 7c8490211b4f5e681881023a4bf132346bbcd0f2 Mon Sep 17 00:00:00 2001 From: jaseg Date: Thu, 1 Nov 2018 16:39:56 +0900 Subject: Make demo work with STM32F4 board from aliexpress for SecureHID project --- libusbhost_stm32f4.ld | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'libusbhost_stm32f4.ld') diff --git a/libusbhost_stm32f4.ld b/libusbhost_stm32f4.ld index b814cc2..4f676ec 100644 --- a/libusbhost_stm32f4.ld +++ b/libusbhost_stm32f4.ld @@ -18,13 +18,16 @@ * along with this library. If not, see . */ -/* Linker script for ST STM32F4DISCOVERY (STM32F407VG, 1024K flash, 128K RAM). */ +/* Minimal linker script for chinese STM32F4 board (STM32F407VE, 512K flash, 128K RAM). */ /* Define memory regions. */ MEMORY { - rom (rx) : ORIGIN = 0x08000000, LENGTH = 1024K - ram (rwx) : ORIGIN = 0x20000000, LENGTH = 128K + rom (rx) : ORIGIN = 0x08000000, LENGTH = 512K + ram (rwx) : ORIGIN = 0x20000000, LENGTH = 112K /* Main SRAM */ + sram2 (rwx) : ORIGIN = 0x2001c000, LENGTH = 16K /* SRAM2 with some security features (?) */ + ccm (rwx) : ORIGIN = 0x10000000, LENGTH = 64K /* Fast core-coupled memory */ + backup (rwx) : ORIGIN = 0x40024000, LENGTH = 4K /* Battery-backed backup SRAM */ } /* Include the common ld script. */ -- cgit