My Software as follows:
nRF52832 DK(pca10040)
nRF52 SDK15.0.0
mesh 2.1.1
SEGGER Embedded Studio 3.12
I want to transplant "examples\peripheral\pwm_library" to "examples\light_switch\proxy_server".I did the following:
1.add related source to this project.(nrf_drv_ppi.c nrf_nvic.c nrf_soc.c nrfx_gpiote.c nrfx_ppi.c nrfx_timer.c app_pwm.c)
2.SEGGER Embedded Studio "Options window -> Preprocessor -> User Include Directories" table,include As mentioned above source xx.h path.
$(SDK_ROOT:../../../../nRF5_SDK_15.0.0_a53641a)/integration/nrfx/legacy
$(SDK_ROOT:../../../../nRF5_SDK_15.0.0_a53641a)/modules/nrfx/drivers/include
$(SDK_ROOT:../../../../nRF5_SDK_15.0.0_a53641a)/components/libraries/pwm
3.Since build this project report an 'NRF_SUCCESS' undeclared ERROR,so in this error code include "sdk_errors.h"
4.Use CMSIS_Configuration_Wizard software ENABLED related macro(provide visual operations for sdk_config.h)
TIMER_ENABLED=1
TIMER1_ENABLED=1
APP_PWM_ENABLED=1
PPI_ENABLED=1
GPIOTE_ENABLED= 0 or 1
NOW
if GPIOTE_ENABLED=0,project can building not warning not error.
if GPIOTE_ENABLED=1,report multiple definition of `GPIOTE_IRQHandler' ERROR.
Can't solve,setting GPIOTE_ENABLED=0,next step
5.In main.c add code init timer and PWM following:
if GPIOTE_ENABLED=0,report undefined reference to `XXXXXXX' ERROR (these error on app_pwm.c).
if GPIOTE_ENABLED=1,report multiple definition of `GPIOTE_IRQHandler' ERROR.
What should I do!