Fork of mbed-src file paths change. LPC1114FN28 use only.

Fork of mbed-src by mbed official

Information

この情報は2013/10/28時点での解決方法です。
現在はmbed-src、標準ライブラリで問題なくコンパイルが可能です。

・使う物
LPC1114FN28
mbed SDK

LPC1114FN28でmbed-SDKのLibraryを使うとCompile出来ない。(2013/10/28) /media/uploads/minicube/mbed_lpc1114_sdk.png

パスが通ってないだけのようなのでファイルを以下に移動する。

mbed-src\targets\cmsis\TARGET_NXP\TARGET_LPC11XX_11CXX\
mbed-src\targets\cmsis\TARGET_NXP\TARGET_LPC11XX_11CXX\TARGET_LPC11XX\

にあるファイルをすべて

mbed-src\targets\cmsis\TARGET_NXP\

へ移動

mbed-src\targets\cmsis\TARGET_NXP\TARGET_LPC11XX_11CXX\にある

TOOLCHAIN_ARM_MICRO

をフォルダごと

mbed-src\targets\cmsis\TARGET_NXP\

へ移動

mbed-src\targets\hal\TARGET_NXP\TARGET_LPC11XX_11CXX\
mbed-src\targets\hal\TARGET_NXP\TARGET_LPC11XX_11CXX\TARGET_LPC11XX\

にあるファイルをすべて

mbed-src\targets\hal\TARGET_NXP\

へ移動

移動後は以下のような構成になると思います。
※不要なファイルは削除してあります。

/media/uploads/minicube/mbed_lpc1114_sdk_tree.png


ファイルの移動が面倒なので以下に本家からフォークしたライブラリを置いておきます。

Import librarymbed-src-LPC1114FN28

Fork of mbed-src file paths change. LPC1114FN28 use only.


エラーが出力される場合

"TOOLCHAIN_ARM_MICRO"が無いとエラーになる。

Error: Undefined symbol _initial_sp (referred from entry2.o).
Error: Undefined symbol _heap_base (referred from malloc.o).
Error: Undefined symbol _heap_limit (referred from malloc.o).

LPC1114FN28はMicrolibを使ってCompileされるため上記のエラーになるようです。

Committer:
minicube
Date:
Sun Oct 27 20:12:31 2013 +0000
Revision:
43:b3acfef78949
Parent:
targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/system_LPC11xx.h@30:91c1d09ada54
mbed SDK; LPC1114FN28 use only

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 30:91c1d09ada54 1 /**************************************************************************//**
mbed_official 30:91c1d09ada54 2 * @file system_LPC11xx.h
mbed_official 30:91c1d09ada54 3 * @brief CMSIS Cortex-M0 Device Peripheral Access Layer Header File
mbed_official 30:91c1d09ada54 4 * for the NXP LPC11xx/LPC11Cxx Device Series
mbed_official 30:91c1d09ada54 5 * @version V1.10
mbed_official 30:91c1d09ada54 6 * @date 24. November 2010
mbed_official 30:91c1d09ada54 7 *
mbed_official 30:91c1d09ada54 8 * @note
mbed_official 30:91c1d09ada54 9 * Copyright (C) 2009-2010 ARM Limited. All rights reserved.
mbed_official 30:91c1d09ada54 10 *
mbed_official 30:91c1d09ada54 11 * @par
mbed_official 30:91c1d09ada54 12 * ARM Limited (ARM) is supplying this software for use with Cortex-M
mbed_official 30:91c1d09ada54 13 * processor based microcontrollers. This file can be freely distributed
mbed_official 30:91c1d09ada54 14 * within development tools that are supporting such ARM based processors.
mbed_official 30:91c1d09ada54 15 *
mbed_official 30:91c1d09ada54 16 * @par
mbed_official 30:91c1d09ada54 17 * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
mbed_official 30:91c1d09ada54 18 * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
mbed_official 30:91c1d09ada54 19 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
mbed_official 30:91c1d09ada54 20 * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
mbed_official 30:91c1d09ada54 21 * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
mbed_official 30:91c1d09ada54 22 *
mbed_official 30:91c1d09ada54 23 ******************************************************************************/
mbed_official 30:91c1d09ada54 24
mbed_official 30:91c1d09ada54 25
mbed_official 30:91c1d09ada54 26 #ifndef __SYSTEM_LPC11xx_H
mbed_official 30:91c1d09ada54 27 #define __SYSTEM_LPC11xx_H
mbed_official 30:91c1d09ada54 28
mbed_official 30:91c1d09ada54 29 #ifdef __cplusplus
mbed_official 30:91c1d09ada54 30 extern "C" {
mbed_official 30:91c1d09ada54 31 #endif
mbed_official 30:91c1d09ada54 32
mbed_official 30:91c1d09ada54 33 #include <stdint.h>
mbed_official 30:91c1d09ada54 34
mbed_official 30:91c1d09ada54 35 extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */
mbed_official 30:91c1d09ada54 36
mbed_official 30:91c1d09ada54 37
mbed_official 30:91c1d09ada54 38 /**
mbed_official 30:91c1d09ada54 39 * Initialize the system
mbed_official 30:91c1d09ada54 40 *
mbed_official 30:91c1d09ada54 41 * @param none
mbed_official 30:91c1d09ada54 42 * @return none
mbed_official 30:91c1d09ada54 43 *
mbed_official 30:91c1d09ada54 44 * @brief Setup the microcontroller system.
mbed_official 30:91c1d09ada54 45 * Initialize the System and update the SystemCoreClock variable.
mbed_official 30:91c1d09ada54 46 */
mbed_official 30:91c1d09ada54 47 extern void SystemInit (void);
mbed_official 30:91c1d09ada54 48
mbed_official 30:91c1d09ada54 49 /**
mbed_official 30:91c1d09ada54 50 * Update SystemCoreClock variable
mbed_official 30:91c1d09ada54 51 *
mbed_official 30:91c1d09ada54 52 * @param none
mbed_official 30:91c1d09ada54 53 * @return none
mbed_official 30:91c1d09ada54 54 *
mbed_official 30:91c1d09ada54 55 * @brief Updates the SystemCoreClock with current core Clock
mbed_official 30:91c1d09ada54 56 * retrieved from cpu registers.
mbed_official 30:91c1d09ada54 57 */
mbed_official 30:91c1d09ada54 58 extern void SystemCoreClockUpdate (void);
mbed_official 30:91c1d09ada54 59
mbed_official 30:91c1d09ada54 60 #ifdef __cplusplus
mbed_official 30:91c1d09ada54 61 }
mbed_official 30:91c1d09ada54 62 #endif
mbed_official 30:91c1d09ada54 63
mbed_official 30:91c1d09ada54 64 #endif /* __SYSTEM_LPC11xx_H */