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

undefined reference to `nrf_drv_ppi_init'

Hey all, I am using an NRF52 DK and am trying to combine the 'pwm' and 'ant broadcast' examples.  Both examples compile fine on their own, but when I try to combine I am getting these two errors:

Output/ant_broadcast_tx_pca10040_s212 Release/Obj/app_pwm.o: In function `app_pwm_init':

undefined reference to `nrf_drv_ppi_init'

I don't understand what the first one is but the second one seems like it is not finding the library... I made sure PPI is turned on in sdk_config.h and that it is included in the header and makefile... Also don't know if it matters but I am working in Segger Embedded Studio using S212 SoftDevice. I have included everything I seemed to have needed in the header and added all to the makefile; please advise. 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/**
* This software is subject to the ANT+ Shared Source License
* www.thisisant.com/swlicenses
* Copyright (c) Dynastream Innovations, Inc. 2014
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or
* without modification, are permitted provided that the following
* conditions are met:
* 1) Redistributions of source code must retain the above
* copyright notice, this list of conditions and the following
* disclaimer.
*
* 2) Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials
* provided with the distribution.
*
* 3) Neither the name of Dynastream nor the names of its
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
sdk_config.h

Included are my main file and sdk_config. 

Thanks,

Vkryvor