SPI communication on the PN7462 module.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

SPI communication on the PN7462 module.

1,061 次查看
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 项奖励
回复
3 回复数

1,034 次查看
tuannguyen-aiot
Contributor III

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

0 项奖励
回复

958 次查看
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 项奖励
回复

1,038 次查看
jimmychan
NXP TechSupport
NXP TechSupport

Please check the connection between the master and slave. 

0 项奖励
回复