This is a demo of NFC device to read and write the contactless card.
Kinets K60 tower board and NXP PN512 board are used for this test enviroment.
SPI1_SIN : PTE1/SDHC0_D0
SPI1_SCK : PTE2/SDHC0_DCLK
SPI1_SOUT : PTE3/SDHC0_CMD
SPI1_PCS0 : PTE4/SDHC0_D3
Because the SPI1 port is used as the host interface of pn512, it is necessary to enable the SPI1 driver in the user configuration file of MQX.
To open the project file in the /build folder with CW10.5.
And the PSP and BSP libraries had to be built before test image is built, as they are needed in this test project.
The following diagram shows the serial numbers and block data of reading from the test card of Mifare one.