Page 2 of 2

Re: using SPI1 and SPI2 Simultaneous for w5500 and ILI9341

Posted: Sat Mar 26, 2022 8:12 am
by fpiSTM
Adafruit_ILI9341_STM is for roger core. Use official one from Adafruit

Re: using SPI1 and SPI2 Simultaneous for w5500 and ILI9341

Posted: Mon Mar 28, 2022 4:05 pm
by aryan.ir
there is also a problem with official libraries and official kernel, and it is not possible to use both at the same time. Try it yourself if possible.

Re: using SPI1 and SPI2 Simultaneous for w5500 and ILI9341

Posted: Mon Mar 28, 2022 6:33 pm
by fpiSTM
Which problem?

Re: using SPI1 and SPI2 Simultaneous for w5500 and ILI9341

Posted: Tue Mar 29, 2022 4:04 am
by aryan.ir
ILI9341 is connected to SPI2 on the PCB board. With the official core, only the library "Adafruit_ILI9341_STM.h" was able to work with SPI2 and "Adafruit_ILI9341.h" can't work with SPI2. if you can use ILI9341 or W5500 with SPI2 ،Thank you very much to give an example.

Re: using SPI1 and SPI2 Simultaneous for w5500 and ILI9341

Posted: Tue Mar 29, 2022 1:33 pm
by ABOSTM
@aryan.ir For sure official core is able to work with 2 SPI instances in parallel.
And I am surprised that you cannot use SPI2 with "Adafruit_ILI9341.h"
Can you share the corresponding sketch?

Re: using SPI1 and SPI2 Simultaneous for w5500 and ILI9341

Posted: Wed Mar 30, 2022 7:09 pm
by khoih-prog
You can try to use EthernetSPI2 library for W5500 at SPI2 and ILI9341 at SPI1.