Statistics
| Branch: | Tag: | Revision:

mongoose / examples / STM32F4_CC3100 / stm32f429xx.ld @ eaef5bd1

History | View | Annotate | Download (1.57 KB)

1
/* 
2
 * Copyright (c) 2016 Cesanta Software Limited
3
 * All rights reserved
4
 * GCC linker script for stm32f429. Based on startup sctipt 
5
 * (startup_stm32f429xx.s -  COPYRIGHT 2015 STMicroelectronics)
6
 */
7
ENTRY(Reset_Handler)
8

    
9
_estack = 0x2002FFFF; /* required by startup sctipt */
10

    
11
MEMORY
12
{
13
  FLASH (rx)     : ORIGIN = 0x8000000, LENGTH = 1024K
14
  RAM (xrw)      : ORIGIN = 0x20000000, LENGTH = 192K
15
  CCMRAM (rw)    : ORIGIN = 0x10000000, LENGTH = 64K
16
}
17

    
18
SECTIONS
19
{
20
  .isr_vector :
21
  {
22
    . = ALIGN(4);
23
    *(.isr_vector)
24
    . = ALIGN(4);
25
  } >FLASH
26

    
27
  .text :
28
  {
29
    . = ALIGN(4);
30
    *(.text)           
31
    *(.text*)                  
32
    *(.glue_7t)    
33
    *(.eh_frame)
34
    *(.init)
35
    *(.fini)
36
    . = ALIGN(4);
37
    _etext = .;        
38
  } >FLASH
39

    
40
  .rodata :
41
  {
42
    . = ALIGN(4);
43
    *(.rodata)         
44
    *(.rodata*)        
45
    . = ALIGN(4);
46
  } >FLASH
47

    
48
  _sidata = LOADADDR(.data);  /* required by startup sctipt */
49

    
50
  .data : 
51
  {
52
    . = ALIGN(4);
53
    _sdata = .;       
54
    *(.data)           
55
    *(.data*)          
56
    . = ALIGN(4);
57
    _edata = .;        
58
  } >RAM AT> FLASH
59

    
60
  _siccmram = LOADADDR(.ccmram); /* required by startup sctipt */
61

    
62
  .ccmram :
63
  {
64
    . = ALIGN(4);
65
    _sccmram = .;       
66
    *(.ccmram)
67
    *(.ccmram*)
68
    
69
    . = ALIGN(4);
70
    _eccmram = .;       
71
  } >CCMRAM AT> FLASH
72

    
73
  . = ALIGN(4);
74
  .bss :
75
  {
76
    _sbss = .;    
77
    __bss_start__ = _sbss;
78
    *(.bss)
79
    *(.bss*)
80
    *(COMMON)
81

    
82
    . = ALIGN(4);
83
    _ebss = .; 
84
    __bss_end__ = _ebss;
85
  } >RAM
86

    
87
  ._user_heap_stack :
88
  {
89
    . = ALIGN(4);
90
    PROVIDE ( end = . );
91
    . = ALIGN(4);
92
  } >RAM
93
}