Unable to Compile LPCOpen Example Project in Keil uVision — Missing .lib File Error

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Unable to Compile LPCOpen Example Project in Keil uVision — Missing .lib File Error

751 次查看
Nisarga
Contributor I

Dear NXP Support Team,

I am currently working with the LPCOpen example projects using Keil uVision 4, and I am facing a compilation issue that I need assistance with.

Specifically, I am trying to build the periph_can project located at the following path in LPCOpen v2.07:lpcopen_2_07_keil_iar_nxp_lpcxpresso_1769\applications\lpc17xx_40xx\keil_uvision_projects\nxp_lpcxpresso_1769\periph\periph_can

Without modifying any default settings, upon compiling, I encounter the following error:

.\keil_output\iflash_nxp_lpcxpresso_1769\can_iflash_nxp_lpcxpresso_1769.axf: error: L6002U: Could not open file ..\..\..\..\..\..\software\lpc_core\lpc_board\boards_17xx\nxp_lpcxpresso_1769\keil_output\board_nxp_lpcxpresso_1769.lib: No such file or directory

To resolve this, I tried the following:

  1. Navigated to:
    C:\lpcopen_2_10_keil_iar_ea_devkit_1788\software\lpc_core\lpc_board\boards_17xx\ea_devkit_1788

  2. Opened the lib_lpc_board_ea_devkit_1788.uvproj project.

  3. Built the project successfully, which generated the .lib file:
    board_ea_devkit_1788.lib

Despite this, the same error persists, pointing to the absence of:

board_nxp_lpcxpresso_1769.lib

However, I have manually verified that the .lib file does exist at the specified path. I cannot find any reason for the linker to report that it is missing.

Could you please assist me in resolving this issue or advise if there are additional configurations needed to properly link the LPCOpen board libraries?

Thank you in advance for your support.

Best regards,
Nisarga

 

标签 (1)
0 项奖励
回复
1 回复

722 次查看
Harry_Zhang
NXP Employee
NXP Employee

Hi @Nisarga 

Based on your report error,

..\..\..\..\..\..\software\lpc_core\lpc_board\boards_17xx\nxp_lpcxpresso_1769\keil_output\board_nxp_lpcxpresso_1769.lib: No such file or directory

You try to open C:\lpcopen_2_10_keil_iar_ea_devkit_1788\software\lpc_core\lpc_board\boards_17xx\ea_devkit_1788

I think you should open \lpc_core\lpc_board\boards_17xx\nxp_lpcxpresso_1769  project and compile it.

BR

Harry

 

0 项奖励
回复