cancel
Showing results for 
Search instead for 
Did you mean: 

X-NUCLEO-NFC05A1 NFC Poller: "Error: writing interrupt pin to gpio export file" on Raspbian Lite

JChic.1
Associate

Hi,

i'm unable to run the NFC poller on a X-NUCLEO-NFC05A1 on a raspberry running Raspbian Lite.

I get the following error:

"Error: writing interrupt pin to gpio export file"

Could someone advise please?

Jacopo Chicco

3 REPLIES 3
SMacK.1
Associate

The default user account on Raspberry Pi does not have the required permissions to access the GPIO pins as necessary. If you run the app with `sudo` it will work.

Sean

Thank you for your answer.

I'm doing sudo but it doesn't work anyway.

I discovered that it just doesn't work with recent versions of raspbian OS.

I installed an old one and it works, but it would be better to fix it.

Thanks

Jacopo

It will also fail if an invalid GPIO pin number is used. PLTF_GPIO_INTR_PIN is set to 7 in the demo code, but my on Pi 4B that wasn't a valid option, and I ended up setting it to 25 and using GPIO 25 instead.