How to remove Arduino IDE comletely! from my PC

Hello good morning everybody.
Right to the point: What can I do if compiling exactly the same sketch on two different PC´s do not lead to the same result ?
I have one desktop PC with windows 11 and one Laptop also windows 11 both installed with IDE 1.8.19. I wrote a very short sketch which uses a 2.4" ILI9341 TFT display.

// TFT SPI display test with Adafruit and TFT_eSPI libraries 
// processor XIAO ESP32-C mini

#include "SPI.h"
#include "Adafruit_GFX.h"
#include "Adafruit_ILI9341.h"
#include "TFT_eSPI.h"

#define TFT_DC D3
#define TFT_CS D7
#define TFT_MOSI D10
#define TFT_CLK D8
#define TFT_RST D2
#define TFT_MISO -1

// Use hardware SPI
//Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_RST);
TFT_eSPI tft = TFT_eSPI();

void setup() {

  tft.begin();
  tft.fillScreen(TFT_MAGENTA);
}

void loop(void)
{
	tft.setTextColor(TFT_YELLOW);
	tft.setTextSize(2);
	tft.setCursor(10, 80);
	tft.print(F("MINIMUM TEST"));
	tft.setCursor(10, 120);
	tft.print(F("Galactico"));

	delay(3000);

    tft.setTextColor(TFT_WHITE);
		tft.fillScreen(TFT_RED);
    tft.setCursor(30,30);
    tft.println("RED SCREEN");
    delay(1000);
		tft.fillScreen(TFT_GREEN);
    tft.setCursor(30,30);
    tft.println("GREEN SCREEN");
    delay(1000);
		tft.fillScreen(TFT_BLUE);
    tft.setCursor(30,30);
    tft.println("BLUE SCREEN");
    delay(1000);
		tft.fillScreen(TFT_BLACK);
    delay(1000);
    
  tft.setCursor(10, 10);
  tft.setTextColor(TFT_WHITE,TFT_BLACK);  tft.setTextSize(1);
  tft.println(F("Hello World!"));
  tft.setCursor(10, 30);
  tft.setTextSize(2);
  tft.setTextColor(tft.color565(0xff, 0x00, 0x00));
  tft.print(F("RED "));
  tft.setTextColor(tft.color565(0x00, 0xff, 0x00));
  tft.print(F("GREEN "));
  tft.setTextColor(tft.color565(0x00, 0x00, 0xff));
  tft.println(F("BLUE"));

  delay(3000);
}

the User_Setup.h file is this one on both PC´s:

// See SetupX_Template.h for all options available
#define USER_SETUP_ID 1

#define ILI9341_DRIVER

#define TFT_MOSI   D10  // MOSI Data Pin
#define TFT_MISO   D9  //  MISO Data Pin
#define TFT_SCLK   D8  // Clock Pin

#define TFT_CS   D7  // Chip select control pin D7
#define TFT_DC   D3  // Data Command control pin
#define TFT_RST  D2  // Reset pin (could connect to NodeMCU RST, see next line)
//#define TFT_RST  -1    // Set TFT_RST to -1 if the display RESET is connected to NodeMCU RST or 3.3V


#define LOAD_GLCD   // Font 1. Original Adafruit 8 pixel font needs ~1820 bytes in FLASH
#define LOAD_FONT2  // Font 2. Small 16 pixel high font, needs ~3534 bytes in FLASH, 96 characters
#define LOAD_FONT4  // Font 4. Medium 26 pixel high font, needs ~5848 bytes in FLASH, 96 characters
#define LOAD_FONT6  // Font 6. Large 48 pixel font, needs ~2666 bytes in FLASH, only characters 1234567890:-.apm
#define LOAD_FONT7  // Font 7. 7 segment 48 pixel font, needs ~2438 bytes in FLASH, only characters 1234567890:.
#define LOAD_FONT8  // Font 8. Large 75 pixel font needs ~3256 bytes in FLASH, only characters 1234567890:-.
#define LOAD_GFXFF  // FreeFonts. Include access to the 48 Adafruit_GFX free fonts FF1 to FF48 and custom fonts


#define SMOOTH_FONT


// #define SPI_FREQUENCY  27000000
#define SPI_FREQUENCY  40000000
// #define SPI_FREQUENCY  80000000

#define SPI_READ_FREQUENCY  20000000

#define SPI_TOUCH_FREQUENCY  2500000


// #define SUPPORT_TRANSACTIONS

I spent the whole weekend to investigate why the TFT_eSPI library works on my PC but not on my laptop. The Adafruit is OK on both.
I tried to reinstall the TFT_eSPI library on the laptop, no success.
I tried to reinstall the whole IDE on my laptop, no success.
The strangest thing is that after uninstall the IDE and reinstall it again some previosly installed libraries (not only the standard libraries) including the TFT_eSPI remain on the system exactly as before. I know this because all the changes on the User_Setup.h files are still there. The folder of the libraries is like it should be on C:\Users\Super\OneDrive\Documents\Arduino

My question is: What exactly is the file- and registry structure of this Arduino IDE and how can I remove it COMPLETELY from my laptop in order to install a new clean version of the IDE 1.8.19 ?
thanks for your help.

As you found the sketches and libraries are separate from the IDE. If you want to delete a library you need to delete it from the library folder.

...but this is obviously not enough. Something must be left on the PC. If, the other way around, I just move a library folder into the .../libraries direction the compiler does not like it and gives a lot of errors fore missing files. I guess that in the registry there are some pointers or other components

I have no idea what strange things Windows might do - I never use it. Works fine on Linux. Sorry

1 Like

You may want to look at installing the portable version of IDE 1.8.19

That way you assure that everything is kept in one directory tree. I have 27 different portable installations of the V1 IDE on my PC even dating back to version 1.0.5-r2. They all run totally independent from each other.
All with their own tweaks and tunes, usually targeted to a specific MCU.

Do you have auto-update enabled on both? If you do, they should both be the same. If not the same, post the code plus the verbose verify output from BOTH machines.

may be a good idea but my question is how to remove everything related to the Arduino IDE from my laptop

On A Mac, it's just one directory to remove the IDE then 1 or 2 hidden small directories depending on if you work in the cloud. With windows using the built in uninstaller is usually all you need.
No idea re *nix, I haven't been able to install it yet.

the windows uninstaller obviously leaves some garbadge on the PC, that´s why I ask, what is the whole system structure of the IDE to remove everything without removing too much

I don't use Windows very often, so I don't know. If you want help from the forum, show us the code and the results of a verbose verify, and maybe someone will have an explanation.
I would make a decent wager that the removal of Arduino15 will remove the hardware and library parts.

Do you have the same version of the Arduino core for the ESP32 on both computer ?

Board packages are installed in C:\Users\yourUsername\AppData\Local\Arduino15 with the exception of the original AVR board package that is located somewhere in the installation directory of IDE 1.x.

3rd party libraries are in teh schetchbook directory.

Hello again all together, after 3 days deep troubleshooting I finally found the issue of the not working TFT_eSPI library. Maybe it is of common interest and worth to confirm by somebody else:
The issue appears on different used versions of the ESP32 board package. At least on my computers the situation is that my PC still keeps esp32 board package V2.0.9 and the TFT_eSPI library works on all different boards including C3-supermini boards. My Laptop has the esp32 board package V3.2.1 installed and fails to work with TFT_eSPI library on any ESP32-C3 supermini board.
Would be interresting if somebody could confirm this strange behaviour.

Hi @galacticobmg.

I haven't personally confirmed it, but multiple people have reported the problem of programs using the "TFT_eSPI" library crashing when used with modern versions of the "esp32" boards platform to the developer:

https://github.com/Bodmer/TFT_eSPI/issues/3284

https://github.com/Bodmer/TFT_eSPI/issues/3289

https://github.com/Bodmer/TFT_eSPI/issues/3304

https://github.com/Bodmer/TFT_eSPI/issues/3329

https://github.com/Bodmer/TFT_eSPI/issues/3332

https://github.com/Bodmer/TFT_eSPI/issues/3429

https://github.com/Bodmer/TFT_eSPI/issues/3464

https://github.com/Bodmer/TFT_eSPI/issues/3648

https://github.com/Bodmer/TFT_eSPI/issues/3670

https://github.com/Bodmer/TFT_eSPI/issues/3737

https://github.com/Bodmer/TFT_eSPI/issues/3743

https://github.com/espressif/arduino-esp32/issues/9618

And on the forum:

You might find a solution for using the library with the latest version of the "esp32" boards platform if you look though some of those.

@ptillisch thanks a lot for this interesting input. I went thru almost every post on this long list and got these final conclusions:
1.) TFT_eSPI works on board platforms prior to version 2.0.15 , my working version is 2.0.9 and my not working version is 3.1.2: -> item confirmed.
2.) The issue appears basicly on esp32-C3/S3 boards, for my case ESP32-C3 boards: -> issue confirmed.
3.) Experts on HW C and C++ high level programming keep deeply investigating the real origin of this issue. For my sense I appreciate the great effort of these experts but me as an ignorant user I actually don't care a lot as long as I find any version of the platform which make my electronic components working well together. Now somebody can tell me to prefer using latest versions of SW on userlevel projects but I for myself am happy to see nice graphic, colors and fonts on my TFT display by just using what real experts provide for free on the internet and finally don't care about release numbers. I am endless greatful for this fanatic effort of highly experienced people to publish the OS of hightech HW for free on the web and I am also deeply greatful for the help I can find on this and other forums where people on lowest to highest knowledge level come together to discuss very personalized issues.
So let me say many thousand thanks to everybody who shares this place in an active or passive way. I think making Arduino better is not the purpose but using Arduino better yes it is. :wink::slightly_smiling_face:

1 Like

I had the same problem with ESP32 WROOM and is now using platform 2.0.11.

Hello galactiqueobmg ,
I assume this has nothing to do with your problem, but just in case, I couldn't get my ESP32-2424S012 module to work with an ESP32-C3-MINI-1U microcontroller.
I found the solution: I had to manually enter "#define USE_VSPI_PORT" in my TFT_eSPI library's configuration file.
I also used version 2.0.14 of the Espressif Systems ESP32 Board Manager, as version 3.2.0 doesn't work with this module.
If this helps, happy searching! :+1: