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:
Fri Sep 15 14:46:57 2017 +0100
Revision:
151:675da3299148
Parent:
132:9baf128c2fab
Release 151 of the mbed library.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
<> 132:9baf128c2fab 1 /*###ICF### Section handled by ICF editor, don't touch! ****/
<> 132:9baf128c2fab 2 /*-Editor annotation file-*/
<> 132:9baf128c2fab 3 /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */
<> 132:9baf128c2fab 4 /*-Specials-*/
<> 132:9baf128c2fab 5 define symbol __ICFEDIT_intvec_start__ = 0x1c000;
<> 132:9baf128c2fab 6 /*-Memory Regions-*/
<> 132:9baf128c2fab 7 define symbol __ICFEDIT_region_ROM_start__ = 0x1c000;
<> 132:9baf128c2fab 8 define symbol __ICFEDIT_region_ROM_end__ = 0x7ffff;
<> 132:9baf128c2fab 9 define symbol __ICFEDIT_region_RAM_start__ = 0x20002ef8;
<> 132:9baf128c2fab 10 define symbol __ICFEDIT_region_RAM_end__ = 0x2000ffff;
<> 132:9baf128c2fab 11 export symbol __ICFEDIT_region_RAM_start__;
<> 132:9baf128c2fab 12 export symbol __ICFEDIT_region_RAM_end__;
<> 132:9baf128c2fab 13 /*-Sizes-*/
<> 132:9baf128c2fab 14 /*Heap 1/4 of ram and stack 1/8*/
<> 132:9baf128c2fab 15 define symbol __ICFEDIT_size_cstack__ = 0x800;
<> 132:9baf128c2fab 16 define symbol __ICFEDIT_size_heap__ = 0x1800;
<> 132:9baf128c2fab 17 /**** End of ICF editor section. ###ICF###*/
<> 132:9baf128c2fab 18
<> 132:9baf128c2fab 19 define symbol __code_start_soft_device__ = 0x0;
<> 132:9baf128c2fab 20
<> 132:9baf128c2fab 21 define memory mem with size = 4G;
<> 132:9baf128c2fab 22 define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
<> 132:9baf128c2fab 23 define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
<> 132:9baf128c2fab 24
<> 132:9baf128c2fab 25 define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
<> 132:9baf128c2fab 26 define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
<> 132:9baf128c2fab 27
<> 132:9baf128c2fab 28 initialize by copy { readwrite };
<> 132:9baf128c2fab 29 do not initialize { section .noinit };
<> 132:9baf128c2fab 30
<> 132:9baf128c2fab 31 keep { section .intvec };
<> 132:9baf128c2fab 32 place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
<> 132:9baf128c2fab 33 place in ROM_region { readonly };
<> 132:9baf128c2fab 34 place in RAM_region { readwrite,
<> 132:9baf128c2fab 35 block HEAP,
<> 132:9baf128c2fab 36 block CSTACK };
<> 132:9baf128c2fab 37
<> 132:9baf128c2fab 38 /*This is used for mbed applications build inside the Embedded workbench
<> 132:9baf128c2fab 39 Applications build with the python scritps use a hex merge so need to merge it
<> 132:9baf128c2fab 40 inside the linker. The linker can only use binary files so the hex merge is not possible
<> 132:9baf128c2fab 41 through the linker. That is why a binary is used instead of a hex image for the embedded project.
<> 132:9baf128c2fab 42 */
<> 132:9baf128c2fab 43 if(isdefinedsymbol(SOFT_DEVICE_BIN))
<> 132:9baf128c2fab 44 {
<> 132:9baf128c2fab 45 place at address mem:__code_start_soft_device__ { section .noinit_softdevice };
<> 132:9baf128c2fab 46 }