Skip to main content
JChic.1
Associate
November 4, 2020
Question

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

  • November 4, 2020
  • 3 replies
  • 933 views

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

    This topic has been closed for replies.

    3 replies

    SMacK.1
    Visitor II
    November 12, 2020

    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

    JChic.1
    JChic.1Author
    Associate
    November 17, 2020

    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

    SMacK.1
    Visitor II
    November 17, 2020

    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.