This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Undefined reference in segger, nRF52840. app_error_handle etc.

Help pls, i can't build a project. 

Building ‘temp1’ from solution ‘temp1’ in configuration ‘Debug’
1> Generating linker script ‘temp1.ld’
1> Linking temp1.elf
1> Output/Debug/Obj/app_uart_fifo.o: In function `app_uart_init':
1> D:\git\temp1\sdk\components\libraries\uart/app_uart_fifo.c:133: multiple definition of `app_uart_init'
1> Output/Debug/Obj/app_uart.o:D:\git\temp1\sdk\components\libraries\uart/app_uart.c:85: first defined here
1> Output/Debug/Obj/app_uart_fifo.o: In function `app_uart_flush':
1> D:\git\temp1\sdk\components\libraries\uart/app_uart_fifo.c:179: multiple definition of `app_uart_flush'
1> Output/Debug/Obj/app_uart.o:D:\git\temp1\sdk\components\libraries\uart/app_uart.c:152: first defined here
1> Output/Debug/Obj/app_uart_fifo.o: In function `app_uart_get':
1> D:\git\temp1\sdk\components\libraries\uart/app_uart_fifo.c:193: multiple definition of `app_uart_get'
1> Output/Debug/Obj/app_uart.o:D:\git\temp1\sdk\components\libraries\uart/app_uart.c:117: first defined here
1> Output/Debug/Obj/app_uart_fifo.o: In function `app_uart_put':
1> D:\git\temp1\sdk\components\libraries\uart/app_uart_fifo.c:214: multiple definition of `app_uart_put'
1> Output/Debug/Obj/app_uart.o:D:\git\temp1\sdk\components\libraries\uart/app_uart.c:133: first defined here
1> Output/Debug/Obj/app_uart_fifo.o: In function `app_uart_close':
1> D:\git\temp1\sdk\components\libraries\uart/app_uart_fifo.c:240: multiple definition of `app_uart_close'
1> Output/Debug/Obj/app_uart.o:D:\git\temp1\sdk\components\libraries\uart/app_uart.c:156: first defined here
1> Output/Debug/Obj/main.o: In function `uart_error_handle':
1> D:\git\temp1\src/main.c:77: undefined reference to `app_error_handler'
1> D:\git\temp1\src/main.c:81: undefined reference to `app_error_handler'
1> Output/Debug/Obj/main.o: In function `main':
1> D:\git\temp1\src/main.c:165: undefined reference to `app_error_handler'
1> Output/Debug/Obj/nrfx_uart.o: In function `nrfx_uart_init':
1> D:\git\temp1\sdk\modules\nrfx\drivers\src/nrfx_uart.c:189: undefined reference to `nrfx_prs_acquire'
1> Output/Debug/Obj/nrfx_uarte.o: In function `nrfx_uarte_init':
1> D:\git\temp1\sdk\modules\nrfx\drivers\src/nrfx_uarte.c:210: undefined reference to `nrfx_prs_acquire'
Build failed

Related