using SPI1 and SPI2 Simultaneous for w5500 and ILI9341

Post here first, or if you can't find a relevant section!
User avatar
fpiSTM
Posts: 1762
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 92
Location: Le Mans
Contact:

Re: using SPI1 and SPI2 Simultaneous for w5500 and ILI9341

Post by fpiSTM »

Adafruit_ILI9341_STM is for roger core. Use official one from Adafruit
aryan.ir
Posts: 7
Joined: Wed Mar 23, 2022 3:05 pm

Re: using SPI1 and SPI2 Simultaneous for w5500 and ILI9341

Post 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.
User avatar
fpiSTM
Posts: 1762
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 92
Location: Le Mans
Contact:

Re: using SPI1 and SPI2 Simultaneous for w5500 and ILI9341

Post by fpiSTM »

Which problem?
aryan.ir
Posts: 7
Joined: Wed Mar 23, 2022 3:05 pm

Re: using SPI1 and SPI2 Simultaneous for w5500 and ILI9341

Post 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.
ABOSTM
Posts: 60
Joined: Wed Jan 08, 2020 8:40 am
Answers: 7

Re: using SPI1 and SPI2 Simultaneous for w5500 and ILI9341

Post 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?
khoih-prog
Posts: 102
Joined: Thu Feb 27, 2020 7:54 am
Location: Toronto

Re: using SPI1 and SPI2 Simultaneous for w5500 and ILI9341

Post by khoih-prog »

You can try to use EthernetSPI2 library for W5500 at SPI2 and ILI9341 at SPI1.
Post Reply

Return to “General discussion”