I have a problem with very long compiler time (up to 10 min). I am using VSCode 1.45.1, Workbench Extension 1.12, Toolchain 1.52
Here is step by step what I am doing
• Creating a new project (No code at all only “setup and “loop”)
• Installing Toolchain 1.52
• Configure Boron Device
• First Run “COMPILING APPLICATION & DEVICE OS” about 10 min.
• Run “FLASH APPLICATION & DEVICE OS” about 1 min
• Next Run “COMPILING APPLICATION & DEVICE OS” about 2 min.
That’s how long it will take from Clean build of Device OS, especially on Windows. It’s usually much faster on Mac and Linux, and it has to do with how the compiler is launched.
However, there’s really no reason you should have to do a clean build of Device OS, except the first time you install a new version.
Unless you are using the source-level debugger or modifying Device OS itself, you usually don’t need to compile Device OS at all. Compiling just the user firmware should take significantly less time.
One option you might want to try is to try to turn off verbosity, it should make if faster.
In you are using Particle Workbench, this can be done by invoking the Makefile with