Hi,
I bumped into a problem trying to get PWM working and traced it back to the app_pwm_init function, for a simple test case use the the pwm example in the 8.1.0 SDK and change:
err_code = app_pwm_init(&PWM1,&pwm1_cfg,pwm_ready_callback);
to:
err_code = app_pwm_init(&PWM1,&pwm1_cfg, NULL);
This ultimately ends up running the hardfault handler; it should be allowed according to the docs "Pointer to ready callback function (or NULL to disable)."
My setup: sdk 8.1.0 sd: 8.0.0 ic: nRF51822 AA G0
perhaps it's because I'm using r2 silicon and not r3, just thought I'd let someone know.
All the best Wayne