Skip to content

Commit a4c7a29

Browse files
committed
uArm Bootloader support
1 parent ed51bcb commit a4c7a29

File tree

1 file changed

+12
-2
lines changed
  • targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/device/TOOLCHAIN_ARM_MICRO

1 file changed

+12
-2
lines changed

targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/device/TOOLCHAIN_ARM_MICRO/stm32l151rc.sct

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#! armcc -E
12
; Scatter-Loading Description File
23
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
34
; Copyright (c) 2015, STMicroelectronics
@@ -27,10 +28,19 @@
2728
; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2829
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2930

31+
#if !defined(MBED_APP_START)
32+
#define MBED_APP_START 0x08000000
33+
#endif
34+
35+
#if !defined(MBED_APP_SIZE)
36+
#define MBED_APP_SIZE 0x40000
37+
#endif
38+
39+
3040
; STM32L151RC: 256KB FLASH + 32KB SRAM
31-
LR_IROM1 0x08000000 0x40000 { ; load region size_region
41+
LR_IROM1 MBED_APP_START MBED_APP_SIZE { ; load region size_region
3242

33-
ER_IROM1 0x08000000 0x40000 { ; load address = execution address
43+
ER_IROM1 MBED_APP_START MBED_APP_SIZE { ; load address = execution address
3444
*.o (RESET, +First)
3545
*(InRoot$$Sections)
3646
.ANY (+RO)

0 commit comments

Comments
 (0)