Double your Arduino IDE Compiling Speed - ESP32, Arduino

preview_player
Показать описание
Are you fed up with slow compiling on Arduino IDE?

Knowing what to do to get your code compiled faster on Arduino IDE will pay dividends in the long run. And the more libraries you use, the more time you'll save. Its especially useful when compiling for ESP32 and the like with a much larger memory and codebase.

Code to enter:

In Windows terminal:
wsl --status
wsl --update

In ubuntu terminal:
sudo apt-get update && sudo apt-get upgrade –y



cd arduino-1.8.19/

./arduino

In windows terminal:

usbipd wsl list
usbipd wsl attach -b {busid} --auto-attach

In linux terminal
sudo apt install linux-tools-virtual hwdata
sudo update-alternatives --install /usr/local/bin/usbip usbip `ls /usr/lib/linux-tools/*/usbip | tail -n1` 20

lsusb
sudo chown {username} /dev/ttyUSB0

sudo apt-get update && sudo apt-get update

Some of my Lab Equipment and Tools

Test Equipment

Рекомендации по теме
Комментарии
Автор

Thanks for the last bit of convincing I needed :) for updating my arudinoIde ontomy wsl

valfeh
Автор

Nice video John, and not a bit of smoke in sight.
Now if only there was a method of getting me to code faster I might finish my latest project.
I could have done it in 5 or 6 minutes in Arduino, but wheres the fun in that! WiFi connecting with the ESP8266 is a lot more fun when you are doing it all low level.
Trying to connect as a station but full back to being an access point if it can't connect is proving to be quite fun, but that's where the learning is.

TheEmbeddedHobbyist
Автор

Thank you for WSL. Didn't know.


Your result is about 20 sec.

On Windows 10 on i7 gen3 with RAM 8Gb it takes 26 sec cashed compilation.

aboverobotics
Автор

I'm trying to make it work with version 2.1.0

isaacamante
Автор

The BIG question...WHY? Why is the ide under Windows 10 so slow? It shouldn't be a problem. Nobody seems to have the answer. Post another video when you find out why.

deanhedin
Автор

:~/arduino-1.8.19$ ./arduino
Picked up JAVA_TOOL_OPTIONS:
java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at
at
at

arduino not opening and got a message above. what to do?

neelimavungal
visit shbcf.ru