Go Down

Topic: Avoid unnecessary compiling (Read 1 time) previous topic - next topic


Apr 22, 2017, 09:57 am Last Edit: Apr 22, 2017, 09:57 am by avandalen
I often have to upload the same sketch several times, for example when:
1. Programming chips in production
2. Uploading via the native port, this often fails, and then needs to be done again.
However, the IDE always compiles again and this is superfluous, it takes too much time.

So it would be nice if a compiled sketch will not be compiled again if it is unchanged.


"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.
I speak for myself, not Arduino.


Apr 22, 2017, 02:45 pm Last Edit: Apr 22, 2017, 02:48 pm by Ballscrewbob
The new IDE has already taken the compiling to a new level with a feature borrowed from the CREATE editor.

BTW tests on compile speed tend to favour the CREATE editor due to the fact that most of the work is done OUTSIDE your computers environment and unrestricted by your system.

If you are using the latest IDE just go to FILE and select PREFERENCES.

You will see an option called "Aggressively cache compiled core"
Enable that as it saves a lot of duplication in the compile process.

I certainly would not use the regular IDE for production runs of boards as there are far better tools out there for that aspect.

ALso ensure you antivirus / anti malware programs have the IDE components and locations WHITELISTED / EXCLUDED and you will also see an increase in compile speeds in order of magnitude.

You have over 124 posts but did not really provide much detail so that is the best I can give you otherwise I would simply have to guess and say you put the blue paint on backwards ;)

It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.


If you're doing production runs then just save the hex file and load it directly with AVRDude.
|| | ||| | || | ||  ~Woodstock


Or use a standalone tool like my programmer, put the hex file on SD card and just blast it onto your production cards
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

Go Up