Hi All,
I know this has been brought up numerous times before but there doesn’t seem to be a definitive answer.
Below is my config:
- Win10 (64Bit)
- VSCode 1.63.2
- PlatformIO Core 5.2.4, Home 3.4.0
- Python 3.10.2 (64Bit)
platformio.ini
;====================================================================
[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
upload_port = COM3
upload_speed = 921600
monitor_port = COM3
monitor_speed = 115200
lib_deps =
mcxiaoke/ESPDateTime@^0.2.0
mr-glt/SHA-1 Hash@^1.1.0
arduino-libraries/Arduino_JSON@^0.1.0
me-no-dev/ESP Async WebServer@^1.2.3
bblanchon/ArduinoJson@^6.18.0
ayushsharma82/WebSerial@^1.2.0
adafruit/Adafruit SSD1306@^2.4.6
adafruit/Adafruit BusIO@^1.9.3
adafruit/Adafruit GFX Library@^1.10.12
adafruit/RTClib@^1.14.1
; Set/override default options for each "[env:***]"
build_flags =
-D CURRENT_TIME=$UNIX_TIME
-D BUILD_ENV_NAME="$PIOENV"
-D PROJECT_DIR=$PIOHOME_DIR
-DCOMPILE_UNIX_TIME=$UNIX_TIME
; Below required for colored log_* information
-DCORE_DEBUG_LEVEL=5
-DCONFIG_ARDUHAL_LOG_COLORS=1
;-Werror=unused-variable ; https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
; PSRAM definitions and fixes
;-DBOARD_HAS_PSRAM
;-mfix-esp32-psram-cache-issue
;extra_scripts = pre:inject_path.py
monitor_flags = --raw
;board_build.partitions = default_8MB.csv
;====================================================================
With ALL workspace file edit windows closed, performing a build takes 138 seconds, at times up to 173 seconds.
All project files and library files are being rebuilt.
Archiving .pio\build\esp32dev\lib10d\libWebSerial.a
Compiling .pio\build\esp32dev\libb58\Adafruit GFX Library\Adafruit_GFX.cpp.o
Compiling .pio\build\esp32dev\libb58\Adafruit GFX Library\Adafruit_GrayOLED.cpp.o
Compiling .pio\build\esp32dev\libb58\Adafruit GFX Library\Adafruit_SPITFT.cpp.o
project.checksum remains unchanged
d8a41d17e7c3d97829c6e3c925738becb465d1e6
How do I stop it from performing a full rebuild all of the time?
On a side question:
I have seen other computers performing a background compile of saved project files. E.g. I change fred.cpp and fred.h, go back to editing main.cpp and in the background, it is compiling fred.*.
Is there a switch/option to turn this functionality ON?
Thanks,
Neil.