Merge pull request #4554 from LMESTM/L476RG_ld_file

Fix NUCLEO_L476RG linker scripts
pull/4592/head
Jimmy Brisson 2017-06-19 11:04:10 -05:00 committed by GitHub
commit 3f464217f1
4 changed files with 5 additions and 6 deletions

View File

@ -33,7 +33,7 @@
#endif
#if !defined(MBED_APP_SIZE)
#define MBED_APP_SIZE 0x200000
#define MBED_APP_SIZE 0x100000
#endif
; 1MB FLASH (0x100000) + 128KB SRAM (0x20000)

View File

@ -33,7 +33,7 @@
#endif
#if !defined(MBED_APP_SIZE)
#define MBED_APP_SIZE 0x200000
#define MBED_APP_SIZE 0x100000
#endif
; 1MB FLASH (0x100000) + 128KB SRAM (0x20000)

View File

@ -3,14 +3,13 @@
#endif
#if !defined(MBED_APP_SIZE)
#define MBED_APP_SIZE 2048k
#define MBED_APP_SIZE 1024k
#endif
/* Linker script to configure memory regions. */
MEMORY
{
VECTORS (rx) : ORIGIN = MBED_APP_START, LENGTH = 0x400
FLASH (rx) : ORIGIN = MBED_APP_START + 0x400, LENGTH = MBED_APP_SIZE - 0x400
FLASH (rx) : ORIGIN = MBED_APP_START, LENGTH = MBED_APP_SIZE
SRAM2 (rwx) : ORIGIN = 0x10000188, LENGTH = 32k - 0x188
SRAM1 (rwx) : ORIGIN = 0x20000000, LENGTH = 96k
}

View File

@ -1,5 +1,5 @@
if (!isdefinedsymbol(MBED_APP_START)) { define symbol MBED_APP_START = 0x08000000; }
if (!isdefinedsymbol(MBED_APP_SIZE)) { define symbol MBED_APP_SIZE = 0x200000; }
if (!isdefinedsymbol(MBED_APP_SIZE)) { define symbol MBED_APP_SIZE = 0x100000; }
/* [ROM = 1024kb = 0x100000] */
define symbol __intvec_start__ = MBED_APP_START;