I am trying to add PWM library functionality to my "template" PWM application and observe that:
- If I place
app_pwm_init()
before BLE initialization, I have Invalid Parameter error originated from the call tonrf_drv_timer_init()
in that function. - If I place
app_pwm_init()
after BLE initialization, I crash right into HardFault error after reachingpwm_dealloc()
My PWM initialization is not anything special yet. I am 99% only following the sample code in the PWM Library documentation. The only different thing is variable names and parameter values (period, pin number).
What could be going wrong here?
I am also attaching the project here for reference. The folder is supposed to be placed on the same level as ble_app_uart example in SDK v10. music_error.zip