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

UART and timer functionality in single makefile in Eclipse

I am trying to modify make file of UART with make file of timer to give the functionality of UART and timer. I created the single code in main c file and added necessary source files and include files in make file of UART and also have given necessary header files. But every time when i debug it gives me this error:

../../../../../../components/drivers_nrf/timer/nrf_drv_timer.h:84:50: error: 'TIMER_DEFAULT_CONFIG_FREQUENCY' undeclared (first use in this function)

But when I try to modify timer make file with make file of UART with all necessary source files and include files added I get this error:

E:\Nordic\nRF5_SDK\examples\peripheral\timer2\pca10040\blank\armgcc/../../../main.c:70: undefined reference to `app_uart_init' collect2.exe: error: ld returned 1 exit status make: *** [../../../../../../components/toolchain/gcc/Makefile.common:125: _build/nrf52832_xxaa.out] Error 1

Related