The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
TARGET_DISCO_F303VC/TOOLCHAIN_IAR/stm32f303xc.icf@169:a7c7b631e539, 2018-06-22 (annotated)
- Committer:
- Anna Bridge
- Date:
- Fri Jun 22 15:38:59 2018 +0100
- Revision:
- 169:a7c7b631e539
- Parent:
- 163:e59c8e839560
mbed library. Release version 162
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AnnaBridge | 163:e59c8e839560 | 1 | /*-Specials-*/ |
AnnaBridge | 163:e59c8e839560 | 2 | define symbol __intvec_start__ = 0x08000000; |
AnnaBridge | 163:e59c8e839560 | 3 | /*-Memory Regions-*/ |
AnnaBridge | 163:e59c8e839560 | 4 | define symbol __region_ROM_start__ = 0x08000000; |
AnnaBridge | 163:e59c8e839560 | 5 | define symbol __region_ROM_end__ = 0x0803FFFF; |
AnnaBridge | 163:e59c8e839560 | 6 | |
AnnaBridge | 163:e59c8e839560 | 7 | define symbol __region_CCMRAM_start__ = 0x10000000; |
AnnaBridge | 163:e59c8e839560 | 8 | define symbol __region_CCMRAM_end__ = 0x10001FFF; |
AnnaBridge | 163:e59c8e839560 | 9 | |
AnnaBridge | 163:e59c8e839560 | 10 | /* [RAM = 16kb = 0x4000] Vector table dynamic copy: 98 vectors = 392 bytes (0x188) to be reserved in RAM */ |
AnnaBridge | 163:e59c8e839560 | 11 | define symbol __NVIC_start__ = 0x20000000; |
AnnaBridge | 163:e59c8e839560 | 12 | define symbol __NVIC_end__ = 0x20000187; /*aligned on 8 bytes */ |
AnnaBridge | 163:e59c8e839560 | 13 | define symbol __region_RAM_start__ = 0x20000188; |
AnnaBridge | 163:e59c8e839560 | 14 | define symbol __region_RAM_end__ = 0x20009FFF; |
AnnaBridge | 163:e59c8e839560 | 15 | |
AnnaBridge | 163:e59c8e839560 | 16 | |
AnnaBridge | 163:e59c8e839560 | 17 | define memory mem with size = 4G; |
AnnaBridge | 163:e59c8e839560 | 18 | define region ROM_region = mem:[from __region_ROM_start__ to __region_ROM_end__]; |
AnnaBridge | 163:e59c8e839560 | 19 | define region RAM_region = mem:[from __region_RAM_start__ to __region_RAM_end__]; |
AnnaBridge | 163:e59c8e839560 | 20 | define region CCMRAM_region = mem:[from __region_CCMRAM_start__ to __region_CCMRAM_end__]; |
AnnaBridge | 163:e59c8e839560 | 21 | |
AnnaBridge | 163:e59c8e839560 | 22 | /* Stack and Heap */ |
AnnaBridge | 163:e59c8e839560 | 23 | define symbol __size_cstack__ = 0x1000; |
AnnaBridge | 163:e59c8e839560 | 24 | define symbol __size_heap__ = 0x2000; |
AnnaBridge | 163:e59c8e839560 | 25 | define block CSTACK with alignment = 8, size = __size_cstack__ { }; |
AnnaBridge | 163:e59c8e839560 | 26 | define block HEAP with alignment = 8, size = __size_heap__ { }; |
AnnaBridge | 163:e59c8e839560 | 27 | define block STACKHEAP with fixed order { block HEAP, block CSTACK }; |
AnnaBridge | 163:e59c8e839560 | 28 | |
AnnaBridge | 163:e59c8e839560 | 29 | initialize by copy { readwrite }; |
AnnaBridge | 163:e59c8e839560 | 30 | do not initialize { section .noinit }; |
AnnaBridge | 163:e59c8e839560 | 31 | |
AnnaBridge | 163:e59c8e839560 | 32 | place at address mem:__intvec_start__ { readonly section .intvec }; |
AnnaBridge | 163:e59c8e839560 | 33 | |
AnnaBridge | 163:e59c8e839560 | 34 | place in ROM_region { readonly }; |
AnnaBridge | 163:e59c8e839560 | 35 | place in RAM_region { readwrite, block STACKHEAP }; |