As NFC reader library 5.12 also supports PN5180, switching the NFC frontend from CLRC663 to PN5180 is quite easy based on previous porting. The porting also includes the hardware settings and software modification.
a) Remove resistors on PNEV5180B to disconnect the onboard lpc1769 from PN5180, following steps on page 16 of https://www.nxp.com/docs/en/application-note/AN11908.pdf
b) Connect LPCXpresso board for LPC11U37 with PNEV5180 as below:
1. Make a copy of Board_Lpc11u37Rc663.h , and change its name to "Board_Lpc11u37Pn5180.h", and import it into the DAL/boards folder.
2.Change the source code in the header file as below:
3. Add two more pins' definition and configuration for BUSY and DWL pins of PN5180, and new configuration for reset pin.
and modify the reset logic:
4.Change the IRQ interrupt trigger type to rising edge.
5.Include this header file in BoardSelection.h
6.Add this new configuration in ph_NxpBuild_App.h
7.Add this new configuration in phApp_Init.h
8.Add this new configuration in ph_NxpBuild_Platform.h
9.Add this new configuration in Settings.
10.Building result:
Hi Mr. Kan Li,
first of all congrats and thanks you for your post. I write a comment here because I'm having problems including the library in my project, how can I do it for a PN512 chip as frontend and a KL17 as MCU. Also I'm using MCUXpresso v10.2.1.
Kind regards, JC.
so far, just NFC Reader Library v4.040.05 R2 supports PNEV512B, but the main problem is this version just support LPCopen library, while KL17 is supported by SDK, so you have to refer to NFC reader library which support Kinetis as well.