Porting NXP NFC Lib to ESP32 (ESP-IDF)

jr.hernandezSio
Posts: 3
Joined: Wed Sep 14, 2022 3:03 pm

Porting NXP NFC Lib to ESP32 (ESP-IDF)

Postby jr.hernandezSio » Wed Sep 14, 2022 3:08 pm

Hi,

I am trying to integrate an NFC NXP chip with my ESP32 (using ESP-IDF) and I am finding difficultiues when porting the nfc lib provided by NXP. NXP does not provice any support for this integration in terms of porting the lib to ESP32 platform.

Both devices are connected via SPI and several GPIOS.

Is there any guide/example wher I can spot how to port?

Any clue will be welcome.

Regards, Ramon.

ESP_igrr
Posts: 2072
Joined: Tue Dec 01, 2015 8:37 am

Re: Porting NXP NFC Lib to ESP32 (ESP-IDF)

Postby ESP_igrr » Tue Sep 20, 2022 4:31 pm

Hello Ramon,

I found this relatively old project which ports the NXP library to ESP-IDF: https://github.com/superdave/esprox.
It probably won't compile with latest ESP-IDF versions, but overall should be a good starting point. Could you give it a try?

jr.hernandezSio
Posts: 3
Joined: Wed Sep 14, 2022 3:03 pm

Re: Porting NXP NFC Lib to ESP32 (ESP-IDF)

Postby jr.hernandezSio » Wed Sep 28, 2022 9:44 am

Thanks a lot.

That helped me in solving issues with the SPI.

Now, I am struggling with the OS layer.

Regards, Ramon.

JVKran
Posts: 18
Joined: Thu Mar 04, 2021 2:40 pm

Re: Porting NXP NFC Lib to ESP32 (ESP-IDF)

Postby JVKran » Tue Aug 01, 2023 12:26 pm

Did you manage to get something working? I've spent a couple of days on this as well. Communication with the PN5180 works (MISO and MISO), I see things going on, but the examples don't output anything. I also had to change some things in FreeRTOS as well... Disable asserts for a timer of 0 ms... Just trying to get some sign of life...

Who is online

Users browsing this forum: Baidu [Spider] and 216 guests