cancel
Showing results for 
Search instead for 
Did you mean: 

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

Rtomy.1
Associate II

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.

2 REPLIES 2
S.Ma
Principal

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
Guru

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".