cuamckuu/nfc-frog

Segmentation Fault

lps83 opened this issue · 4 comments

lps83 commented

Hi, I just tried your lib in different mode; I just have a lot of Hexa in my console and then a Segmentation fault. Do you have any idea ?
Im trying on raspbian.

Thanks

Edit :
device_nfc.cpp:89
std::count << HEX(ret.data[I]) << " ";

Hi, I think, that it's kind of "hardware" error, not software.

Make sure that you hold your card near nfc-scanner long enought (and close enought). If you will move card away, then there will be a segfault, I used to see same thing several times before.

lps83 commented

Thanks for your answer.
I'm going to try with an official Adafruid PN532. Do you think the raspberry pi can be the problem ?

lps83 commented

Just tried with another PN532 board and a new FTDI cable on my other linux ...

`sudo ./nfc-frog GPO
[Info] NFC reader: pn532_uart:/dev/ttyUSB0 opened.
[Info] Searching card...

error libnfc.driver.pn532_uart Application level error detected
[Info] Response from SELECT PPSE: 00 00 ... 45Erreur de segmentation`

As I said: Make sure that you hold your card near nfc-scanner long enought (and close enought)

Also check that you have libnfc(>= 1.7.1), and that it works correctly by running nfc-list and nfc-pool with your card or with another one.