I’m working on a personal project based on Arduino M0. I’m using a SD card and a TFT display (ILI9341).
They both work with SPI and it seems that there is some incompatibility when they are both on the same bus.
I give many try but can’t figure this out.
The other solution which could be nice is to setup an available SERCOM to get another hardware SPI.
I already use secondary serial (on SERCOM5), everything went fine but SPI on SERCOM2 is driving me crazy.
There are, as you probably know, some very good articles (like this one : SERCOM Adafruit) but nothing at all even after spending hours and hours double checking everything.
I try with the 2 components individually as they both can handle another SPI hardware but none of them work alone on SERCOM2.
With default SPI, my 2 examples sketchs work fine.
Does someone know what could be the culprit ?
Attached, the 2 projects I’m using to test.
No way to use software SPI
graphicstest.ino (1.35 KB)
wipe.ino (675 Bytes)