Keil compilation speed is slow, how to solve ST-link burning speed?

Table of contents

Keil compilation speed is slow

method one

Method Two 

ST-link programming speed is slow


Keil compilation speed is slow

method one

As shown in the figure below, do not tick where the arrow points in the Options for Target setting, the compilation time will be reduced by more than half, but a lot of debugging information will be lost, which will cause great inconvenience to the Debug work. Check it again.

Method Two 

In the Options for Target setting, select the compiler to use the V6 compiler, the project will be compiled using the latest V6.xx supported by the current MDK, and the updated compiler will still be used after the MDK is updated in the future.

Compile again, and you can find that the compilation speed is greatly accelerated. Taking my project as an example, it can be accelerated from about 3 minutes by the default V5 compiler to less than 15 seconds, and the speed is increased by 10 times.

This is simply the difference between the 936 soldering iron and the T12 soldering iron, it is so fast that it will fly off.

Notice:

(1) Check "Use MicroLIB", otherwise the program will be stuck when the serial port is used.

(2) V5 compiles OK projects, V6 may fail to compile, even if it does, I don’t know if there will be inexplicable problems. It is recommended to use this method when starting a project from scratch.

ST-link programming speed is slow

As shown in the figure below, in the Options for Target setting, select Debug, click Settings, enter and change the clock to 4Mhz, and burn it again to find that the speed returns to the original faster speed.

Code words are not easy, I hope friends who like it don't forget to like + bookmark + follow , your affirmation is the driving force for my creation.

欢迎大家积极交流,本文未经允许谢绝转载!!!

Guess you like

Origin blog.csdn.net/weixin_62261692/article/details/130263412