-
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
TFT_Espi and SD lib not compatible #3601
Comments
see #3464 : Replace #define SPI_PORT FSPI into #define SPI_PORT 2 in TFT_eSPI_ESP32_S3.h in the Processors folder |
in the user setup I have #define USE_HSPI_PORT so where must alter? Here ? this a will never reach
will I ? My problem is not repeatedly boot with Guru Meditation Error: Core 0 panic'ed (Store access fault). Exception was unhandled. |
// ESP32 specific SPI port selection
#ifdef USE_HSPI_PORT
#ifdef CONFIG_IDF_TARGET_ESP32
#define SPI_PORT HSPI //HSPI is port 2 on ESP32
#else
#define SPI_PORT 3 //HSPI is port 3 on ESP32 S2
#endif
#elif defined(USE_FSPI_PORT)
#define SPI_PORT 2 //FSPI(ESP32 S2)
#else
#ifdef CONFIG_IDF_TARGET_ESP32
#define SPI_PORT VSPI
#elif CONFIG_IDF_TARGET_ESP32S2
#define SPI_PORT 2 //FSPI(ESP32 S2)
#elif CONFIG_IDF_TARGET_ESP32S3
// #define SPI_PORT FSPI // original line replaced by next line : <<<<<<<<<<<<< replaced by
#define SPI_PORT 2 // <<<<<<<<<<<<<<<<<<<<
#endif
#endif
#ifdef RPI_DISPLAY_TYPE
#define CMD_BITS (16-1)
#else
#define CMD_BITS (8-1)
#endif
…________________________________
Van: tonbor ***@***.***>
Verzonden: zaterdag 4 januari 2025 18:21
Aan: Bodmer/TFT_eSPI ***@***.***>
CC: sjorsvr ***@***.***>; Comment ***@***.***>
Onderwerp: Re: [Bodmer/TFT_eSPI] TFT_Espi and SD lib not compatible (Issue #3601)
see #3464<#3464> : Replace #define SPI_PORT FSPI into #define SPI_PORT 2 in TFT_eSPI_ESP32_S3.h in the Processors folder in the tft_espi library. In windows you maybe also need to clear the folder c:\Users\username\AppData\Local\arduino\ : this clears the precompiled libraries then it works : I have a project with tft_espi library and sd library
in the user setup I have #define USE_HSPI_PORT so where must alter? Here ?
// ESP32 specific SPI port selection
#ifdef USE_HSPI_PORT
#ifdef CONFIG_IDF_TARGET_ESP32
#define SPI_PORT HSPI //HSPI is port 2 on ESP32
#else
this a will never reach
#elif CONFIG_IDF_TARGET_ESP32S3
#define SPI_PORT FSPI
will I ?
—
Reply to this email directly, view it on GitHub<#3601 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AYONATMXBH3KSMKEVOP2LL32JAKDLAVCNFSM6AAAAABUMMGPEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZRGM3DANZZGE>.
You are receiving this because you commented.Message ID: ***@***.***>
|
and this was the only change to get tft_espi working again with esp32 2.0.15 and higher |
I got TFT working with esp 32 3.0.6. But not TFT and SD together on the same SPI with only different CS pins |
did you clear the c:\Users\username\AppData\Local\arduino\ folder ?
…________________________________
Van: tonbor ***@***.***>
Verzonden: zaterdag 4 januari 2025 20:26
Aan: Bodmer/TFT_eSPI ***@***.***>
CC: sjorsvr ***@***.***>; Comment ***@***.***>
Onderwerp: Re: [Bodmer/TFT_eSPI] TFT_Espi and SD lib not compatible (Issue #3601)
and this was the only change to get tft_espi working again with esp32 2.0.15 and higher
I got TFT working with esp 32 3.0.6. But not TFT and SD together on the same SPI with only different CS pins
—
Reply to this email directly, view it on GitHub<#3601 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AYONATKL4SSUATOB4IVUGDL2JAYXFAVCNFSM6AAAAABUMMGPEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZRGM4DSOBRGM>.
You are receiving this because you commented.Message ID: ***@***.***>
|
I use following pins :
D display S sd card
1 D cs
7 D dc
10 S cs
11 D sda and S mosi
12 D clk and S clk
13 S miso
in arduino I use board esp32s3 Dev Module
and
this is in my user setup in the tft_espi library
....
#define TFT_CS 1
#define TFT_MOSI 11
#define TFT_MISO 13
#define TFT_SCLK 12
#define TFT_DC 7
//#define TFT_RST 10
#define TFT_RST -1
....
…________________________________
Van: tonbor ***@***.***>
Verzonden: zaterdag 4 januari 2025 20:26
Aan: Bodmer/TFT_eSPI ***@***.***>
CC: sjorsvr ***@***.***>; Comment ***@***.***>
Onderwerp: Re: [Bodmer/TFT_eSPI] TFT_Espi and SD lib not compatible (Issue #3601)
and this was the only change to get tft_espi working again with esp32 2.0.15 and higher
I got TFT working with esp 32 3.0.6. But not TFT and SD together on the same SPI with only different CS pins
—
Reply to this email directly, view it on GitHub<#3601 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AYONATKL4SSUATOB4IVUGDL2JAYXFAVCNFSM6AAAAABUMMGPEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZRGM4DSOBRGM>.
You are receiving this because you commented.
|
got tft working for weeks, that is not the problem |
I use following pins : and #define TFT_DC 7 |
did it work with esp32 2.0.14 ? |
yes, as I said within the issue
Op za 4 jan. 2025 20:42 schreef sjorsvr ***@***.***>:
… did it work with esp32 2.0.14 ?
—
Reply to this email directly, view it on GitHub
<#3601 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKD7IIXYOKZXOAJXG5LIYHD2JA2TDAVCNFSM6AAAAABUMMGPEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNZRGM4TGNZQGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
look into my change above , And I did NOT include in my user setup : |
Thanks, this is working, :-) #define USE_HSPI_PORT makes spi working SPI_PORT 3 your change makes spi working at SPI_PORT 2, Suppose sd is working at SPI_PORT 2 too. |
had to change the ino setup too: // Set all chip selects high to avoid bus contention during initialisation of each peripheral if (cardType == CARD_NONE) { |
Example https://github.com/Bodmer/TFT_eSPI/tree/master/examples/Generic/ESP32_SDcard_jpeg with SD not working with Esp32 S3 because TFT uses HSPI and SD lib not. So the SPI bus brakes when using both TFT and SD. Solution Platform esp32:[email protected] : https://forum.arduino.cc/t/esp32-initialize-hspi-as-default-spi/1155093/11
#define HSPI_SCK 12
#define HSPI_MISO 13
#define HSPI_MOSI 11
#define SD_CS 10
hspi = new SPIClass(HSPI);
hspi->begin(HSPI_SCK, HSPI_MISO, HSPI_MOSI, SD_CS);
Took me 2 days to find this out!!!!! Still with esp32:[email protected] and later not working 👎
The text was updated successfully, but these errors were encountered: