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_SDT32625B/TOOLCHAIN_IAR/MAX32625.icf@172:65be27845400, 2019-02-20 (annotated)
- Committer:
- AnnaBridge
- Date:
- Wed Feb 20 20:53:29 2019 +0000
- Revision:
- 172:65be27845400
- Parent:
- 171:3a7713b1edbc
mbed library release version 165
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Anna Bridge |
169:a7c7b631e539 | 1 | /* [ROM] */ |
Anna Bridge |
169:a7c7b631e539 | 2 | define symbol __intvec_start__ = 0x00000000; |
Anna Bridge |
169:a7c7b631e539 | 3 | define symbol __region_ROM_start__ = 0x00000000; |
Anna Bridge |
169:a7c7b631e539 | 4 | define symbol __region_ROM_end__ = 0x0007FFFF; |
Anna Bridge |
169:a7c7b631e539 | 5 | |
Anna Bridge |
169:a7c7b631e539 | 6 | /* [RAM] Vector table dynamic copy: 68 vectors * 4 bytes = 272 (0x110) bytes */ |
Anna Bridge |
169:a7c7b631e539 | 7 | define symbol __NVIC_start__ = 0x00000000; |
Anna Bridge |
169:a7c7b631e539 | 8 | define symbol __NVIC_end__ = 0x00000110; /* to be aligned on 8 bytes */ |
Anna Bridge |
169:a7c7b631e539 | 9 | define symbol __region_RAM_start__ = 0x20000000; |
Anna Bridge |
169:a7c7b631e539 | 10 | define symbol __region_RAM_end__ = 0x20027FFF; |
Anna Bridge |
169:a7c7b631e539 | 11 | |
Anna Bridge |
169:a7c7b631e539 | 12 | /* Memory regions */ |
Anna Bridge |
169:a7c7b631e539 | 13 | define memory mem with size = 4G; |
Anna Bridge |
169:a7c7b631e539 | 14 | define region ROM_region = mem:[from __region_ROM_start__ to __region_ROM_end__]; |
Anna Bridge |
169:a7c7b631e539 | 15 | define region RAM_region = mem:[from __region_RAM_start__ to __region_RAM_end__]; |
Anna Bridge |
169:a7c7b631e539 | 16 | |
Anna Bridge |
169:a7c7b631e539 | 17 | /* Stack and Heap */ |
Anna Bridge |
169:a7c7b631e539 | 18 | define symbol __size_cstack__ = 0x5000; |
Anna Bridge |
169:a7c7b631e539 | 19 | define symbol __size_heap__ = 0xA000; |
Anna Bridge |
169:a7c7b631e539 | 20 | define block CSTACK with alignment = 8, size = __size_cstack__ { }; |
Anna Bridge |
169:a7c7b631e539 | 21 | define block HEAP with alignment = 8, size = __size_heap__ { }; |
Anna Bridge |
169:a7c7b631e539 | 22 | |
Anna Bridge |
169:a7c7b631e539 | 23 | initialize by copy { readwrite }; |
Anna Bridge |
169:a7c7b631e539 | 24 | do not initialize { section .noinit }; |
Anna Bridge |
169:a7c7b631e539 | 25 | |
Anna Bridge |
169:a7c7b631e539 | 26 | place at address mem:__intvec_start__ { readonly section .intvec }; |
Anna Bridge |
169:a7c7b631e539 | 27 | place in ROM_region { readonly }; |
Anna Bridge |
169:a7c7b631e539 | 28 | place in RAM_region { readwrite, |
Anna Bridge |
169:a7c7b631e539 | 29 | block CSTACK, block HEAP }; |