SPI communication on the PN7462 module.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SPI communication on the PN7462 module.

1,130件の閲覧回数
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,103件の閲覧回数
tuannguyen-aiot
Contributor III

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

0 件の賞賛
返信

1,027件の閲覧回数
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,107件の閲覧回数
jimmychan
NXP TechSupport
NXP TechSupport

Please check the connection between the master and slave. 

0 件の賞賛
返信