10 years, 8 months ago.

ble.waitForEvent() and Ticker/Interrupts; interrupts stop working (nRF51822 platform)

I have started a project based on BLE_Heartrate template. First I introduced a Ticker to poll some input signals, but this function stops working after a few BT commands are received. After reading that there are issues wrt Ticker and the BLE, I implemented an external interrupt on a pin to do/trigger the "real-time" functions. But this implementation also stops working after a number of BT packets being received. The BLE side seems to continue working, but code associated with the interrupt is not executing.

I understand that the Interrupt function should get the ble.waitForEvent() out of its idle state. Please advise what I am missing. Thanks, Franco

With brief experimentation I found that using the attach function (with parameter 0.1) works as opposed to using attach_us function with parameter 100000 - go figure! hopefully it carries on working

posted by Franco Giangregorio 20 Feb 2015
Be the first to answer this question.