Fork of mbed-src file paths change. LPC1114FN28 use only.
Fork of mbed-src by
Information
この情報は2013/10/28時点での解決方法です。
現在はmbed-src、標準ライブラリで問題なくコンパイルが可能です。
・使う物
LPC1114FN28
mbed SDK
LPC1114FN28でmbed-SDKのLibraryを使うとCompile出来ない。(2013/10/28)
パスが通ってないだけのようなのでファイルを以下に移動する。
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\ |
へ移動
移動後は以下のような構成になると思います。
※不要なファイルは削除してあります。
![]() |
ファイルの移動が面倒なので以下に本家からフォークしたライブラリを置いておきます。
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されるため上記のエラーになるようです。
targets/cmsis/TARGET_NXP/TARGET_LPC23XX/cmsis_nvic.h@13:0645d8841f51, 2013-08-05 (annotated)
- Committer:
- bogdanm
- Date:
- Mon Aug 05 14:12:34 2013 +0300
- Revision:
- 13:0645d8841f51
- Parent:
- vendor/NXP/LPC812/cmsis/cmsis_nvic.h@10:3bc89ef62ce7
- Child:
- 15:4892fe388435
Update mbed sources to revision 64
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
emilmont | 10:3bc89ef62ce7 | 1 | /* mbed Microcontroller Library - cmsis_nvic |
emilmont | 10:3bc89ef62ce7 | 2 | * Copyright (c) 2009-2011 ARM Limited. All rights reserved. |
emilmont | 10:3bc89ef62ce7 | 3 | * |
emilmont | 10:3bc89ef62ce7 | 4 | * CMSIS-style functionality to support dynamic vectors |
emilmont | 10:3bc89ef62ce7 | 5 | */ |
emilmont | 10:3bc89ef62ce7 | 6 | |
emilmont | 10:3bc89ef62ce7 | 7 | #ifndef MBED_CMSIS_NVIC_H |
emilmont | 10:3bc89ef62ce7 | 8 | #define MBED_CMSIS_NVIC_H |
emilmont | 10:3bc89ef62ce7 | 9 | |
emilmont | 10:3bc89ef62ce7 | 10 | #include "cmsis.h" |
emilmont | 10:3bc89ef62ce7 | 11 | |
emilmont | 10:3bc89ef62ce7 | 12 | #ifdef __cplusplus |
emilmont | 10:3bc89ef62ce7 | 13 | extern "C" { |
emilmont | 10:3bc89ef62ce7 | 14 | #endif |
emilmont | 10:3bc89ef62ce7 | 15 | |
emilmont | 10:3bc89ef62ce7 | 16 | void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector); |
emilmont | 10:3bc89ef62ce7 | 17 | uint32_t NVIC_GetVector(IRQn_Type IRQn); |
emilmont | 10:3bc89ef62ce7 | 18 | |
emilmont | 10:3bc89ef62ce7 | 19 | #ifdef __cplusplus |
emilmont | 10:3bc89ef62ce7 | 20 | } |
emilmont | 10:3bc89ef62ce7 | 21 | #endif |
emilmont | 10:3bc89ef62ce7 | 22 | |
emilmont | 10:3bc89ef62ce7 | 23 | #endif |