-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
USB_Host_Shield_Library_2.0 SPI issue in combination with TFT_eSPI #3151
Comments
|
And here is the SPI-connection of the USB_HostShield |
For easy reuse, I add the full sketch as a zip file... |
Output with using tft... /* -------------------- #define with_tft true ---------------------------- ... and now the loop is running without any serial output, because Acm.isReady() is responding with Zero.... |
Output without using tft.. |
I postet this issue even to the HostShield chat, without getting any help... |
Result of Read_User_Setup() [code] MOSI = GPIO 13 Font GLCD loaded Display SPI frequency = 55.00 |
The problem is that both libraries use the SPI port. and maybe the host shield library uses interrupts. The only way around this is to use separate SPI ports for the display and host board. |
Thank you for your answer. In my case the host shield and the tft are just using different SPI ports pins (VSPI_pins for the TFT_eSPI and HSPI-pins for the host shield). But you are right, I have not defined to use the HSPI-port. Its still set to VSPI-port. I will try to change and report the result. |
Hi Bodmer, just uncommenting the <#define USE_HSPI_PORT> in my user_setup.h solved the problem. Many thanks for your help. |
Hardware: esp32 dev kit
Compiler: Arduino IDE 2.2.1
TFT_eSPI Version: 2.5.34
TFT Display: ILI9488
Host Shield Lib 2.0: Version 1.6.2
Overview of the problem:
The acm_terminal example doesn't run together with the TFT_eSPI library. Each of them is running without any problems, but together the acm_terminal responds to Acm.isReady() with Zero.
In detail:
If added some software lines to the acm_terminal example, to test the HostShield-Lib running together with the TFT_eSPI-Lib. Goal is to program a smart USB-terminal to observe the output of all of my esp32 applications without using my laptop. I only want to display the serial datastream, no inputs, no further controls as inputs.
With the switch <with_tft = true> I can initialize the TFT and can draw some retangles on the TFT. Thats running perfect, but I can't receive serial data from the USB interface.
If I switch the init/drawing of the TFT off <with_tft = false> I can receive my serial test data from the USB interface without any problem.
Info:
The serial buffer to realize the scrolling on the TFT is not part of this test setup.
The TFT ist using the HSPI (CS=GPIO15 and the HostShield SPI-chipselect is using VSPI (CS = GPIO5) on my esp32 testboard.
To get a endless serial stream of characters, another esp32 is producing incrementing textlines. You can see them at the end of the serial output.
What might be the problem? I am really helpless.
The text was updated successfully, but these errors were encountered: