i am used cube mx to generate a initialized template code, frustrating just a template code can take about 5 minute to compile. Is there any reason why it is very slow. I have disabled my antivirus and such but still no avail.
Long time ago I used GNU gcc on slower machines just took about <1minute
Do you use STM32F7xx_DFP 2.9.0 ?
When I rebuild my project, it is very long when I selected STM32F7xx_DFP 2.9.0: ".\Objects\OpM-3_OU_HRN_1x.axf" - 0 Error(s), 0 Warning(s). Build Time Elapsed: 00:02:36
When I select STM32F7xx_DFP 2.8.0 and rebuild my project, the time is very different: ".\Objects\OpM-3_OU_HRN_1x.axf" - 0 Error(s), 0 Warning(s). Build Time Elapsed: 00:00:34
I open a case with Keil support and thisis their answer:
"Apparently, ST changed the header files that they include with their HAL code, the extra compile time comes from the preprocessor trying to digest their bloated header file every time. We can't do anything but request that ST change their header, before we make the next release."
I hope I can help you!
Maybe the PreCompiled Header (PCH) feature of the compiler would help to you: www.keil.com/.../armcc_chr1359124217278.htm
Georg