Re: ESP32 compiling time is way too long!
Posted: Thu May 16, 2019 2:07 pm
I reinstalled ESP-IDF on a brand new laptop. Core i7 8th Gen, 32G RAM, SSD. Windows 10.
Didn't use Eclipse.
Followed every single step listed on this page:
https://docs.espressif.com/projects/esp ... t-started/
All the way to Step 8.
Excluded the whole C:\msys32 folder in windows defender.
And make -j8. Of course first time it compiled everything and did take a long time.
Then I did make -j8 again several times.
As we expected, it didn't compile anything.
But every time it take about 60 seconds to finish.
Does it take long time to "scan" through the files that have been compiled?
This is the output:
$ make -j8
Toolchain path: /opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
Toolchain version: crosstool-ng-1.22.0-80-g6c4433a5
Compiler version: 5.2.0
Python requirements from C:/msys32/home/Paul.Wang/esp/esp-idf/requirements.txt are satisfied.
Project is not inside a git repository, will not use 'git describe' to determine PROJECT_VER.
App "hello-world" version: 1
To flash all build output, run 'make flash' or:
python /home/Paul.Wang/esp/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 115200 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size detect 0x1000 /home/Paul.Wang/esp/hello_world/build/bootloader/bootloader.bin 0x10000 /home/Paul.Wang/esp/hello_world/build/hello-world.bin 0x8000 /home/Paul.Wang/esp/hello_world/build/partitions_singleapp.bin
Didn't use Eclipse.
Followed every single step listed on this page:
https://docs.espressif.com/projects/esp ... t-started/
All the way to Step 8.
Excluded the whole C:\msys32 folder in windows defender.
And make -j8. Of course first time it compiled everything and did take a long time.
Then I did make -j8 again several times.
As we expected, it didn't compile anything.
But every time it take about 60 seconds to finish.
Does it take long time to "scan" through the files that have been compiled?
This is the output:
$ make -j8
Toolchain path: /opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
Toolchain version: crosstool-ng-1.22.0-80-g6c4433a5
Compiler version: 5.2.0
Python requirements from C:/msys32/home/Paul.Wang/esp/esp-idf/requirements.txt are satisfied.
Project is not inside a git repository, will not use 'git describe' to determine PROJECT_VER.
App "hello-world" version: 1
To flash all build output, run 'make flash' or:
python /home/Paul.Wang/esp/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 115200 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size detect 0x1000 /home/Paul.Wang/esp/hello_world/build/bootloader/bootloader.bin 0x10000 /home/Paul.Wang/esp/hello_world/build/hello-world.bin 0x8000 /home/Paul.Wang/esp/hello_world/build/partitions_singleapp.bin