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

HardFault when running app_pwm_init()

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 to nrf_drv_timer_init() in that function.
  • If I place app_pwm_init() after BLE initialization, I crash right into HardFault error after reaching pwm_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

Related