AnsweredAssumed Answered

SPI slave mode selection And SPI send function does not work

Question asked by wei zhang on Apr 26, 2020
Latest reply on Apr 27, 2020 by IvanRuiz

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?

Outcomes