ucglib icon indicating copy to clipboard operation
ucglib copied to clipboard

Conflict with SD card module?

Open jagganath69 opened this issue 6 years ago • 3 comments

My ST7735 works perfectly. So does my SD module. But when I use them together on my Mega2560, the display blanks out and the SD init() says error on initialization. (They share the usual MISO, CLK, etc. They have individual SS pins assigned)

When I pull the MISO pin 50 off one, the other works OK. Although I don't know if it's the CS line that has timing problems (I'm not much into hardware)

jagganath69 avatar Sep 16 '18 08:09 jagganath69

I have almost the same issue. But I use ESP32 MCU and ILI9341 display. SD requests work just fine, until I use the ucg.begin() function. After that, any SD request (including SD.begin, if I didn't call it earlier) freezes the board. That's not a hardware issue - Adafruit's ILI9341 library works as it should with the SD library.

portasynthinca3 avatar Jan 02 '19 18:01 portasynthinca3

I have the same problem using ESP32. Did anyone managed how to overcome it?

mateusz-kusmierz avatar Dec 02 '19 13:12 mateusz-kusmierz

There is a way to mitigate this issue, but I am facing a dilemma when it comes to TFT displays with SD card backplanes.

You could use a software SPI solution (faking a SPI bus using a library called SoftSPI), with it you can set up your OWN MOSI, MISO, CS and SCK pins without interrupting the actual hardware SPI bus. I had to do this because I use a ST7735 and 128x160 display combo with a SD backplane made by Adafruit, but I can't theoretically figure out how I would use Ucglib AND the Adafruit SPI SD card library at the same time...

OmerFlame avatar May 27 '20 10:05 OmerFlame