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:
mbed_official
Date:
Wed Sep 25 11:30:05 2013 +0100
Revision:
31:42176bc3c368
Synchronized with git revision f580c008b139a952d38ac5c7c53bbae375739c67

Who changed what in which revision?

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