You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Bill
I have your Sfat2.22 on ESP32 DEV module on Arduino with special USER_SPI (GPIO_SPI_SCK, GPIO_SPI_MISO, GPIO_SPI_MOSI, GPIO_SPI_CS).
SD card access work fine as soon as I have only one SPI in use.
Now I need to add another User SPI (Gyro) like (GPIO_IMU_SCLK, GPIO_IMU_DOUT, GPIO_IMU_DIN, GPIO_IMU_CS).
Moreover this SPI need to be in SPI_Mode3.
I could not find a solution to use both at the same time. So far , I need to SPI2.end() before to get access to the SD Card in SPI1.
I tried to find a solution with also your Sdfat_Beta version, but don't know how to do that .
Do you have a suggestion please ?
The text was updated successfully, but these errors were encountered:
Hi Thanks
I found finally a solution . Maybe not the more beautiful one, but seems to work:
I used your SdFat_Beta instead of SdFat ,and changing priorly the SPI_DRIVER_SELECT = 2 in the SdFat/SdFatConfig.h , and after using the softSpiDriver like in your "SoftwareSpi"example.
I just had to be aware that I define well my GPIO_IMU_SCLK, GPIO_IMU_DOUT, GPIO_IMU_DIN, GPIO_IMU_CS, and GPIO_SPI_CS as const unint8_t , and not as static gpio_num_t , as I did for all the rest of my gpio configuration.
I can now avoid any SPI.end() on my User.SPI Gyro or any sd.end() on the USER.SPI SDfat and have both User.SPI are working together.
Hi Bill
I have your Sfat2.22 on ESP32 DEV module on Arduino with special USER_SPI (GPIO_SPI_SCK, GPIO_SPI_MISO, GPIO_SPI_MOSI, GPIO_SPI_CS).
SD card access work fine as soon as I have only one SPI in use.
Now I need to add another User SPI (Gyro) like (GPIO_IMU_SCLK, GPIO_IMU_DOUT, GPIO_IMU_DIN, GPIO_IMU_CS).
Moreover this SPI need to be in SPI_Mode3.
I could not find a solution to use both at the same time. So far , I need to SPI2.end() before to get access to the SD Card in SPI1.
I tried to find a solution with also your Sdfat_Beta version, but don't know how to do that .
Do you have a suggestion please ?
The text was updated successfully, but these errors were encountered: