When I build the bare-bones example, make a change and then rebuild target, the system rebuilds only the changed files and dependencies, (which is correct).
When I compile the empty peripheral template in exactly the same way, the compiler always rebuilds ALL files, not just the ones that have been changed.
I'm using Keil 5 on a fresh download of 5.0.2.1. All project options in both cases are identical as far as I can see.
Anybody know how to stop this behaviour?
Device:
嗨DrNick,抱歉延迟回复:我会甲型肝炎e one of the team take a look at this question. BR JE_Dialog
Hi DrNick1,
According to keil there are two options that may cause this:
1. Either the Create Batch File option is enabled (Options for Target, Output tab).
2. Check the Cross-Module Optimization option (in Options for Target, Target tab).
Can you please check, i am not able to reproduce your issue on my keil with template example (only with these options enabled).
Thanks MT_dialog
Neither of those are ticked sadly! Its a mystery
Hi DrNick1,
The source code is compiled conditionaly, if you just add code in a file then the compiler is only going to compile the file you 've changed. But if you change any defines or add profiles then the compiler will re-compile all the related files. So it depends what you are changing.
Thanks MT_dialog