Skip to main content
Rtomy.1
Associate II
March 14, 2022
Question

SPI only gives 16 clock cycles, but my data is 64 bytes

  • March 14, 2022
  • 2 replies
  • 708 views

I am trying to communicate with a wifi module with stm32f769's spi interface. My data packet is 64 bytes, but the spi only provides 16 clock cycles, Hence the datapacket sent is invalid. Can anyone tell me what could be the possible solution for this.

This topic has been closed for replies.

2 replies

S.Ma
Principal
March 14, 2022

Start from a working spi example from the most similar nucleo board. You need to time slice the writing on spi DR register to give time to send the data serially. If you write all 64 bytes manually in one shot, there will be data loss. Without details, so will be the answers.

TDK
March 14, 2022

Probably a bug in your code. The solution would be to fix the bug. Maybe show the code you're using, we aren't psychic.

"If you feel a post has answered your question, please click ""Accept as Solution""."