I am trying to configure LPCXpresso v8.2.2, I tried in both Ubuntu and Windows. I am getting the same set of errors.
I am trying to build a project for LPC Chip 824.
I am getting this set of errors, from the LPC 824 Board Library. How can I fix it ?
Description Resource Path Location Type
undefined reference to `Chip_GPIO_Init' board.c /lpc_board_nxp_lpcxpresso_824/src line 204 C/C++ Problem
undefined reference to `Chip_SetupIrcClocking' board_sysinit.c /lpc_board_nxp_lpcxpresso_824/src line 68 C/C++ Problem
undefined reference to `Chip_UART_Init' board.c /lpc_board_nxp_lpcxpresso_824/src line 187 C/C++ Problem
undefined reference to `Chip_UART_SendBlocking' board.c /lpc_board_nxp_lpcxpresso_824/src line 155 C/C++ Problem
undefined reference to `Chip_UART_SetBaud' board.c /lpc_board_nxp_lpcxpresso_824/src line 190 C/C++ Problem
How can I fix it ?
Hi George,
Please make sure you have imported the lpc_board and lpc_chip libraries to your workspace:
If they are already imported then delete them and import them again using the "Import projects" option from the Quick start panel:
You could also try using the LPC82x code bundle from the below page, you will need to import the common, peripherals and utilities projects:
https://community.nxp.com/community/lpc/blog/2016/09/02/lpc8xx-family-code-example-bundles
Hope it helps!
Best Regards,
Carlos Mendoza
Technical Support Engineer
Which other library should I include ? I have already included both board and chip libraries for Lpc 824. Moreover this error is coming from the lpv 824 board library.
You obviously have done something wrong, but I can't tell without seeing your project.
have you tried using the lpcopen examples, as is, and comparing the working projects with yours?
'undefined reference' is a linker error. You need to make sure you link with the appropriate library.
Although you are not linking with a 3rd party library, this FAQ explains how libraries work.