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.

Committer:
AnnaBridge
Date:
Wed Feb 20 20:53:29 2019 +0000
Revision:
172:65be27845400
Parent:
170:e95d10626187
mbed library release version 165

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kojto 121:6c34061e7c34 1 /*###ICF### Section handled by ICF editor, don't touch! ****/
Kojto 121:6c34061e7c34 2 /*-Editor annotation file-*/
Kojto 121:6c34061e7c34 3 /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\a_v1_0.xml" */
Kojto 121:6c34061e7c34 4 /*-Specials-*/
AnnaBridge 170:e95d10626187 5 if (!isdefinedsymbol(MBED_APP_START)) {
AnnaBridge 170:e95d10626187 6 define symbol MBED_APP_START = 0x18000000;
AnnaBridge 170:e95d10626187 7 }
AnnaBridge 170:e95d10626187 8 if (MBED_APP_START == 0x18000000) {
AnnaBridge 170:e95d10626187 9 define symbol __ICFEDIT_intvec_start__ = MBED_APP_START + 0x4000;
AnnaBridge 170:e95d10626187 10 } else {
AnnaBridge 170:e95d10626187 11 define symbol __ICFEDIT_intvec_start__ = MBED_APP_START;
AnnaBridge 170:e95d10626187 12 }
AnnaBridge 170:e95d10626187 13 if (!isdefinedsymbol(MBED_APP_SIZE)) {
AnnaBridge 170:e95d10626187 14 define symbol MBED_APP_SIZE = 0x800000;
AnnaBridge 170:e95d10626187 15 }
Kojto 121:6c34061e7c34 16 /*-Memory Regions-*/
AnnaBridge 170:e95d10626187 17 define symbol __ICFEDIT_region_ROM_start__ = MBED_APP_START;
AnnaBridge 170:e95d10626187 18 define symbol __ICFEDIT_region_ROM_end__ = MBED_APP_START + MBED_APP_SIZE - 1;
Kojto 121:6c34061e7c34 19 define symbol __ICFEDIT_region_TTB_start__ = 0x20000000;
Kojto 121:6c34061e7c34 20 define symbol __ICFEDIT_region_TTB_end__ = 0x2001FFFF;
Kojto 121:6c34061e7c34 21 define symbol __ICFEDIT_region_RAM_start__ = 0x20020000;
Kojto 121:6c34061e7c34 22 define symbol __ICFEDIT_region_RAM_end__ = 0x209FFFFF;
Kojto 121:6c34061e7c34 23
Kojto 121:6c34061e7c34 24 /*-Sizes-*/
Kojto 121:6c34061e7c34 25 define symbol __ICFEDIT_size_cstack__ = 0x00004000;
Kojto 121:6c34061e7c34 26 define symbol __ICFEDIT_size_svcstack__ = 0x00008000;
Kojto 121:6c34061e7c34 27 define symbol __ICFEDIT_size_irqstack__ = 0x00008000;
Kojto 121:6c34061e7c34 28 define symbol __ICFEDIT_size_fiqstack__ = 0x00000100;
Kojto 121:6c34061e7c34 29 define symbol __ICFEDIT_size_undstack__ = 0x00000100;
Kojto 121:6c34061e7c34 30 define symbol __ICFEDIT_size_abtstack__ = 0x00000100;
Kojto 121:6c34061e7c34 31 define symbol __ICFEDIT_size_heap__ = 0x00080000;
Kojto 121:6c34061e7c34 32 /**** End of ICF editor section. ###ICF###*/
Kojto 121:6c34061e7c34 33
Kojto 121:6c34061e7c34 34 define symbol __ICFEDIT_region_RetRAM_start__ = 0x20000000;
Kojto 121:6c34061e7c34 35 define symbol __ICFEDIT_region_RetRAM_end__ = 0x2001FFFF;
Kojto 121:6c34061e7c34 36
Kojto 121:6c34061e7c34 37 define symbol __ICFEDIT_region_MirrorRAM_start__ = 0x60900000;
Kojto 121:6c34061e7c34 38 define symbol __ICFEDIT_region_MirrorRAM_end__ = 0x609FFFFF;
Kojto 121:6c34061e7c34 39
Kojto 121:6c34061e7c34 40 define symbol __ICFEDIT_region_MirrorRetRAM_start__ = 0x60000000;
Kojto 121:6c34061e7c34 41 define symbol __ICFEDIT_region_MirrorRetRAM_end__ = 0x6001FFFF;
Kojto 121:6c34061e7c34 42
Kojto 121:6c34061e7c34 43 define memory mem with size = 4G;
Kojto 121:6c34061e7c34 44
Kojto 121:6c34061e7c34 45 define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
Kojto 121:6c34061e7c34 46 define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
Kojto 121:6c34061e7c34 47 define region RetRAM_region = mem:[from __ICFEDIT_region_RetRAM_start__ to __ICFEDIT_region_RetRAM_end__];
Kojto 121:6c34061e7c34 48 define region MirrorRAM_region = mem:[from __ICFEDIT_region_MirrorRAM_start__ to __ICFEDIT_region_MirrorRAM_end__];
Kojto 121:6c34061e7c34 49 define region MirrorRetRAM_region = mem:[from __ICFEDIT_region_MirrorRetRAM_start__ to __ICFEDIT_region_MirrorRetRAM_end__];
Kojto 121:6c34061e7c34 50
Kojto 121:6c34061e7c34 51 define block ROM_FIXED_ORDER with fixed order { ro code, ro data };
Kojto 121:6c34061e7c34 52 define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
Kojto 121:6c34061e7c34 53 define block SVC_STACK with alignment = 8, size = __ICFEDIT_size_svcstack__ { };
Kojto 121:6c34061e7c34 54 define block IRQ_STACK with alignment = 8, size = __ICFEDIT_size_irqstack__ { };
Kojto 121:6c34061e7c34 55 define block FIQ_STACK with alignment = 8, size = __ICFEDIT_size_fiqstack__ { };
Kojto 121:6c34061e7c34 56 define block UND_STACK with alignment = 8, size = __ICFEDIT_size_undstack__ { };
Kojto 121:6c34061e7c34 57 define block ABT_STACK with alignment = 8, size = __ICFEDIT_size_abtstack__ { };
Kojto 121:6c34061e7c34 58 define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
Kojto 121:6c34061e7c34 59
Kojto 121:6c34061e7c34 60 initialize by copy { readwrite };
Kojto 121:6c34061e7c34 61 do not initialize { section .noinit };
Kojto 121:6c34061e7c34 62 do not initialize { section .retram };
Kojto 121:6c34061e7c34 63
Kojto 121:6c34061e7c34 64 place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
Kojto 121:6c34061e7c34 65
Kojto 121:6c34061e7c34 66 place in ROM_region { readonly, block ROM_FIXED_ORDER };
Kojto 121:6c34061e7c34 67 place in RAM_region { readwrite,
Kojto 121:6c34061e7c34 68 block CSTACK, block SVC_STACK, block IRQ_STACK, block FIQ_STACK,
Kojto 121:6c34061e7c34 69 block UND_STACK, block ABT_STACK, block HEAP };
Kojto 121:6c34061e7c34 70
Kojto 121:6c34061e7c34 71 place in RetRAM_region { section .retram };
Kojto 121:6c34061e7c34 72 place in MirrorRAM_region { section .mirrorram };
Kojto 121:6c34061e7c34 73 place in MirrorRetRAM_region { section .mirrorretram };