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:
Kojto
Date:
Wed Jul 19 16:46:19 2017 +0100
Revision:
147:a97add6d7e64
Parent:
140:97feb9bacc10
Release 147 of the mbed library.

Who changed what in which revision?

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