Hi all,
I am setting up my V2 2.3.7 Arduino IDE for use with the ESP32 (and ESP32-C3) and am trying to install the Espressif esp32 software under ‘Boards Manager’. Near the end of the installation, I get an error message as shown in the image. What is a ‘Context cancellation’?
Any ideas on how to proceed?
Thanks
Hi @Kerrow979. 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.
Thank you for your prompt and clear reply that worked a treat.
You are welcome. I'm glad it is working now.
Regards, Per