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:
Tue Feb 14 11:24:20 2017 +0000
Revision:
136:ef9c61f8c49f
Parent:
127:25aea2a3f4e3
Child:
141:794e51388b66
Release 136 of the mbed library

Ports for Upcoming Targets


Fixes and Changes

3432: Target STM USBHOST support https://github.com/ARMmbed/mbed-os/pull/3432
3181: NUCLEO_F207ZG extending PeripheralPins.c: all available alternate functions can be used now https://github.com/ARMmbed/mbed-os/pull/3181
3626: NUCLEO_F412ZG : Add USB Device +Host https://github.com/ARMmbed/mbed-os/pull/3626
3628: Fix warnings https://github.com/ARMmbed/mbed-os/pull/3628
3629: STM32: L0 LL layer https://github.com/ARMmbed/mbed-os/pull/3629
3632: IDE Export support for platform VK_RZ_A1H https://github.com/ARMmbed/mbed-os/pull/3632
3642: Missing IRQ pin fix for platform VK_RZ_A1H https://github.com/ARMmbed/mbed-os/pull/3642
3664: Fix ncs36510 sleep definitions https://github.com/ARMmbed/mbed-os/pull/3664
3655: [STM32F4] Modify folder structure https://github.com/ARMmbed/mbed-os/pull/3655
3657: [STM32L4] Modify folder structure https://github.com/ARMmbed/mbed-os/pull/3657
3658: [STM32F3] Modify folder structure https://github.com/ARMmbed/mbed-os/pull/3658
3685: STM32: I2C: reset state machine https://github.com/ARMmbed/mbed-os/pull/3685
3692: uVisor: Standardize available legacy heap and stack https://github.com/ARMmbed/mbed-os/pull/3692
3621: Fix for #2884, LPC824: export to LPCXpresso, target running with wron https://github.com/ARMmbed/mbed-os/pull/3621
3649: [STM32F7] Modify folder structure https://github.com/ARMmbed/mbed-os/pull/3649
3695: Enforce device_name is valid in targets.json https://github.com/ARMmbed/mbed-os/pull/3695
3723: NCS36510: spi_format function bug fix https://github.com/ARMmbed/mbed-os/pull/3723

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kojto 120:7c328cabac7e 1 #! armcc -E
Kojto 120:7c328cabac7e 2 /*
Kojto 120:7c328cabac7e 3 ** ###################################################################
Kojto 120:7c328cabac7e 4 ** Processors: MK22FN512CAP12
Kojto 120:7c328cabac7e 5 ** MK22FN512VDC12
<> 127:25aea2a3f4e3 6 ** MK22FN512VFX12
Kojto 120:7c328cabac7e 7 ** MK22FN512VLH12
Kojto 120:7c328cabac7e 8 ** MK22FN512VLL12
Kojto 120:7c328cabac7e 9 ** MK22FN512VMP12
Kojto 120:7c328cabac7e 10 **
Kojto 120:7c328cabac7e 11 ** Compiler: Keil ARM C/C++ Compiler
Kojto 120:7c328cabac7e 12 ** Reference manual: K22P121M120SF7RM, Rev. 1, March 24, 2014
<> 127:25aea2a3f4e3 13 ** Version: rev. 2.9, 2016-03-21
<> 127:25aea2a3f4e3 14 ** Build: b160406
Kojto 120:7c328cabac7e 15 **
Kojto 120:7c328cabac7e 16 ** Abstract:
Kojto 120:7c328cabac7e 17 ** Linker file for the Keil ARM C/C++ Compiler
Kojto 120:7c328cabac7e 18 **
<> 127:25aea2a3f4e3 19 ** Copyright (c) 2016 Freescale Semiconductor, Inc.
Kojto 120:7c328cabac7e 20 ** All rights reserved.
Kojto 120:7c328cabac7e 21 **
Kojto 120:7c328cabac7e 22 ** Redistribution and use in source and binary forms, with or without modification,
Kojto 120:7c328cabac7e 23 ** are permitted provided that the following conditions are met:
Kojto 120:7c328cabac7e 24 **
Kojto 120:7c328cabac7e 25 ** o Redistributions of source code must retain the above copyright notice, this list
Kojto 120:7c328cabac7e 26 ** of conditions and the following disclaimer.
Kojto 120:7c328cabac7e 27 **
Kojto 120:7c328cabac7e 28 ** o Redistributions in binary form must reproduce the above copyright notice, this
Kojto 120:7c328cabac7e 29 ** list of conditions and the following disclaimer in the documentation and/or
Kojto 120:7c328cabac7e 30 ** other materials provided with the distribution.
Kojto 120:7c328cabac7e 31 **
Kojto 120:7c328cabac7e 32 ** o Neither the name of Freescale Semiconductor, Inc. nor the names of its
Kojto 120:7c328cabac7e 33 ** contributors may be used to endorse or promote products derived from this
Kojto 120:7c328cabac7e 34 ** software without specific prior written permission.
Kojto 120:7c328cabac7e 35 **
Kojto 120:7c328cabac7e 36 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
Kojto 120:7c328cabac7e 37 ** ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
Kojto 120:7c328cabac7e 38 ** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
Kojto 120:7c328cabac7e 39 ** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
Kojto 120:7c328cabac7e 40 ** ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
Kojto 120:7c328cabac7e 41 ** (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
Kojto 120:7c328cabac7e 42 ** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
Kojto 120:7c328cabac7e 43 ** ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
Kojto 120:7c328cabac7e 44 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
Kojto 120:7c328cabac7e 45 ** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Kojto 120:7c328cabac7e 46 **
Kojto 120:7c328cabac7e 47 ** http: www.freescale.com
Kojto 120:7c328cabac7e 48 ** mail: support@freescale.com
Kojto 120:7c328cabac7e 49 **
Kojto 120:7c328cabac7e 50 ** ###################################################################
Kojto 120:7c328cabac7e 51 */
Kojto 120:7c328cabac7e 52 #define __ram_vector_table__ 1
Kojto 120:7c328cabac7e 53
<> 127:25aea2a3f4e3 54 /* Heap 1/4 of ram and stack 1/8 */
<> 127:25aea2a3f4e3 55 #define __stack_size__ 0x4000
<> 127:25aea2a3f4e3 56 #define __heap_size__ 0x8000
<> 127:25aea2a3f4e3 57
Kojto 120:7c328cabac7e 58 #if (defined(__ram_vector_table__))
Kojto 120:7c328cabac7e 59 #define __ram_vector_table_size__ 0x00000400
Kojto 120:7c328cabac7e 60 #else
Kojto 120:7c328cabac7e 61 #define __ram_vector_table_size__ 0x00000000
Kojto 120:7c328cabac7e 62 #endif
Kojto 120:7c328cabac7e 63
Kojto 120:7c328cabac7e 64 #define m_interrupts_start 0x00000000
Kojto 120:7c328cabac7e 65 #define m_interrupts_size 0x00000400
Kojto 120:7c328cabac7e 66
Kojto 120:7c328cabac7e 67 #define m_flash_config_start 0x00000400
Kojto 120:7c328cabac7e 68 #define m_flash_config_size 0x00000010
Kojto 120:7c328cabac7e 69
Kojto 120:7c328cabac7e 70 #define m_text_start 0x00000410
Kojto 120:7c328cabac7e 71 #define m_text_size 0x0007FBF0
Kojto 120:7c328cabac7e 72
Kojto 120:7c328cabac7e 73 #define m_interrupts_ram_start 0x1FFF0000
Kojto 120:7c328cabac7e 74 #define m_interrupts_ram_size __ram_vector_table_size__
Kojto 120:7c328cabac7e 75
Kojto 120:7c328cabac7e 76 #define m_data_start (m_interrupts_ram_start + m_interrupts_ram_size)
Kojto 120:7c328cabac7e 77 #define m_data_size (0x00010000 - m_interrupts_ram_size)
Kojto 120:7c328cabac7e 78
Kojto 120:7c328cabac7e 79 #define m_data_2_start 0x20000000
Kojto 120:7c328cabac7e 80 #define m_data_2_size 0x00010000
Kojto 120:7c328cabac7e 81
<> 127:25aea2a3f4e3 82 /* Sizes */
<> 127:25aea2a3f4e3 83 #if (defined(__stack_size__))
<> 127:25aea2a3f4e3 84 #define Stack_Size __stack_size__
<> 127:25aea2a3f4e3 85 #else
<> 127:25aea2a3f4e3 86 #define Stack_Size 0x0400
<> 127:25aea2a3f4e3 87 #endif
Kojto 120:7c328cabac7e 88
<> 127:25aea2a3f4e3 89 #if (defined(__heap_size__))
<> 127:25aea2a3f4e3 90 #define Heap_Size __heap_size__
<> 127:25aea2a3f4e3 91 #else
<> 127:25aea2a3f4e3 92 #define Heap_Size 0x0400
<> 127:25aea2a3f4e3 93 #endif
<> 127:25aea2a3f4e3 94
<> 127:25aea2a3f4e3 95 LR_m_text m_interrupts_start m_text_start+m_text_size-m_interrupts_start { ; load region size_region
Kojto 120:7c328cabac7e 96 VECTOR_ROM m_interrupts_start m_interrupts_size { ; load address = execution address
Kojto 120:7c328cabac7e 97 * (RESET,+FIRST)
Kojto 120:7c328cabac7e 98 }
<> 127:25aea2a3f4e3 99 ER_m_flash_config m_flash_config_start FIXED m_flash_config_size { ; load address = execution address
Kojto 120:7c328cabac7e 100 * (FlashConfig)
Kojto 120:7c328cabac7e 101 }
Kojto 120:7c328cabac7e 102 ER_m_text m_text_start m_text_size { ; load address = execution address
Kojto 120:7c328cabac7e 103 * (InRoot$$Sections)
Kojto 120:7c328cabac7e 104 .ANY (+RO)
Kojto 120:7c328cabac7e 105 }
<> 127:25aea2a3f4e3 106
<> 127:25aea2a3f4e3 107 #if (defined(__ram_vector_table__))
<> 127:25aea2a3f4e3 108 VECTOR_RAM m_interrupts_ram_start EMPTY m_interrupts_ram_size {
<> 127:25aea2a3f4e3 109 }
<> 127:25aea2a3f4e3 110 #else
<> 127:25aea2a3f4e3 111 VECTOR_RAM m_interrupts_start EMPTY 0 {
<> 127:25aea2a3f4e3 112 }
<> 127:25aea2a3f4e3 113 #endif
Kojto 120:7c328cabac7e 114 RW_m_data m_data_start m_data_size { ; RW data
Kojto 120:7c328cabac7e 115 .ANY (+RW +ZI)
Kojto 120:7c328cabac7e 116 }
<> 127:25aea2a3f4e3 117 RW_m_data_2 m_data_2_start m_data_2_size-Stack_Size-Heap_Size { ; RW data
Kojto 120:7c328cabac7e 118 .ANY (+RW +ZI)
Kojto 120:7c328cabac7e 119 }
<> 127:25aea2a3f4e3 120 RW_IRAM1 ImageLimit(RW_m_data_2) { ; Heap region growing up
Kojto 120:7c328cabac7e 121 }
Kojto 120:7c328cabac7e 122 }
Kojto 120:7c328cabac7e 123