Page 1 of 1

[已解决]spi_master 通信报错

Posted: Thu Dec 16, 2021 1:08 am
by jr-test
对spi的的一些配置不太理解,看不懂这个错误什么意思:
E (3106) spi_master: check_trans_valid(706): trans tx_buffer should be NULL and SPI_TRANS_USE_TXDATA should be cleared to skip MOSI phase.

Re: spi_master 通信报错

Posted: Thu Dec 16, 2021 3:07 am
by ESP_ICY
检查一下程序里有没出现让 tx.length 为0的情况

Re: spi_master 通信报错

Posted: Thu Dec 16, 2021 7:43 am
by jr-test
ESP_ICY wrote:
Thu Dec 16, 2021 3:07 am
检查一下程序里有没出现让 tx.length 为0的情况
有!!!没有报错了。但是启动psram是报错:W (1017) rtcinit: calibration efuse version does not match, set default version: 0

还有一个问题,spi_master的三线和四线怎么去设置呀,四线是多一个回调操作dc吗,三线不用回调就行?

感谢解惑!!!非常感谢。