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:
<>
Date:
Tue Mar 14 16:20:51 2017 +0000
Revision:
138:093f2bd7b9eb
Parent:
127:25aea2a3f4e3
Child:
141:794e51388b66
Release 138 of the mbed library

Ports for Upcoming Targets


Fixes and Changes

3716: fix for issue #3715: correction in startup files for ARM and IAR, alignment of system_stm32f429xx.c files https://github.com/ARMmbed/mbed-os/pull/3716
3741: STM32 remove warning in hal_tick_32b.c file https://github.com/ARMmbed/mbed-os/pull/3741
3780: STM32L4 : Fix GPIO G port compatibility https://github.com/ARMmbed/mbed-os/pull/3780
3831: NCS36510: SPISLAVE enabled (Conflict resolved) https://github.com/ARMmbed/mbed-os/pull/3831
3836: Allow to redefine nRF's PSTORAGE_NUM_OF_PAGES outside of the mbed-os https://github.com/ARMmbed/mbed-os/pull/3836
3840: STM32: gpio SPEED - always set High Speed by default https://github.com/ARMmbed/mbed-os/pull/3840
3844: STM32 GPIO: Typo correction. Update comment (GPIO_IP_WITHOUT_BRR) https://github.com/ARMmbed/mbed-os/pull/3844
3850: STM32: change spi error to debug warning https://github.com/ARMmbed/mbed-os/pull/3850
3860: Define GPIO_IP_WITHOUT_BRR for xDot platform https://github.com/ARMmbed/mbed-os/pull/3860
3880: DISCO_F469NI: allow the use of CAN2 instance when CAN1 is not activated https://github.com/ARMmbed/mbed-os/pull/3880
3795: Fix pwm period calc https://github.com/ARMmbed/mbed-os/pull/3795
3828: STM32 CAN API: correct format and type https://github.com/ARMmbed/mbed-os/pull/3828
3842: TARGET_NRF: corrected spi_init() to properly handle re-initialization https://github.com/ARMmbed/mbed-os/pull/3842
3843: STM32L476xG: set APB2 clock to 80MHz (instead of 40MHz) https://github.com/ARMmbed/mbed-os/pull/3843
3879: NUCLEO_F446ZE: Add missing AnalogIn pins on PF_3, PF_5 and PF_10. https://github.com/ARMmbed/mbed-os/pull/3879
3902: Fix heap and stack size for NUCLEO_F746ZG https://github.com/ARMmbed/mbed-os/pull/3902
3829: can_write(): return error code when no tx mailboxes are available https://github.com/ARMmbed/mbed-os/pull/3829

Who changed what in which revision?

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