Hi,
I'm having troubles adding PWM in light_switch_proxy_server example in Mesh SDK v. 2.1.1.
It seems that the PWM driver and instances are not correctly enabled, looking at the nrfx_pwm.h:
And also looking at the nrfx_pwm.c, where everything looks disabled:
Steps I have done:
1. Included header file "nrf_drv_pwm.h" in main.c
2. Edited Project Options -> Preprocessor with the path to the needed header files:
$(SDK_ROOT:../../../../nRF5_SDK_15.0.0_a53641a)/integration/nrfx/legacy
$(SDK_ROOT:../../../../nRF5_SDK_15.0.0_a53641a)/modules/nrfx/drivers/include
3. Added to the project (into the folder nRF5 SDK) the file "nrfx_pwm.c"
4. Enabled the PWM peripheral driver and PWM0 instance in the sdk_config.h:
#ifndef NRFX_PWM_ENABLED #define NRFX_PWM_ENABLED 1 #endif #ifndef NRFX_PWM0_ENABLED #define NRFX_PWM0_ENABLED 1
I have done the same steps successfully for the light_switch_server (NO proxy) in Mesh 2.0.1, so I don't know what I'm missing now...
Is there any other file that needs to be edited to enable PWM?
Or there is any way to find out which file NRFX_CHECK() is looking at?
Regards,
Paulo Zacarias