SPI slave mode selection And SPI send function does not work

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

SPI slave mode selection And SPI send function does not work

966 Views
15041539
Contributor I

Hello there! How can I set the PN7462 to work in HDLL mode, NATIVE mode or NCI mode during the use of PN7462 as SPI communication slave?
When I set PN7462 as SPI slave, use the following statement re = phhalHif_Transmit ((uint32_t *) & temp, 8, (pphhalHif_Callback_t) & phExPos_SPIHIFSPITxCallback); When the function sends data 0x10005105, MISO is always high. The return value of phhalHif_Transmit is 0, that is, re = 0.
But when I let the phhalHif_Transmit function execute cyclically, the code can be sent normally as follows

while (1) {
  re = phhalHif_Transmit ((uint32_t *) & temp, 8, (pphhalHif_Callback_t) & phExPos_SPIHIFSPITxCallback);
      }
May I ask why?

0 Kudos
1 Reply

881 Views
IvanRuiz
NXP Employee
NXP Employee

Hello,

A related question was already asked in following community thread, please help us to refer to it: https://community.nxp.com/message/1047051 

BR,

Ivan.

0 Kudos