NFC USB Dongle NXP-NCI_Linux_example

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

NFC USB Dongle NXP-NCI_Linux_example

1,240 Views
mchiang
Contributor I

Hello, I'm pretty new to C programming

I'm trying to get the MIKROE-2540 NFC dongle working on my linux VM running Ubuntu 18.04.

I tried running the the linux example with bash, but I get an error message

cannot execute binary file

I then tried to compile the program exactly as it say in the instruction on eclipse, but I get this in my console.

Building target: NXP-NCI_Linux_example
Invoking: GCC C Linker
gcc -o "NXP-NCI_Linux_example" ./TML/src/framework_Allocator.o ./TML/src/framework_Container.o ./TML/src/framework_Map.o ./TML/src/framework_Parcel.o ./TML/src/framework_Timer.o ./TML/src/framework_log.o ./TML/src/framework_mutex.o ./TML/src/framework_sem.o ./TML/src/framework_thread.o ./TML/src/hid.o ./TML/src/lpcusbsio.o ./TML/src/tml.o ./TML/src/tml_hid.o ./NfcTask/src/ndef_helper.o ./NfcTask/src/nfc_task.o ./NfcLibrary/NxpNci/src/NxpNci.o ./NfcLibrary/NdefLibrary/src/P2P_NDEF.o ./NfcLibrary/NdefLibrary/src/RW_NDEF.o ./NfcLibrary/NdefLibrary/src/RW_NDEF_T1T.o ./NfcLibrary/NdefLibrary/src/RW_NDEF_T2T.o ./NfcLibrary/NdefLibrary/src/RW_NDEF_T3T.o ./NfcLibrary/NdefLibrary/src/RW_NDEF_T4T.o ./NfcLibrary/NdefLibrary/src/T4T_NDEF_emu.o ./Application/main.o -lpthread -ludev
/usr/bin/ld: ./TML/src/framework_Timer.o: undefined reference to symbol 'timer_settime@@GLIBC_2.3.3'
//lib/x86_64-linux-gnu/librt.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [NXP-NCI_Linux_example] Error 1
makefile:34: recipe for target 'NXP-NCI_Linux_example' failed
"make all" terminated with exit code 2. Build might be incomplete.

What is GLIBC_2.3.3 and why is it undefined?

Tags (1)
0 Kudos
2 Replies

1,043 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi, Mouta,

  

   Probably,  the usage in the link can help you solve the problem.

https://community.nxp.com/thread/470843 

Have a nice day!

BR,

Weidong

0 Kudos

1,043 Views
mchiang
Contributor I

Hi Wigros,

I followed the instructions in the documentation provided in the link, but it is unclear to me how to configure the library with --enable-pn7150. I put the option after ./configure but I get this at the end of the output:

configure: WARNING: unrecognized options: --enable-pn7150

Afterwards running nfc-list does not show the device, even though it shows up in lsusb. The output below.

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 003: ID 1fc9:0088 NXP Semiconductors
Bus 002 Device 002: ID 80ee:0021 VirtualBox USB Tablet
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
debug libnfc.general log_level is set to 3
debug libnfc.general allow_autoscan is set to true
debug libnfc.general allow_intrusive_scan is set to false
debug libnfc.general 0 device(s) defined by user
nfc-list uses libnfc 1.7.1
debug libnfc.general 0 device(s) found using acr122_usb driver
debug libnfc.general 0 device(s) found using pn53x_usb driver
No NFC device found.
0 Kudos