Skip to content

Commit 5681c0c

Browse files
committed
[NUCLEO-F767ZI]Update ldscript.ls
1 parent 1086a1d commit 5681c0c

File tree

1 file changed

+13
-32
lines changed

1 file changed

+13
-32
lines changed

variants/NUCLEO_F767ZI/ldscript.ld

Lines changed: 13 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
** File : LinkerScript.ld
66
**
7-
** Abstract : Linker script for STM32F746NGHx Device with
8-
** 1024KByte FLASH, 320KByte RAM
7+
** Abstract : Linker script for STM32F767ZITx Device with
8+
** 2048KByte FLASH, 512KByte RAM
99
**
1010
** Set heap size, stack size and stack location according
1111
** to application requirements.
@@ -18,32 +18,13 @@
1818
** Distribution: The file is distributed as is, without any warranty
1919
** of any kind.
2020
**
21-
*****************************************************************************
22-
** @attention
23-
**
24-
** <h2><center>&copy; COPYRIGHT(c) 2014 Ac6</center></h2>
25-
**
26-
** Redistribution and use in source and binary forms, with or without modification,
27-
** are permitted provided that the following conditions are met:
28-
** 1. Redistributions of source code must retain the above copyright notice,
29-
** this list of conditions and the following disclaimer.
30-
** 2. Redistributions in binary form must reproduce the above copyright notice,
31-
** this list of conditions and the following disclaimer in the documentation
32-
** and/or other materials provided with the distribution.
33-
** 3. Neither the name of Ac6 nor the names of its contributors
34-
** may be used to endorse or promote products derived from this software
35-
** without specific prior written permission.
36-
**
37-
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
38-
** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
39-
** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
40-
** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
41-
** FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
42-
** DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
43-
** SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
44-
** CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
45-
** OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
46-
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
21+
** (c)Copyright Ac6.
22+
** You may use this file as-is or modify it according to the needs of your
23+
** project. Distribution of this file (unmodified or modified) is not
24+
** permitted. Ac6 permit registered System Workbench for MCU users the
25+
** rights to distribute the assembled, compiled & linked contents of this
26+
** file as part of an application binary file, provided that it is built
27+
** using the System Workbench for MCU toolchain.
4728
**
4829
*****************************************************************************
4930
*/
@@ -52,16 +33,16 @@
5233
ENTRY(Reset_Handler)
5334

5435
/* Highest address of the user mode stack */
55-
_estack = 0x20050000; /* end of RAM */
36+
_estack = 0x20080000; /* end of RAM */
5637
/* Generate a link error if heap and stack don't fit into RAM */
5738
_Min_Heap_Size = 0x200; /* required amount of heap */
5839
_Min_Stack_Size = 0x400; /* required amount of stack */
5940

6041
/* Specify the memory areas */
6142
MEMORY
6243
{
63-
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 320K
64-
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 1024K
44+
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 512K
45+
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 2048K
6546
}
6647

6748
/* Define output sections */
@@ -76,7 +57,7 @@ SECTIONS
7657
} >FLASH
7758

7859
/* The program code and other data goes into FLASH */
79-
.text ALIGN(4):
60+
.text :
8061
{
8162
. = ALIGN(4);
8263
*(.text) /* .text sections (code) */

0 commit comments

Comments
 (0)