Hi,
I am trying to get the PWM example (github.com/.../nrf51-pwm-library) to work with a Softdevice (S110) that advertises.
There have been several Questions on the topic, but I still don't understand how I make sure that the timer used to trigger the PWM is placed through the sd_ppi event management.
Two different setups:
- Only using the example code quoted
above works fine, as long as I keep
#define USE_WITH_SOFTDEVICE
When set this to 1, the PWM doesn't work anymore. As far as I understand (following this question), this is due to the SD not being initialised. Thus, I moved to the second setup:
0 - I copied all of the PWM example
into the
nrf6310\s110\ble_app_template
example. Now the SD works fine, but
the PWM does still not trigger. I
then increased
#define APP_TIMER_MAX_TIMERS
by one (as I thought would be the additional timer for the PWM and then uncommentederr_code = app_timer_start(m_pwm_timer_id, PWM_INTERVAL, NULL);
in the functiontimers_start(void)
.
But that still does not work. I am still missing something, could you please help me, what?
Thanks!
Edit: To make things clearer, please see my main.c, where I tried to put together the BLE_template and the PWM example. It advertises, but the PIN20 is not toggled by the PWM.
Anybody can help?