Compiling error. Lilygo T-Display S3

I get this error when attemping to verify the sketch from:

cp: cannot stat '/home/pi/.arduino15/packages/esp32/hardware/esp32/2.0.5/tools/partitions/default.csv': No such file or directory

I have searched for default.csv but can not locate it.

Any and all help is appreciated.

My installation has it in the place you listed. Maybe you should re-install the ESP32 support, just to make sure nothing else is missing.

default.csv

# Name,   Type, SubType, Offset,  Size, Flags
nvs,      data, nvs,     0x9000,  0x5000,
otadata,  data, ota,     0xe000,  0x2000,
app0,     app,  ota_0,   0x10000, 0x140000,
app1,     app,  ota_1,   0x150000,0x140000,
spiffs,   data, spiffs,  0x290000,0x170000,

Thank you, that solved that problem. I tried uninstalling Arduino IDE, then reinstalling with Pi-Apps, but that didn't seem to make a difference. On to the next one...

Arduino: 1.8.19 (Linux), Board: "ESP32S3 Dev Module, Disabled, QIO 80MHz, 4MB (32Mb), Core 1, Core 1, Hardware CDC and JTAG, Disabled, Disabled, Disabled, UART0 / Hardware CDC, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi), 921600, None, Disabled"

glcdfont.c:8:31: error: expected '=', ',', ';', 'asm' or 'attribute' before 'PROGMEM'
static const unsigned font[] PROGMEM = {
^~~~~~~
TFT_eSPI_ESP32_S3.c:27:15: error: expected '=', ',', ';', 'asm' or 'attribute' before '&' token
SPIClass& spi = SPI;
^
TFT_eSPI_ESP32_S3.c:57:12: error: unknown type name 'uint32_t'
volatile uint32_t* _spi_cmd = (volatile uint32_t*)(SPI_CMD_REG(SPI_PORT));
^~~~~~~~
TFT_eSPI_ESP32_S3.c:57:49: error: unknown type name 'uint32_t'
volatile uint32_t* _spi_cmd = (volatile uint32_t*)(SPI_CMD_REG(SPI_PORT));
^~~~~~~~
TFT_eSPI_ESP32_S3.c:57:72: error: 'SPI_PORT' undeclared here (not in a function)
volatile uint32_t* _spi_cmd = (volatile uint32_t*)(SPI_CMD_REG(SPI_PORT));
^~~~~~~~
TFT_eSPI_ESP32_S3.c:58:12: error: unknown type name 'uint32_t'
volatile uint32_t* _spi_user = (volatile uint32_t*)(SPI_USER_REG(SPI_PORT));
^~~~~~~~
TFT_eSPI_ESP32_S3.c:58:49: error: unknown type name 'uint32_t'
volatile uint32_t* _spi_user = (volatile uint32_t*)(SPI_USER_REG(SPI_PORT));
^~~~~~~~
TFT_eSPI_ESP32_S3.c:60:12: error: unknown type name 'uint32_t'
volatile uint32_t* _spi_mosi_dlen = (volatile uint32_t*)(SPI_MOSI_DLEN_REG(SPI_PORT));
^~~~~~~~
TFT_eSPI_ESP32_S3.c:60:49: error: unknown type name 'uint32_t'
volatile uint32_t* _spi_mosi_dlen = (volatile uint32_t*)(SPI_MOSI_DLEN_REG(SPI_PORT));
^~~~~~~~
TFT_eSPI_ESP32_S3.c:61:12: error: unknown type name 'uint32_t'
volatile uint32_t* _spi_w = (volatile uint32_t*)(SPI_W0_REG(SPI_PORT));
^~~~~~~~
TFT_eSPI_ESP32_S3.c:61:49: error: unknown type name 'uint32_t'
volatile uint32_t* _spi_w = (volatile uint32_t*)(SPI_W0_REG(SPI_PORT));
^~~~~~~~
TFT_eSPI_ESP32_S3.c:102:1: error: unknown type name 'uint8_t'
uint8_t TFT_eSPI::readByte(void)
^~~~~~~
TFT_eSPI_ESP32_S3.c:102:17: error: expected '=', ',', ';', 'asm' or 'attribute' before ':' token
uint8_t TFT_eSPI::readByte(void)
^
TFT_eSPI_ESP32_S3.c:251:14: error: expected '=', ',', ';', 'asm' or 'attribute' before ':' token
void TFT_eSPI::pushBlock(uint16_t color, uint32_t len){
^
TFT_eSPI_ESP32_S3.c:298:14: error: expected '=', ',', ';', 'asm' or 'attribute' before ':' token
void TFT_eSPI::pushSwapBytePixels(const void* data_in, uint32_t len){
^
TFT_eSPI_ESP32_S3.c:387:14: error: expected '=', ',', ';', 'asm' or 'attribute' before ':' token
void TFT_eSPI::pushPixels(const void* data_in, uint32_t len){
^
TFT_eSPI_ESP32_C3.c:27:16: error: expected '=', ',', ';', 'asm' or 'attribute' before '&' token
SPIClass & spi = SPI;
^
TFT_eSPI_ESP32_C3.c:57:12: error: unknown type name 'uint32_t'
volatile uint32_t* _spi_cmd = (volatile uint32_t*)(SPI_CMD_REG(SPI_PORT));
^~~~~~~~
TFT_eSPI_ESP32_C3.c:57:49: error: unknown type name 'uint32_t'
volatile uint32_t* _spi_cmd = (volatile uint32_t*)(SPI_CMD_REG(SPI_PORT));
Multiple libraries were found for "WiFi.h"
^~~~~~~~
Used: /home/pi/.arduino15/packages/esp32/hardware/esp32/2.0.5/libraries/WiFi
Not used: /home/pi/.local/share/arduino-1.8.19/libraries/WiFi
TFT_eSPI_ESP32_C3.c:57:72: error: 'SPI_PORT' undeclared here (not in a function)
volatile uint32_t* _spi_cmd = (volatile uint32_t*)(SPI_CMD_REG(SPI_PORT));
^~~~~~~~
TFT_eSPI_ESP32_C3.c:58:12: error: unknown type name 'uint32_t'
volatile uint32_t* _spi_user = (volatile uint32_t*)(SPI_USER_REG(SPI_PORT));
^~~~~~~~
TFT_eSPI_ESP32_C3.c:58:49: error: unknown type name 'uint32_t'
volatile uint32_t* _spi_user = (volatile uint32_t*)(SPI_USER_REG(SPI_PORT));
^~~~~~~~
TFT_eSPI_ESP32_C3.c:60:12: error: unknown type name 'uint32_t'
volatile uint32_t* _spi_mosi_dlen = (volatile uint32_t*)(SPI_MOSI_DLEN_REG(SPI_PORT));
^~~~~~~~
TFT_eSPI_ESP32_C3.c:60:49: error: unknown type name 'uint32_t'
volatile uint32_t* _spi_mosi_dlen = (volatile uint32_t*)(SPI_MOSI_DLEN_REG(SPI_PORT));
^~~~~~~~
TFT_eSPI_ESP32_C3.c:61:12: error: unknown type name 'uint32_t'
volatile uint32_t* _spi_w = (volatile uint32_t*)(SPI_W0_REG(SPI_PORT));
^~~~~~~~
TFT_eSPI_ESP32_C3.c:61:49: error: unknown type name 'uint32_t'
volatile uint32_t* _spi_w = (volatile uint32_t*)(SPI_W0_REG(SPI_PORT));
^~~~~~~~
TFT_eSPI_ESP32_C3.c:102:1: error: unknown type name 'uint8_t'
uint8_t TFT_eSPI::readByte(void)
^~~~~~~
TFT_eSPI_ESP32_C3.c:102:17: error: expected '=', ',', ';', 'asm' or 'attribute' before ':' token
uint8_t TFT_eSPI::readByte(void)
^
TFT_eSPI_ESP32_C3.c:251:14: error: expected '=', ',', ';', 'asm' or 'attribute' before ':' token
void TFT_eSPI::pushBlock(uint16_t color, uint32_t len){
^
TFT_eSPI_ESP32_C3.c:298:14: error: expected '=', ',', ';', 'asm' or 'attribute' before ':' token
void TFT_eSPI::pushSwapBytePixels(const void* data_in, uint32_t len){
^
TFT_eSPI_ESP32_C3.c:387:14: error: expected '=', ',', ';', 'asm' or 'attribute' before ':' token
void TFT_eSPI::pushPixels(const void* data_in, uint32_t len){
^
exit status 1
expected '=', ',', ';', 'asm' or 'attribute' before 'PROGMEM'

Again, any and all help is greatly appreciated.

Thank you, that solved that problem. I tried uninstalling Arduino IDE, then reinstalling with Pi-Apps, but that didn't seem to make a difference. Now on to the next one... I couldn't get the carrots to line up but they are pointing at PROGMEM, &, uint32_t, and SPI_PORT

Arduino: 1.8.19 (Linux), Board: "ESP32S3 Dev Module, Disabled, QIO 80MHz, 4MB (32Mb), Core 1, Core 1, Hardware CDC and JTAG, Disabled, Disabled, Disabled, UART0 / Hardware CDC, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi), 921600, None, Disabled"

glcdfont.c:8:31: error: expected '=', ',', ';', 'asm' or 'attribute' before 'PROGMEM'
static const unsigned font[] PROGMEM = {
^~~~~~~
TFT_eSPI_ESP32_S3.c:27:15: error: expected '=', ',', ';', 'asm' or 'attribute' before '&' token
SPIClass& spi = SPI;
^
TFT_eSPI_ESP32_S3.c:57:12: error: unknown type name 'uint32_t'
volatile uint32_t* _spi_cmd = (volatile uint32_t*)(SPI_CMD_REG(SPI_PORT));
^~~~~~~~
TFT_eSPI_ESP32_S3.c:57:49: error: unknown type name 'uint32_t'
volatile uint32_t* _spi_cmd = (volatile uint32_t*)(SPI_CMD_REG(SPI_PORT));
^~~~~~~~
TFT_eSPI_ESP32_S3.c:57:72: error: 'SPI_PORT' undeclared here (not in a function)
volatile uint32_t* _spi_cmd = (volatile uint32_t*)(SPI_CMD_REG(SPI_PORT));
^~~~~~~~
TFT_eSPI_ESP32_S3.c:58:12: error: unknown type name 'uint32_t'
volatile uint32_t* _spi_user = (volatile uint32_t*)(SPI_USER_REG(SPI_PORT));
^~~~~~~~
TFT_eSPI_ESP32_S3.c:58:49: error: unknown type name 'uint32_t'
volatile uint32_t* _spi_user = (volatile uint32_t*)(SPI_USER_REG(SPI_PORT));
^~~~~~~~
TFT_eSPI_ESP32_S3.c:60:12: error: unknown type name 'uint32_t'
volatile uint32_t* _spi_mosi_dlen = (volatile uint32_t*)(SPI_MOSI_DLEN_REG(SPI_PORT));
^~~~~~~~
TFT_eSPI_ESP32_S3.c:60:49: error: unknown type name 'uint32_t'
volatile uint32_t* _spi_mosi_dlen = (volatile uint32_t*)(SPI_MOSI_DLEN_REG(SPI_PORT));
^~~~~~~~
TFT_eSPI_ESP32_S3.c:61:12: error: unknown type name 'uint32_t'
volatile uint32_t* _spi_w = (volatile uint32_t*)(SPI_W0_REG(SPI_PORT));
^~~~~~~~
TFT_eSPI_ESP32_S3.c:61:49: error: unknown type name 'uint32_t'
volatile uint32_t* _spi_w = (volatile uint32_t*)(SPI_W0_REG(SPI_PORT));
^~~~~~~~
TFT_eSPI_ESP32_S3.c:102:1: error: unknown type name 'uint8_t'
uint8_t TFT_eSPI::readByte(void)
^~~~~~~
TFT_eSPI_ESP32_S3.c:102:17: error: expected '=', ',', ';', 'asm' or 'attribute' before ':' token
uint8_t TFT_eSPI::readByte(void)
^
TFT_eSPI_ESP32_S3.c:251:14: error: expected '=', ',', ';', 'asm' or 'attribute' before ':' token
void TFT_eSPI::pushBlock(uint16_t color, uint32_t len){
^
TFT_eSPI_ESP32_S3.c:298:14: error: expected '=', ',', ';', 'asm' or 'attribute' before ':' token
void TFT_eSPI::pushSwapBytePixels(const void* data_in, uint32_t len){
^
TFT_eSPI_ESP32_S3.c:387:14: error: expected '=', ',', ';', 'asm' or 'attribute' before ':' token
void TFT_eSPI::pushPixels(const void* data_in, uint32_t len){
^
TFT_eSPI_ESP32_C3.c:27:16: error: expected '=', ',', ';', 'asm' or 'attribute' before '&' token
SPIClass & spi = SPI;
^
TFT_eSPI_ESP32_C3.c:57:12: error: unknown type name 'uint32_t'
volatile uint32_t* _spi_cmd = (volatile uint32_t*)(SPI_CMD_REG(SPI_PORT));
^~~~~~~~
TFT_eSPI_ESP32_C3.c:57:49: error: unknown type name 'uint32_t'
volatile uint32_t* _spi_cmd = (volatile uint32_t*)(SPI_CMD_REG(SPI_PORT));
Multiple libraries were found for "WiFi.h"
^~~~~~~~
Used: /home/pi/.arduino15/packages/esp32/hardware/esp32/2.0.5/libraries/WiFi
Not used: /home/pi/.local/share/arduino-1.8.19/libraries/WiFi
TFT_eSPI_ESP32_C3.c:57:72: error: 'SPI_PORT' undeclared here (not in a function)
volatile uint32_t* _spi_cmd = (volatile uint32_t*)(SPI_CMD_REG(SPI_PORT));
^~~~~~~~
TFT_eSPI_ESP32_C3.c:58:12: error: unknown type name 'uint32_t'
volatile uint32_t* _spi_user = (volatile uint32_t*)(SPI_USER_REG(SPI_PORT));
^~~~~~~~
TFT_eSPI_ESP32_C3.c:58:49: error: unknown type name 'uint32_t'
volatile uint32_t* _spi_user = (volatile uint32_t*)(SPI_USER_REG(SPI_PORT));
^~~~~~~~
TFT_eSPI_ESP32_C3.c:60:12: error: unknown type name 'uint32_t'
volatile uint32_t* _spi_mosi_dlen = (volatile uint32_t*)(SPI_MOSI_DLEN_REG(SPI_PORT));
^~~~~~~~
TFT_eSPI_ESP32_C3.c:60:49: error: unknown type name 'uint32_t'
volatile uint32_t* _spi_mosi_dlen = (volatile uint32_t*)(SPI_MOSI_DLEN_REG(SPI_PORT));
^~~~~~~~
TFT_eSPI_ESP32_C3.c:61:12: error: unknown type name 'uint32_t'
volatile uint32_t* _spi_w = (volatile uint32_t*)(SPI_W0_REG(SPI_PORT));
^~~~~~~~
TFT_eSPI_ESP32_C3.c:61:49: error: unknown type name 'uint32_t'
volatile uint32_t* _spi_w = (volatile uint32_t*)(SPI_W0_REG(SPI_PORT));
^~~~~~~~
TFT_eSPI_ESP32_C3.c:102:1: error: unknown type name 'uint8_t'
uint8_t TFT_eSPI::readByte(void)
^~~~~~~
TFT_eSPI_ESP32_C3.c:102:17: error: expected '=', ',', ';', 'asm' or 'attribute' before ':' token
uint8_t TFT_eSPI::readByte(void)
^
TFT_eSPI_ESP32_C3.c:251:14: error: expected '=', ',', ';', 'asm' or 'attribute' before ':' token
void TFT_eSPI::pushBlock(uint16_t color, uint32_t len){
^
TFT_eSPI_ESP32_C3.c:298:14: error: expected '=', ',', ';', 'asm' or 'attribute' before ':' token
void TFT_eSPI::pushSwapBytePixels(const void* data_in, uint32_t len){
^
TFT_eSPI_ESP32_C3.c:387:14: error: expected '=', ',', ';', 'asm' or 'attribute' before ':' token
void TFT_eSPI::pushPixels(const void* data_in, uint32_t len){
^
exit status 1
expected '=', ',', ';', 'asm' or 'attribute' before 'PROGMEM'

It looks like the #include that would #define PROGMEM is missing. On n ESP32 there would typically be a macro that defines 'PROGMEM' as an empty string.

This appears to be a case of trying to use a C++ object class ('SPIClass') in a C program. The C compiler knows nothing about object classes and can't use them. Whoever modified the library seems to have forgotten to change the file extension to `.cpp'.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.