Skip to content

Commit d76bdde

Browse files
committed
[STM32L4] Fix IAR section placement failed error
For some reason STACKHEAP block was placed in SRAM2 section which lead to *Error[Lp011]: section placement failed - unable to allocate space for sections/ block* error. This patch modifies the STM32L4 linker script and places STACKHEAP into SRAM1 section which was previously unused. Change-Id: Ibe6ca52a9fe7af232a3eade2f6b1f2ce28c9bd49
1 parent 816233c commit d76bdde

File tree

1 file changed

+2
-2
lines changed
  • libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_IAR

1 file changed

+2
-2
lines changed

libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_IAR/stm32l476xx.icf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ do not initialize { section .noinit };
3131
place at address mem:__intvec_start__ { readonly section .intvec };
3232

3333
place in ROM_region { readonly };
34-
place in SRAM2_region { readwrite, block STACKHEAP };
35-
place in SRAM1_region { };
34+
place in SRAM2_region { readwrite };
35+
place in SRAM1_region { block STACKHEAP };

0 commit comments

Comments
 (0)