mbed library sources

Fork of mbed-src by mbed official

Committer:
moirans2
Date:
Wed Jan 14 20:53:08 2015 +0000
Revision:
445:9a3ffe6cfa19
Parent:
434:53c4d348572c
internal clock stm32L051

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 423:560d1a9f3083 1 /* [ROM = 512kb = 0x80000] */
mbed_official 423:560d1a9f3083 2 define symbol __intvec_start__ = 0x08000000;
mbed_official 423:560d1a9f3083 3 define symbol __region_ROM_start__ = 0x08000000;
mbed_official 423:560d1a9f3083 4 define symbol __region_ROM_end__ = 0x0807FFFF;
mbed_official 423:560d1a9f3083 5
mbed_official 423:560d1a9f3083 6 define symbol __region_CCMRAM_start__ = 0x10000000;
mbed_official 423:560d1a9f3083 7 define symbol __region_CCMRAM_end__ = 0x10003FFF;
mbed_official 423:560d1a9f3083 8
mbed_official 423:560d1a9f3083 9 /* [RAM = 64kb = 0x10000] Vector table dynamic copy: 101 vectors = 404 bytes (0x194) to be reserved in RAM */
mbed_official 423:560d1a9f3083 10 define symbol __NVIC_start__ = 0x20000000;
mbed_official 423:560d1a9f3083 11 define symbol __NVIC_end__ = 0x20000197; /* Add 4 more bytes to be aligned on 8 bytes */
mbed_official 423:560d1a9f3083 12 define symbol __region_RAM_start__ = 0x20000198;
mbed_official 423:560d1a9f3083 13 define symbol __region_RAM_end__ = 0x2000FFFF;
mbed_official 423:560d1a9f3083 14
mbed_official 423:560d1a9f3083 15 /* Memory regions */
mbed_official 423:560d1a9f3083 16 define memory mem with size = 4G;
mbed_official 423:560d1a9f3083 17 define region ROM_region = mem:[from __region_ROM_start__ to __region_ROM_end__];
mbed_official 423:560d1a9f3083 18 define region RAM_region = mem:[from __region_RAM_start__ to __region_RAM_end__];
mbed_official 423:560d1a9f3083 19 define region CCMRAM_region = mem:[from __region_CCMRAM_start__ to __region_CCMRAM_end__];
mbed_official 423:560d1a9f3083 20
mbed_official 423:560d1a9f3083 21 /* Stack and Heap */
mbed_official 434:53c4d348572c 22 define symbol __size_cstack__ = 0x2000;
mbed_official 434:53c4d348572c 23 define symbol __size_heap__ = 0x2000;
mbed_official 423:560d1a9f3083 24 define block CSTACK with alignment = 8, size = __size_cstack__ { };
mbed_official 423:560d1a9f3083 25 define block HEAP with alignment = 8, size = __size_heap__ { };
mbed_official 423:560d1a9f3083 26 define block STACKHEAP with fixed order { block HEAP, block CSTACK };
mbed_official 423:560d1a9f3083 27
mbed_official 423:560d1a9f3083 28 initialize by copy with packing = zeros { readwrite };
mbed_official 423:560d1a9f3083 29 do not initialize { section .noinit };
mbed_official 423:560d1a9f3083 30
mbed_official 423:560d1a9f3083 31 place at address mem:__intvec_start__ { readonly section .intvec };
mbed_official 423:560d1a9f3083 32
mbed_official 423:560d1a9f3083 33 place in ROM_region { readonly };
mbed_official 423:560d1a9f3083 34 place in RAM_region { readwrite, block STACKHEAP };