Error on Edge detection when Pull Up is enabled



I am working on FX30S modem and I am enabling Pull Up and registering an event handler function on GPIO22 (using le_gpioPin22_EnablePullUp and le_gpioPin22_AddChangeEventHandler, with LE_GPIOPIN22_EDGE_BOTH parameter, respectively).

I have connected the pin to a switch that is connected to ground. I don’t receive anything in the function that I have registered previously when I active the switch .

In other case, when I don’t enable Pull Up and I connect the pin (and the switch) to high level it works perfectly.

Do I have to configure any additional parameter? What am I doing wrong?