This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

PWM and Softdevice

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:

  1. Only using the example code quoted above works fine, as long as I keep #define USE_WITH_SOFTDEVICE
    0
    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:
  2. 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 uncommented err_code = app_timer_start(m_pwm_timer_id, PWM_INTERVAL, NULL); in the function timers_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?

Parents Reply Children
No Data
Related