File tree Expand file tree Collapse file tree 2 files changed +10
-12
lines changed
targets/TARGET_STM/TARGET_STM32L4
TARGET_STM32L476xG/device/TOOLCHAIN_IAR
TARGET_STM32L486xG/device/TOOLCHAIN_IAR Expand file tree Collapse file tree 2 files changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -21,18 +21,17 @@ define region ROM_region = mem:[from __region_ROM_start__ to __region_ROM_end__]
21
21
define region SRAM2_region = mem:[from __region_SRAM2_start__ to __region_SRAM2_end__];
22
22
define region SRAM1_region = mem:[from __region_SRAM1_start__ to __region_SRAM1_end__];
23
23
24
- /* Stack 1/8 and Heap 1/4 of RAM */
25
- define symbol __size_cstack__ = 0x8000 ;
26
- define symbol __size_heap__ = 0xa000 ;
24
+ /* Stack complete SRAM2 and Heap 2/3 of SRAM1 */
25
+ define symbol __size_cstack__ = 0x7e00 ;
26
+ define symbol __size_heap__ = 0x10000 ;
27
27
define block CSTACK with alignment = 8, size = __size_cstack__ { };
28
28
define block HEAP with alignment = 8, size = __size_heap__ { };
29
- define block STACKHEAP with fixed order { block HEAP, block CSTACK };
30
29
31
30
initialize by copy with packing = zeros { readwrite };
32
31
do not initialize { section .noinit };
33
32
34
33
place at address mem:__intvec_start__ { readonly section .intvec };
35
34
36
35
place in ROM_region { readonly };
37
- place in SRAM1_region { readwrite, block STACKHEAP };
38
- place in SRAM2_region { };
36
+ place in SRAM1_region { readwrite, block HEAP };
37
+ place in SRAM2_region { block CSTACK };
Original file line number Diff line number Diff line change @@ -18,18 +18,17 @@ define region ROM_region = mem:[from __region_ROM_start__ to __region_ROM_end__]
18
18
define region SRAM2_region = mem:[from __region_SRAM2_start__ to __region_SRAM2_end__];
19
19
define region SRAM1_region = mem:[from __region_SRAM1_start__ to __region_SRAM1_end__];
20
20
21
- /* Stack 1/8 and Heap 1/4 of RAM */
22
- define symbol __size_cstack__ = 0x8000 ;
23
- define symbol __size_heap__ = 0xa000 ;
21
+ /* Stack complete SRAM2 and Heap 2/3 of SRAM1 */
22
+ define symbol __size_cstack__ = 0x7e00 ;
23
+ define symbol __size_heap__ = 0x10000 ;
24
24
define block CSTACK with alignment = 8, size = __size_cstack__ { };
25
25
define block HEAP with alignment = 8, size = __size_heap__ { };
26
- define block STACKHEAP with fixed order { block HEAP, block CSTACK };
27
26
28
27
initialize by copy with packing = zeros { readwrite };
29
28
do not initialize { section .noinit };
30
29
31
30
place at address mem:__intvec_start__ { readonly section .intvec };
32
31
33
32
place in ROM_region { readonly };
34
- place in SRAM1_region { readwrite, block STACKHEAP };
35
- place in SRAM2_region { };
33
+ place in SRAM1_region { readwrite, block HEAP };
34
+ place in SRAM2_region { block CSTACK };
You can’t perform that action at this time.
0 commit comments