Input interrupt or event in KW41Z with wireless_examples_thread_router_eligible_device

cancel
Showing results for 
Search instead for 
Did you mean: 

Input interrupt or event in KW41Z with wireless_examples_thread_router_eligible_device

347 Views
diegocomin
Contributor IV

Hi,

I want to make at the Coap application from the example wireless_examples_thread_router_eligible_device an custom application. I need to send my luxometer value through Coap when an input interrupt comes in PTA17.

To recycle a keyboard event report I changed the switch SW2 pin PTC5 to my PTA17.

pastedImage_1.png

I thought I could use the event "gKBD_EventPB2_c"  attached to the previous switch pin SW2 PTC5 (now attached to my PTA17), but when I trigger PTA17 input the module resets. 

 

pastedImage_2.png

What could be the problem? If it is not possible to replace the switch pin to any custom pin, could someone show me an example how to create a new event to report as it is done in Keyboard.c file with my PTA17?

 

Thanks in advance,

 

Diego Comin

Labels (2)
2 Replies

123 Views
jc_pacheco
NXP Employee
NXP Employee

This is duplicated from this other post in the Wireless Connectivity group:

Input interrupt in KW41Z with wireless_examples_thread_router_eligible_device

123 Views
estephania_mart
NXP TechSupport
NXP TechSupport

Hello, 

By any chance, which MUX function did you set for the PTA17 ? Can you confirm you have enabled the clock? 

pastedImage_1.png

Regards, 

Estephania

0 Kudos