title: NXP NFC Reader PNEV512R not working with Raspberry Pi 4
body: <p>NXP's NFC card reader PNEV512R (<a href="https://www.nxp.com/products/rfid-nfc/nfc-hf/nfc-readers/explore-nfc-exclusive-from-element14:PNEV512R" rel="nofollow noreferrer">https://www.nxp.com/products/rfid-nfc/nfc-hf/nfc-readers/explore-nfc-exclusive-from-element14:PNEV512R</a>) does not work with my new raspberry pi 4.</p>
  <p>Kernel:</p>
  <pre><code>Linux AlexPi 5.4.51-v7l+ #1333 SMP Mon Aug 10 16:51:40 BST 2020 armv7l GNU/Linux
  </code></pre>
  <p>Release:</p>
  <pre><code>PRETTY_NAME=&quot;Raspbian GNU/Linux 10 (buster)&quot;  
  NAME=&quot;Raspbian GNU/Linux&quot; VERSION_ID=&quot;10&quot; 
  VERSION=&quot;10 (buster)&quot;
  VERSION_CODENAME=buster
  ID=raspbian
  ID_LIKE=debian
  HOME_URL=&quot;http://www.raspbian.org/&quot;
  SUPPORT_URL=&quot;http://www.raspbian.org/RaspbianForums&quot;
  BUG_REPORT_URL=&quot;http://www.raspbian.org/RaspbianBugs&quot;
  </code></pre>
  <p>For installing the needed software I followed this manual: <a href="https://github.com/svvitale/nxppy" rel="nofollow noreferrer">https://github.com/svvitale/nxppy</a><br />
  Installation was without any fails. But even the instantiation of Mifare raises an exception.</p>
  <p>Python Code:</p>
  <pre><code>import nxppy
  mifare=nxppy.Mifare()
  </code></pre>
  <p>Exception:</p>
  <pre><code>nxppy.InitError: Nxppy: Unknown Error from Undefined Component
  
      The above exception was the direct cause of the following exception:
  
      Traceback (most recent call last):
        File &quot;nfc.py&quot;, line 3, in &lt;module&gt;
              mifare=nxppy.Mifare()
      SystemError: &lt;class 'nxppy.Mifare'&gt; returned a result with an error set
  </code></pre>
  <p>The SPI was switched on of course. ^^ And I tested the interface with the loopbacktest: <a href="https://elinux.org/RPi_SPI" rel="nofollow noreferrer">https://elinux.org/RPi_SPI</a><br />
  So SPI is working. On my Raspbarry Pi 3B+ everything works fine. Now I am looking for a solution to fix this problem.</p>