I am using the Hackable kit which has nrf52832 to control a servo motor and read accelerometer(AXL335) readings through a iOS app. I am a novice when comes to embedded. I got the ios app ready to send an integer value to the kit. Right now i am using the ble_blinky example from SDK 15 to turn on/off some external LED's and a piezo buzzer. But when i try to run the PWM_Library integrated(basically copy pasted with the pin numbers changed) in the same project the servo motor doesn't run and the program crashes at run time. Can anyone help me to accomplish my goal?
The code i use for BLE is as below.
I am using SEGGER to program and compile the code, and push it to the device using ARM GCC GDB.