Page 1 of 1

MSYS2 vs Ubuntu

Posted: Sat Mar 02, 2019 7:26 pm
by peterglen
I am developing for ESP32 on MSYS2. Works great. But recently, I switched to Ubuntu, running in virtual box. Works awesome. Compiles faster, flashes faster ... until I got a couple of V4 boards. The V2 boards I have got operate well in Ubuntu, but with the V4 boards, I cannot flash them. (timeout waiting for a packet) If I play with the reset / boot buttons it starts to flash (reluctantly) but then on reboot the board freezes. (looks like serial port freeze). Now everything operates correctly on MSYS2, why do the V4 boards do this in Ubuntu? Here is what I checked: fresh update; on both systems; esptool.py are binary identical. Please advise.

Re: MSYS2 vs Ubuntu

Posted: Sat Mar 02, 2019 9:45 pm
by mikemoy
I cannot answer your question, but I can offer a way to help MSYS2 compile faster for you, and odds are it will do so faster than running Ubuntu in a virtual box.

When you use Make, add -jx option. This will use more of your CPU cores to compile. For instance I have a 12 core PC. So I use make -j12.