I am experiencing an issue with SPI communication on the PN7462 module.
Setup:
PN7462 is configured as SPI Master.
ESP32 is configured as SPI Slave.
The communication is not successful.
PN7462 SPI Communication Process:
phhalSPIM_Init(1000);
phhalSPIM_Configure(SPI_SLAVE_SELECT, SPI_MSB_FIRST, SPI_MODE, SPI_BAUDRATE, SPI_NSS_PULSE, SPI_NSS_POLARITY);
phhalSPIM_Transmit(SPI_SLAVE_SELECT, 0, 0, 0, sizeof(txData), txData, 0);
phhalSPIM_Receive(SPI_SLAVE_SELECT, 0, 0, sizeof(rxData), rxData, 0);
phhalSPIM_DeInit();
Do you have any suggestions on debugging this issue?
@jimmychan , Does that mean the program and pin configuration on the PN7462 are correct, right?
According to the API,
I don't know what is the value of your SlaveSelect. You should match it with your hardware connections.
Also, you may check the data pointer is really pointed to your data array in the Transmit function.
Please check the connection between the master and slave.