Rev 77 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 77 | Rev 80 | ||
|---|---|---|---|
| Line 53... | Line 53... | ||
| 53 | ENTRY(Reset_Handler) |
53 | ENTRY(Reset_Handler) |
| 54 | 54 | ||
| 55 | /* Highest address of the user mode stack */ |
55 | /* Highest address of the user mode stack */ |
| 56 | _estack = ORIGIN(RAM) + LENGTH(RAM); /* end of RAM */ |
56 | _estack = ORIGIN(RAM) + LENGTH(RAM); /* end of RAM */ |
| 57 | /* Generate a link error if heap and stack don't fit into RAM */ |
57 | /* Generate a link error if heap and stack don't fit into RAM */ |
| 58 | _Min_Heap_Size = 0x200; /* required amount of heap */ |
58 | _Min_Heap_Size = 0x800; /* required amount of heap */ |
| 59 | _Min_Stack_Size = 0x400; /* required amount of stack */ |
59 | _Min_Stack_Size = 0x800; /* required amount of stack */ |
| 60 | 60 | ||
| 61 | /* Specify the memory areas */ |
61 | /* Specify the memory areas */ |
| 62 | MEMORY |
62 | MEMORY |
| 63 | { |
63 | { |
| 64 | RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 80K |
64 | RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 80K |
| 65 | FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 512K |
65 | FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 512K |
| - | 66 | NVRAM (rx) : ORIGIN = 0x08080000, LENGTH = 8K |
|
| 66 | } |
67 | } |
| 67 | 68 | ||
| 68 | /* Define output sections */ |
69 | /* Define output sections */ |
| 69 | SECTIONS |
70 | SECTIONS |
| 70 | { |
71 | { |
| Line 181... | Line 182... | ||
| 181 | libc.a ( * ) |
182 | libc.a ( * ) |
| 182 | libm.a ( * ) |
183 | libm.a ( * ) |
| 183 | libgcc.a ( * ) |
184 | libgcc.a ( * ) |
| 184 | } |
185 | } |
| 185 | 186 | ||
| - | 187 | /* NVRAM image section : nothing gets stored here but the addresses are set up */ |
|
| - | 188 | .nvram_data (NOLOAD) : |
|
| - | 189 | { |
|
| - | 190 | _nvr_base = .; |
|
| - | 191 | KEEP ( *(.NVRAM_Data)) /* any __attribute__((section(".NVRAM_Data"))) section info to be put in here */ |
|
| - | 192 | } >NVRAM |
|
| - | 193 | PROVIDE ( NVRAM_Base = _nvr_base ); |
|
| - | 194 | ||
| 186 | .ARM.attributes 0 : { *(.ARM.attributes) } |
195 | .ARM.attributes 0 : { *(.ARM.attributes) } |
| 187 | } |
196 | } |
| 188 | 197 | ||
| 189 | 198 | ||