I have imported LPC open examples but when i try to build the hid keyboard example for LPC1769 i get the following error. How can i resolve this issue.
18:10:39 **** Incremental Build of configuration Debug for project usbd_lib_hid_keyboard ****
make -r -j12 all
Building target: usbd_lib_hid_keyboard.axf
Invoking: MCU Linker
arm-none-eabi-gcc -nostdlib -L"C:\Users\yugio\Documents\MCUXpressoIDE_10.3.1_2233\workspace\lpc_chip_175x_6x\libs" -Xlinker -Map="usbd_lib_hid_keyboard.map" -Xlinker --gc-sections -mcpu=cortex-m3 -mthumb -T "usbd_lib_hid_keyboard_Debug.ld" -o "usbd_lib_hid_keyboard.axf" ./example/src/cr_startup_lpc175x_6x.o ./example/src/hid_desc.o ./example/src/hid_keyboard.o ./example/src/hid_main.o ./example/src/ms_timer.o ./example/src/sysinit.o -llpc_board_nxp_lpcxpresso_1769 -llpc_chip_175x_6x -lusbd_175x_6x_lib
c:/nxp/mcuxpressoide_10.3.1_2233/ide/plugins/com.nxp.mcuxpresso.tools.win32_10.3.0.201811011841/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/bin/ld.exe: cannot find -llpc_board_nxp_lpcxpresso_1769
c:/nxp/mcuxpressoide_10.3.1_2233/ide/plugins/com.nxp.mcuxpresso.tools.win32_10.3.0.201811011841/tools/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/bin/ld.exe: cannot find -llpc_chip_175x_6x
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:32: usbd_lib_hid_keyboard.axf] Error 1
Please make sure you build the related libs prior to the usbd_lib_hid_keyboard.
I just test build from my side, it can pass build without any issue. see below:
Have a great day,
Jun Zhang
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
Hi ZhangJennie,
The libraries were built before attempting to build the usbd_lib_hid_keyboard project.
I have solved the issue by checking lpc_board_nxp_lpcexpresso_1769 and lpc_chip_175x_6x under C/C++ Genereal -> Paths & Symbols -> References Tab.
Good to know. Thanks.