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:
bogdanm
Date:
Tue Sep 10 15:14:19 2013 +0300
Revision:
20:4263a77256ae
Sync with git revision 171dda705c947bf910926a0b73d6a4797802554d

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bogdanm 20:4263a77256ae 1 /*
bogdanm 20:4263a77256ae 2 ** ###################################################################
bogdanm 20:4263a77256ae 3 ** Processor: MKL05Z128VLK4
bogdanm 20:4263a77256ae 4 ** Compilers: ARM Compiler
bogdanm 20:4263a77256ae 5 ** Freescale C/C++ for Embedded ARM
bogdanm 20:4263a77256ae 6 ** GNU C Compiler
bogdanm 20:4263a77256ae 7 ** IAR ANSI C/C++ Compiler for ARM
bogdanm 20:4263a77256ae 8 **
bogdanm 20:4263a77256ae 9 ** Reference manual: KL05RM, Rev.1, Jun 2012
bogdanm 20:4263a77256ae 10 ** Version: rev. 1.1, 2012-06-21
bogdanm 20:4263a77256ae 11 **
bogdanm 20:4263a77256ae 12 ** Abstract:
bogdanm 20:4263a77256ae 13 ** Provides a system configuration function and a global variable that
bogdanm 20:4263a77256ae 14 ** contains the system frequency. It configures the device and initializes
bogdanm 20:4263a77256ae 15 ** the oscillator (PLL) that is part of the microcontroller device.
bogdanm 20:4263a77256ae 16 **
bogdanm 20:4263a77256ae 17 ** Copyright: 2012 Freescale Semiconductor, Inc. All Rights Reserved.
bogdanm 20:4263a77256ae 18 **
bogdanm 20:4263a77256ae 19 ** http: www.freescale.com
bogdanm 20:4263a77256ae 20 ** mail: support@freescale.com
bogdanm 20:4263a77256ae 21 **
bogdanm 20:4263a77256ae 22 ** Revisions:
bogdanm 20:4263a77256ae 23 ** - rev. 1.0 (2012-06-13)
bogdanm 20:4263a77256ae 24 ** Initial version.
bogdanm 20:4263a77256ae 25 ** - rev. 1.1 (2012-06-21)
bogdanm 20:4263a77256ae 26 ** Update according to reference manual rev. 1.
bogdanm 20:4263a77256ae 27 **
bogdanm 20:4263a77256ae 28 ** ###################################################################
bogdanm 20:4263a77256ae 29 */
bogdanm 20:4263a77256ae 30
bogdanm 20:4263a77256ae 31 /**
bogdanm 20:4263a77256ae 32 * @file MKL05Z4
bogdanm 20:4263a77256ae 33 * @version 1.1
bogdanm 20:4263a77256ae 34 * @date 2012-06-21
bogdanm 20:4263a77256ae 35 * @brief Device specific configuration file for MKL05Z4 (header file)
bogdanm 20:4263a77256ae 36 *
bogdanm 20:4263a77256ae 37 * Provides a system configuration function and a global variable that contains
bogdanm 20:4263a77256ae 38 * the system frequency. It configures the device and initializes the oscillator
bogdanm 20:4263a77256ae 39 * (PLL) that is part of the microcontroller device.
bogdanm 20:4263a77256ae 40 */
bogdanm 20:4263a77256ae 41
bogdanm 20:4263a77256ae 42 #ifndef SYSTEM_MKL05Z4_H_
bogdanm 20:4263a77256ae 43 #define SYSTEM_MKL05Z4_H_ /**< Symbol preventing repeated inclusion */
bogdanm 20:4263a77256ae 44
bogdanm 20:4263a77256ae 45 #ifdef __cplusplus
bogdanm 20:4263a77256ae 46 extern "C" {
bogdanm 20:4263a77256ae 47 #endif
bogdanm 20:4263a77256ae 48
bogdanm 20:4263a77256ae 49 #include <stdint.h>
bogdanm 20:4263a77256ae 50
bogdanm 20:4263a77256ae 51 /**
bogdanm 20:4263a77256ae 52 * @brief System clock frequency (core clock)
bogdanm 20:4263a77256ae 53 *
bogdanm 20:4263a77256ae 54 * The system clock frequency supplied to the SysTick timer and the processor
bogdanm 20:4263a77256ae 55 * core clock. This variable can be used by the user application to setup the
bogdanm 20:4263a77256ae 56 * SysTick timer or configure other parameters. It may also be used by debugger to
bogdanm 20:4263a77256ae 57 * query the frequency of the debug timer or configure the trace clock speed
bogdanm 20:4263a77256ae 58 * SystemCoreClock is initialized with a correct predefined value.
bogdanm 20:4263a77256ae 59 */
bogdanm 20:4263a77256ae 60 extern uint32_t SystemCoreClock;
bogdanm 20:4263a77256ae 61
bogdanm 20:4263a77256ae 62 /**
bogdanm 20:4263a77256ae 63 * @brief Setup the microcontroller system.
bogdanm 20:4263a77256ae 64 *
bogdanm 20:4263a77256ae 65 * Typically this function configures the oscillator (PLL) that is part of the
bogdanm 20:4263a77256ae 66 * microcontroller device. For systems with variable clock speed it also updates
bogdanm 20:4263a77256ae 67 * the variable SystemCoreClock. SystemInit is called from startup_device file.
bogdanm 20:4263a77256ae 68 */
bogdanm 20:4263a77256ae 69 void SystemInit (void);
bogdanm 20:4263a77256ae 70
bogdanm 20:4263a77256ae 71 /**
bogdanm 20:4263a77256ae 72 * @brief Updates the SystemCoreClock variable.
bogdanm 20:4263a77256ae 73 *
bogdanm 20:4263a77256ae 74 * It must be called whenever the core clock is changed during program
bogdanm 20:4263a77256ae 75 * execution. SystemCoreClockUpdate() evaluates the clock register settings and calculates
bogdanm 20:4263a77256ae 76 * the current core clock.
bogdanm 20:4263a77256ae 77 */
bogdanm 20:4263a77256ae 78 void SystemCoreClockUpdate (void);
bogdanm 20:4263a77256ae 79
bogdanm 20:4263a77256ae 80 #ifdef __cplusplus
bogdanm 20:4263a77256ae 81 }
bogdanm 20:4263a77256ae 82 #endif
bogdanm 20:4263a77256ae 83
bogdanm 20:4263a77256ae 84 #endif /* #if !defined(SYSTEM_MKL05Z4_H_) */