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

several - undefined reference errors when using make

I am trying to add ADC to my program per the nordic examples on GitHub. Using GCC, SDK12, nrf51. These are the errors I am getting: (sorry for the formatting of this - code and block quote did not seem to work):

Linking target: _build/nrf51822_xxac.out _build/nrf51822_xxac_main.c.o: In function timer1_handler': C:\SDK12\examples\TEST\TEST 1590\51822\s130\Make/../../../main.c:178: undefined reference tonrf_drv_adc_sample' _build/nrf51822_xxac_main.c.o: In function adc_event_handler': C:\SDK12\examples\TEST\TEST 1590\51822\s130\Make/../../../main.c:138: undefined reference tonrf_drv_adc_buffer_convert' _build/nrf51822_xxac_main.c.o: In function adc_config': C:\SDK12\examples\TEST\TEST 1590\51822\s130\Make/../../../main.c:150: undefined reference tonrf_drv_adc_init' C:\SDK12\examples\TEST\TEST 1590\51822\s130\Make/../../../main.c:156: undefined reference to nrf_drv_adc_channel_enable' C:\SDK12\examples\TEST\TEST 1590\51822\s130\Make/../../../main.c:161: undefined reference tonrf_drv_adc_channel_enable' C:\SDK12\examples\TEST\TEST 1590\51822\s130\Make/../../../main.c:166: undefined reference to nrf_drv_adc_channel_enable' _build/nrf51822_xxac_main.c.o: In functionmain': C:\SDK12\examples\TEST\TEST 1590\51822\s130\Make/../../../main.c:670: undefined reference to `nrf_drv_adc_buffer_convert' collect2.exe: error: ld returned 1 exit status make: *** [_build/nrf51822_xxac.out] Error 1

What am I missing?

Related