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.

CC2541DK-MINI: cc2541 keyfob

Part Number: CC2541DK-MINI
Other Parts Discussed in Thread: CC2540

I have given an isr in hal_key.c. I want to send the message to cc2540 USB when an external interrupt occurs. I know how to give interrupts when both devices are not connected. But when devices are connected there is misfunction. How to set parameters of the switch in keyfobdemo.c. when an interrupt occurs. How we can modify in process event function for given ISR.  

  • We do not provide support for directly accessing the USB via an ISR during a BLE connection. This will likely prevent the BLE stack from meeting real-time scheduling dependencies. I suggest setting an event and handling the write from outside an ISR. You can see how NPI is used in the HostTestRelease project for an example implementation.

    Best wishes