I just started to experiment with the Arduino_Core_STM32 2.10.1 after several years break and I find it still has the same problem that I stopped developing with ST controllers before, namely that the Verify/build process takes an excessively long time.
To just Verify/compile without upload a simple blink sketch in Arduino IDE 2.3.4 takes 16 minutes on the first attempt and repeating the process takes 3.5 minutes.
I also have Visual Micro version 2.2024.1211 on Visual Studio 2022 and a build without uploading the same blink sketch takes 5.5 minutes on the first attempt and then just repeating the process takes 60 seconds, still too long, this was with High speed parallel builds and deep search optimized.
I have tried disabling my antivirus to no avail and I don’t want to go over to Linux.
I have read lots of posts here but I don’t see a definitive answer, any suggestions please?
This could be my computer of course so any feedback would be appreciated.
My computer is
Windows 10 Home 64-bit
Intel Core i5 6600 @ 3.30GHz
8.00GB Single-Channel DDR4 @ 1064MHz
Storage
119GB SAMSUNG MZNLF128HCHP-00000 (SATA (SSD))
465GB Western Digital WDC WD5000AAKS-60WWPA0 (SATA )
232GB Samsung SSD 870 EVO 250GB (SATA (SSD))
I have all my programmes on C: which is the Samsung 232GB SSD and the Arduino folder on E: which is the 119GB Samsung.
Attached Zip of vebose from VisualMicro with timeline .
Slow Build again
Slow Build again
- Attachments
-
- ArduinoVerbose2.zip
- (57.27 KiB) Downloaded 34 times
Re: Slow Build again
It is not linked to the core but to Arduino IDE on windows.
On Linux or mac first build take less than a minutes.
On Linux or mac first build take less than a minutes.
Re: Slow Build again
try using CMake
https://github.com/stm32duino/Arduino_C ... esentation
viewtopic.php?t=2563
it may help.
that is especially true after an initial build. CMake and make recompile only changed files by checking the date modified.
so if you need to rebuild a project over and over, CMake helps
with CMake. you may be able to use STM32CubeIDE or Eclipse (I used eclipse).
But that, you can literally run the build from the command line without an IDE at all.
That's what I do, use an IDE for editing, run a command to build.
https://github.com/stm32duino/Arduino_C ... esentation
viewtopic.php?t=2563
it may help.
that is especially true after an initial build. CMake and make recompile only changed files by checking the date modified.
so if you need to rebuild a project over and over, CMake helps
with CMake. you may be able to use STM32CubeIDE or Eclipse (I used eclipse).
But that, you can literally run the build from the command line without an IDE at all.
That's what I do, use an IDE for editing, run a command to build.
Re: Slow Build again
There must something with your PC or windows setup.
I have bit faster PC (Ryzen 5 5500 with nvme SSD) and it takes about 30 seconds to do first compile and 7s to recompile.
I have bit faster PC (Ryzen 5 5500 with nvme SSD) and it takes about 30 seconds to do first compile and 7s to recompile.
Re: Slow Build again
Thanks Gonzog, I was wondering if my PC was causing this.GonzoG wrote: Mon Mar 17, 2025 11:39 am There must something with your PC or windows setup.
I have bit faster PC (Ryzen 5 5500 with nvme SSD) and it takes about 30 seconds to do first compile and 7s to recompile.
Do you get that speed with the Arduino IDE?
Re: Slow Build again
@Jimbo1326 yes. Latest version 2.3.4