I use the SDK v11.0 alpha, the S130 with my USB-dongle(NRF51422).
I use the low_power_pwm to initialize 4 different PWMs. I used the Example low_power_pwm_s130_pca10031 and just added one PWM. It worked fine.
Then i took the ble_app_hrs_c_s130_pca10031 Example added the 4 PWMs. Now i get a SystemReset when i call the sd_softdevice_enable function and get the err_code NRF_ERROR_INVALID_STATE.
Why i can't enable the softdevice?
int main(void){
bool erase_bonds;
// Initialize.
SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, false); //ADDED by Pechi
APP_TIMER_INIT(APP_TIMER_PRESCALER, APP_TIMER_OP_QUEUE_SIZE, NULL); //ADDED by Pechi
low_power_init(); //ADDED by Pechi Init of 4 PWMs
buttons_leds_init(&erase_bonds);
nrf_log_init();
ble_stack_init(); //!Here! SystemReSet after calling sd_softdevice_enable
device_manager_init(erase_bonds);
db_discovery_init();
hrs_c_init();
bas_c_init();
// Start scanning for peripherals and initiate connection
// with devices that advertise Heart Rate UUID.
scan_start();
for (;; )
{
power_manage();
}