Pronlems building AN10995 - Bootloader

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Pronlems building AN10995 - Bootloader

ソリューションへジャンプ
1,178件の閲覧回数
thomashavregaar
Contributor II

Hi

We are two students who are trying to implement a secondary bootloader on a LPC1114.

We are using LPCXpresso version: 8.2.2_60, and the LPCXpresso 1114 rev A. test board.

We are both new to the IDE and are trying to learn about bootloaders. via. NXP's forums have we found the http://www.lpcware.com/content/nxpfile/an10995-lpc1100-secondary-bootloader-software-v13, which we are trying to use as a base to learn from, but building the project results in several errors. these are

"cannot find -lCMSISv1p30_LPC11xx", for bothe application and bootloader, "make: *** [Application.axf] Error 1 " and "make: *** [Bootloader.axf] Error 1 Bootloader"

while the consol shows the following text refering to a problem.

Building target: Application.axf
Invoking: MCU Linker
arm-none-eabi-gcc -nostdlib -Xlinker -Map=Application.map -Xlinker --gc-sections -mcpu=cortex-m0 -mthumb -T "Application_Release.ld" -o "Application.axf"  ./src/IAP.o ./src/cr_startup_lpc11.o ./src/main.o   -lCMSISv1p30_LPC11xx
c:/nxp/lpcxpresso_8.2.2_650/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld.exe: cannot find -lCMSISv1p30_LPC11xx
collect2.exe: error: ld returned 1 exit status
make: *** [Application.axf] Error 1

Thanks in advance

ラベル(1)
1 解決策
923件の閲覧回数
Dezheng_Tang
NXP Employee
NXP Employee

The problem is probably not import related.

In the current setting, once you unzip the AN10995 file,

CMSISv1p30_LPC11xx library was built and put in the "Debug" directory.

However, the application library search path is:

"${workspace_loc:/CMSISv1p30_LPC11xx/Release}"

Here is what you should do:

From application project, go to properties/MCU Linker/Libraries/Library Search Path (-L)

Add:

"${workspace_loc:/CMSISv1p30_LPC11xx/Debug}"

Now, your application will seach both "Release" and "Debug" directory and link

"CMSISv1p30_LPC11xx" library correctly.

元の投稿で解決策を見る

2 返答(返信)
923件の閲覧回数
lpcxpresso_supp
NXP Employee
NXP Employee

You need to import the missing CMSIS library project. From the QuickStart Panel, select Import project(s). From the Import projects(s) dialog, select Browse Project archive (zip). You'll find the CMSIS library version you need in the LPC11xx_OldCMSIS_Libraries.zip archive located here: Legacy -> NXP -> LPC1000 -> LPC11xx.

Thanks and regards,

LPCXpresso Support

0 件の賞賛
返信
924件の閲覧回数
Dezheng_Tang
NXP Employee
NXP Employee

The problem is probably not import related.

In the current setting, once you unzip the AN10995 file,

CMSISv1p30_LPC11xx library was built and put in the "Debug" directory.

However, the application library search path is:

"${workspace_loc:/CMSISv1p30_LPC11xx/Release}"

Here is what you should do:

From application project, go to properties/MCU Linker/Libraries/Library Search Path (-L)

Add:

"${workspace_loc:/CMSISv1p30_LPC11xx/Debug}"

Now, your application will seach both "Release" and "Debug" directory and link

"CMSISv1p30_LPC11xx" library correctly.