Skip to content

Commit cd9a0d1

Browse files
authored
Merge pull request ARMmbed#13634 from jeromecoutant/PR_L4_IAR
STM32L4: link issue with IAR
2 parents 60cbab3 + 0af260f commit cd9a0d1

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L452xE/device/TOOLCHAIN_IAR/stm32l452xx.icf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ define symbol __intvec_start__ = MBED_APP_START;
66
define symbol __region_ROM_start__ = MBED_APP_START;
77
define symbol __region_ROM_end__ = MBED_APP_START + MBED_APP_SIZE - 1;
88

9+
if (!isdefinedsymbol(MBED_CONF_TARGET_BOOT_STACK_SIZE)) {
10+
define symbol MBED_CONF_TARGET_BOOT_STACK_SIZE = 0x400;
11+
}
12+
913
/* [RAM = 128kb + 32kb = 0x28000] */
1014
/* Vector table dynamic copy: Total: 99 vectors * 4 = 396 bytes (0x18C) to be reserved in RAM */
1115
define symbol __NVIC_start__ = 0x10000000;
@@ -32,10 +36,6 @@ define region RAM_region = mem:[from __region_SRAM2_start__ to __region_SRAM2_en
3236
define exported symbol __CRASH_DATA_RAM_START__ = __region_CRASH_DATA_RAM_start__;
3337
define exported symbol __CRASH_DATA_RAM_END__ = __region_CRASH_DATA_RAM_end__;
3438

35-
if (!isdefinedsymbol(MBED_CONF_TARGET_BOOT_STACK_SIZE)) {
36-
define symbol MBED_CONF_TARGET_BOOT_STACK_SIZE = 0x400;
37-
}
38-
3939
define symbol __size_cstack__ = MBED_CONF_TARGET_BOOT_STACK_SIZE;
4040
define symbol __size_heap__ = 0x10000;
4141
define block CSTACK with alignment = 8, size = __size_cstack__ { };

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L475xG/device/TOOLCHAIN_IAR/stm32l475xx.icf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ define symbol __intvec_start__ = MBED_APP_START;
2323
define symbol __region_ROM_start__ = MBED_APP_START;
2424
define symbol __region_ROM_end__ = MBED_APP_START + MBED_APP_SIZE - 1;
2525

26+
if (!isdefinedsymbol(MBED_CONF_TARGET_BOOT_STACK_SIZE)) {
27+
define symbol MBED_CONF_TARGET_BOOT_STACK_SIZE = 0x400;
28+
}
29+
2630
/* [RAM = 96kb + 32kb = 0x20000] */
2731
/* Vector table dynamic copy: Total: 98 vectors * 4 = 392 bytes (0x188) to be reserved in RAM */
2832
define symbol __NVIC_start__ = 0x10000000;
@@ -48,10 +52,6 @@ define region RAM_region = mem:[from __region_SRAM2_start__ to __region_SRAM2_en
4852
define exported symbol __CRASH_DATA_RAM_START__ = __region_CRASH_DATA_RAM_start__;
4953
define exported symbol __CRASH_DATA_RAM_END__ = __region_CRASH_DATA_RAM_end__;
5054

51-
if (!isdefinedsymbol(MBED_CONF_TARGET_BOOT_STACK_SIZE)) {
52-
define symbol MBED_CONF_TARGET_BOOT_STACK_SIZE = 0x400;
53-
}
54-
5555
define symbol __size_cstack__ = MBED_CONF_TARGET_BOOT_STACK_SIZE;
5656
define symbol __size_heap__ = 0x10000;
5757
define block CSTACK with alignment = 8, size = __size_cstack__ { };

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L476xG/device/TOOLCHAIN_IAR/stm32l476xx.icf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ define symbol __intvec_start__ = MBED_APP_START;
2323
define symbol __region_ROM_start__ = MBED_APP_START;
2424
define symbol __region_ROM_end__ = MBED_APP_START + MBED_APP_SIZE - 1;
2525

26+
if (!isdefinedsymbol(MBED_CONF_TARGET_BOOT_STACK_SIZE)) {
27+
define symbol MBED_CONF_TARGET_BOOT_STACK_SIZE = 0x400;
28+
}
29+
2630
/* [RAM = 96kb + 32kb = 0x20000] */
2731
/* Vector table dynamic copy: Total: 98 vectors * 4 = 392 bytes (0x188) to be reserved in RAM */
2832
define symbol __NVIC_start__ = 0x10000000;
@@ -48,10 +52,6 @@ define region RAM_region = mem:[from __region_SRAM2_start__ to __region_SRAM2_en
4852
define exported symbol __CRASH_DATA_RAM_START__ = __region_CRASH_DATA_RAM_start__;
4953
define exported symbol __CRASH_DATA_RAM_END__ = __region_CRASH_DATA_RAM_end__;
5054

51-
if (!isdefinedsymbol(MBED_CONF_TARGET_BOOT_STACK_SIZE)) {
52-
define symbol MBED_CONF_TARGET_BOOT_STACK_SIZE = 0x400;
53-
}
54-
5555
define symbol __size_cstack__ = MBED_CONF_TARGET_BOOT_STACK_SIZE;
5656
define symbol __size_heap__ = 0x10000;
5757
define block CSTACK with alignment = 8, size = __size_cstack__ { };

targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L486xG/device/TOOLCHAIN_IAR/stm32l486xx.icf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ define symbol __intvec_start__ = MBED_APP_START;
2323
define symbol __region_ROM_start__ = MBED_APP_START;
2424
define symbol __region_ROM_end__ = MBED_APP_START + MBED_APP_SIZE - 1;
2525

26+
if (!isdefinedsymbol(MBED_CONF_TARGET_BOOT_STACK_SIZE)) {
27+
define symbol MBED_CONF_TARGET_BOOT_STACK_SIZE = 0x400;
28+
}
29+
2630
/* [RAM = 96kb + 32kb = 0x20000] */
2731
/* Vector table dynamic copy: Total: 98 vectors * 4 = 392 bytes (0x188) to be reserved in RAM */
2832
define symbol __NVIC_start__ = 0x10000000;
@@ -48,10 +52,6 @@ define region RAM_region = mem:[from __region_SRAM2_start__ to __region_SRAM2_en
4852
define exported symbol __CRASH_DATA_RAM_START__ = __region_CRASH_DATA_RAM_start__;
4953
define exported symbol __CRASH_DATA_RAM_END__ = __region_CRASH_DATA_RAM_end__;
5054

51-
if (!isdefinedsymbol(MBED_CONF_TARGET_BOOT_STACK_SIZE)) {
52-
define symbol MBED_CONF_TARGET_BOOT_STACK_SIZE = 0x400;
53-
}
54-
5555
define symbol __size_cstack__ = MBED_CONF_TARGET_BOOT_STACK_SIZE;
5656
define symbol __size_heap__ = 0x10000;
5757
define block CSTACK with alignment = 8, size = __size_cstack__ { };

0 commit comments

Comments
 (0)