ive spent the past 3 days trying every possible solution i can think of to install the esp32 core but it keeps failing, everytime i try to download it normally i get this message
Downloading packages
esp32:esp-x32@2511
Failed to install platform: 'esp32:esp32:3.3.6'.
Error: 4 DEADLINE_EXCEEDED: net/http: request canceled (Client.Timeout or context cancellation while reading body)
somebody please help as soon as possible
ive tried: redownloading the ide, downloading the core manually, getting my friend to dowload it and send the file, downloading the core manually a second time, redownloading the ide a second time and deleting the arduino15 file beforehand, getting i friend to download and send a different version of the core
nothing had a result, and if it installs it gives compiling errors
Hi @yahya_abdelrazek. The installation of the "esp32" boards platform failed due to timeout occurred during the download.
The duration of the timeout that causes Arduino IDE to cancel a download is configurable. You should be able to work around this problem by configuring a higher timeout value. I'll provide instructions you can follow to do that:
Select File > Quit from the Arduino IDE menus if it is running.
All Arduino IDE windows will close.
Open the file at the following path in any text editor:
If you are using Linux:
/home/<username>/.arduinoIDE/arduino-cli.yaml
(where <username> is your Linux username)
The .arduinoIDE folder may be hidden by default in your file manager and terminal.
If you are using macOS:
/Users/<username>/.arduinoIDE/arduino-cli.yaml
(where <username> is your macOS username)
The .arduinoIDE folder is hidden by default. You can make it visible by pressing the Command+Shift+. keyboard shortcut.
If you are using Windows:
C:\Users\<username>\.arduinoIDE\arduino-cli.yaml
(where <username> is your Windows username)
Add the following content to the arduino-cli.yaml file (or replace the existing content if equivalent content is already present in the file):
network:
connection_timeout: 12000s
ⓘ I arbitrarily chose a timeout value of 12000 seconds. You can adjust this as needed.
Save the file.
Start Arduino IDE.
Now try installing/updating the "esp32" boards platform again, just the same as you did before. Hopefully this time it will be successful.