File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L475xG/device/TOOLCHAIN_IAR Expand file tree Collapse file tree 1 file changed +5
-6
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 };
You can’t perform that action at this time.
0 commit comments