Afternoon all,
I'm trying to connect 2 PICO-D4 packages via an SPI bus, with one as the master and one as the slave.
The connections run from the HSPI IOMUX pins on the master to the VSPI IOMUX pins on the slave. All pins (including WP/HD) are connected as required.
In half-duplex single-line transfer at 20Mhz clock, everything works perfectly, but I'd like a little more bandwidth, so I'm trying to move to DIO or QIO.
I can currently transfer ~40kbytes (324,000 bits) in approx 16ms, as measured empirically on the master, which makes sense (324,000 / 20,000,000 = 0.0162 seconds)
If I add the SPICOMMON_BUSFLAG_DUAL or SPICOMMON_BUSFLAG_QUAD flags to the bus setup on the master, and SPI_TRANS_MODE_DIO or SPI_TRANS_MODE_QIO to the transaction flags, the transmission time drops as I would expect. However, the slave is clearly not receiving the data correctly.
I've added the same bus flags to the SPI Slave bus configuration, but it doesn't seem to matter.
I haven't found any code samples or references to anyone making this work properly.
Reading though the docs, it seems that the ESP32 core may not support quad-spi as a slave, although other chip variants (including the ESP32-S3) do... Does the ESP32 core just not support what I'm trying to achieve here?
I've checked the TRM and it doesn't seem to explicitly say it's supported or not.
For what it's worth, if this is just a driver issues, I'm comfortable messing with control registers directly, etc.
Thanks
ESP32-PICO-D4 Quad-SPI as Slave - Possible?
-
MikeNaylor
- Posts: 3
- Joined: Mon Nov 11, 2024 10:30 pm
Jump to
- English Forum
- Explore
- News
- General Discussion
- FAQ
- Documentation
- Documentation
- Sample Code
- Discussion Forum
- ESP32-S31
- Hardware
- ESP-IDF
- ESP-BOX
- ESP-ADF
- ESP-MDF
- ESP-WHO
- ESP-SkaiNet
- ESP32 Arduino
- IDEs for ESP-IDF
- ESP-AT
- ESP IoT Solution
- ESP RainMaker
- Rust
- ESP8266
- Report Bugs
- Showcase
- Chinese Forum 中文社区
- 活动区
- 乐鑫活动专区
- 讨论区
- ESP32-S31 中文讨论版
- 喵伴 中文讨论版
- ESP-IDF 中文讨论版
- 《ESP32-C3 物联网工程开发实战》书籍讨论版
- 中文文档讨论版
- ESP-AT 中文讨论版
- ESP-BOX 中文讨论版
- ESP IoT Solution 中文讨论版
- ESP-ADF 中文讨论版
- ESP Mesh 中文讨论版
- ESP Cloud 中文讨论版
- ESP-WHO 中文讨论版
- ESP-SkaiNet 中文讨论版
- ESP 生产支持讨论版
- 硬件问题讨论
- 项目展示
Who is online
Users browsing this forum: Qwantbot and 3 guests
- All times are UTC
- Top
- Delete cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. ESP8266EX and ESP32 are some of our products.
Information
Espressif ESP32 ... Available now!