esp-idf icon indicating copy to clipboard operation
esp-idf copied to clipboard

spi sends multiple single-byte intervals too long (IDFGH-12773)

Open shuiyihang opened this issue 1 year ago • 2 comments

Answers checklist.

  • [X] I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • [X] I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • [X] I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

I need to send multiple bytes cyclically using esp32 s3 spi, I found that even if I don't add a delay, the data interval between each sent byte is very long (15us), I've tried to set the cpu frequency to 240M, is there any way I can regulate this interval, please give me a little guidance, thanks! 我需要使用esp32 s3的spi循环发送多个字节,我发现即使我没有添加延时,每个发送字节之间的数据间隔也很长(15us),我已经尝试把cpu频率设置为240M,有什么办法可以调节这个时间间隔吗,请给我一点指导,谢谢。

image

image

shuiyihang avatar May 06 '24 14:05 shuiyihang

Queue the bytes before committing the transaction. Change .length = 8 to .length = 32 and see what happens.

KaeLL avatar May 06 '24 19:05 KaeLL

Queue the bytes before committing the transaction. Change .length = 8 to .length = 32 and see what happens.

thanks for your reply,things don't seem to be better. image image

shuiyihang avatar May 07 '24 00:05 shuiyihang