SPI communication on the PN7462 module.

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

SPI communication on the PN7462 module.

546 Views
tuannguyen-aiot
Contributor III

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?

0 Kudos
Reply
3 Replies

519 Views
tuannguyen-aiot
Contributor III

@jimmychan , Does that mean the program and pin configuration on the PN7462 are correct, right?

0 Kudos
Reply

443 Views
jimmychan
NXP TechSupport
NXP TechSupport

According to the API, 

 * @Param[in] bSlaveSelect Slave select, if false, slave 0 is selected, if true, slave 1 is selected.(value is either ZERO or ONE)

 

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.

 

0 Kudos
Reply

523 Views
jimmychan
NXP TechSupport
NXP TechSupport

Please check the connection between the master and slave. 

0 Kudos
Reply