Hi,
i use the library app_gpiote to setup interrupts on a toggling external pin(this pin generates a signal which changes from high to low).The external interrupt signal is generated every 4ms. during each interrupt i will get a 2-bytes data,and every 10th interrupt i have to send the data(10*2bytes) to the central device using the sd_ble_gatts_hvx() function.The problem is that when i use sd_ble_gatts_hvx() to transmit the data during the 10th interrupt ,the system will break down without any tips.
i don't know what is the reason causing the problem. i wonder whether 4ms is too short to finish the transmition by the sd_ble_gatts_hvx() function or not.
wish for your answer. have a good day !