This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2541: BLE stack, Key handling

Part Number: CC2541

Hello,

I am using 2541 BLE stack SimplePeripheralExample. I am trying to detect a signal on my P0_0 pin and increase a counter int i = 0; which i am sending over BLE to my phone. The signal i am trying to detect is 3.3V which is HIGH for 3micro seconds.(added the picture below). For signal detection i am using simpleBLEPeripheral_HandleKeys which i adopted to my application. The problem i am facing is that if i trigger the pin manually by hand with 3.3V it detects and sends incremented number to my phone, but since i try with this signal coming from my sensor it cannot detect. 

I tried to minimize  HAL_KEY_DEBOUNCE_VALUE to 0 and turn of POWER_SAVING but that did not helped. I am not sure where can be the problem. Maybe someone can help me and tell me how to debug in order to find the problem.  Thank you.

Kind regards,

Gytis