TFT_eSPI and Portenta H7

I just got the Portenta H7 and the DFR0669 display from DFRobot (uses ILI9488 driver chip). I want to use the TFT_eSPI library to control it so I can use some GUIs that I created on SquareLine Studio. Unfortunately, I have had absolutely no luck getting this to work. I'm pretty sure I've set it up correctly. The User_Setup.h file (attached) should have the correct ports and settings applied, and I've tried uploading some example sketches to verify it works. The IDE cant even complete the compilation as it give a lot of different errors such as ltoa not being declared in this scope and so on. The error log is quite long so I've uploaded a txt file of it instead of pasting it here. Attached is also the User_Setup.h file with the changes made to work with the H7's STM32 processor. One of the example files I used is shown below, although every one of them displayed the same errors.

/*
  Ellipse drawing example

  This sketch does not use any fonts.
*/

#include <SPI.h>

#include <TFT_eSPI.h> // Hardware-specific library

TFT_eSPI tft = TFT_eSPI();       // Invoke custom library


void setup(void) {
  tft.init();

  tft.setRotation(1);

}

void loop() {

  tft.fillScreen(TFT_BLACK);

  // Draw some random circles
  for (int i = 0; i < 40; i++)
  {
    int rx = random(60);
    int ry = random(60);
    int x = rx + random(480 - rx - rx);
    int y = ry + random(320 - ry - ry);
    tft.fillEllipse(x, y, rx, ry, random(0xFFFF));
  }

  delay(2000);
  tft.fillScreen(TFT_BLACK);

  for (int i = 0; i < 40; i++)
  {
    int rx = random(60);
    int ry = random(60);
    int x = rx + random(480 - rx - rx);
    int y = ry + random(320 - ry - ry);
    tft.drawEllipse(x, y, rx, ry, random(0xFFFF));
  }

  delay(2000);
}

Is there something I'm missing here, or is TFT_eSPI not compatible with the H7 and/or DFR0669 display? If that's the case, is there an arduino library that works with Squareline Studio Arduino output files?

TFT_eSPI issue.txt (64.3 KB)
User_Setup.h (18.0 KB)

Have you changed User_Setup_Select;h? That is the place where you comment/uncomment the right user_setup file.

I believe so; the #include <User_Setup.h> line is the only one uncommented as none of the other presets apply to my setup. I've attached the file just in case.
User_Setup_Select.h (15.8 KB)

I am using the following LCD board

3.5”480x320 TFT LCD Capacitive Touchscreen Breakout Wiki - DFRobot

I created a small board that interfaces the portenta breakout SPI header to a GDI DFRobot interface. This allows using the small flat cable to interface.

Works reasonably well. No one will accuse it of being super fast, but definitely better than I2C for LCD interface.

The touch screen works OK as well

What library are you using to drive the SPI to GDI interface? Is it still the TFT_eSPI library?

HI,

i have the same with 2.8 " did you use the TFT_eSPI library with the portenta breakout board ?

thx for an answer