Can I build the modified source file only

6 posts / 0 new
Last post
jamesleo-konka
Offline
Last seen:4 years 16 hours ago
加入:2017-01-22 02:42
Can I build the modified source file only

Hi Dialog,
Can I compile the modified source file only in Smartsnipptes?
Although a bit modification on the source file, the building tools will do the whole building ( compile every source file, even if they are not modified).
Every time it takes a few minutes to do the building -- it's a long time.

Is there an option to simplify the compiling/building work?

Thanks

Device:
MT_dialog
Offline
Last seen:1 month 3 weeks ago
工作人员
加入:2015-06-08 11:34
Hi jamesleo-konka,

Hi jamesleo-konka,

The only way to build the project is via Smart Snippets, unfortunatelly you wont be able to avoid the building time, if you make changes to a .h file that its been included in many files, those files need to be recompiled each time you change the that .h file.

Thanks MT_dialog

jamesleo-konka
Offline
Last seen:4 years 16 hours ago
加入:2017-01-22 02:42
Hi, MT_Dialog,

Hi, MT_Dialog,
It's clear that h files are 'common' to many c files. If changed, all the relative c files should be built again.
In Keil MDK, only the new c file is compiled, so IDE takes less time to build the project.
Hope that SmartSnippets can identify the new(modified) c file and compile the new one only.

Thanks

MT_dialog
Offline
Last seen:1 month 3 weeks ago
工作人员
加入:2015-06-08 11:34
Hi Jamesleo-konka,

Hi Jamesleo-konka,

In the Smart Snippets tool if you just change a .c file the tool wont compile the whole project, but only the .c file that you have applied the changes.

Thanks MT_dialog

jamesleo-konka
Offline
Last seen:4 years 16 hours ago
加入:2017-01-22 02:42
Hi MT_dialog,

Hi MT_dialog,
The Smartsnippets is not stable:
When I tried to download to DA14681 by external command 'program_qspi_jtag_win' , Smartsnippets built the project first ! ( I've built project before downloading)

Thanks

MT_dialog
Offline
Last seen:1 month 3 weeks ago
工作人员
加入:2015-06-08 11:34
Hi jamesleo-konka,

Hi jamesleo-konka,

I am not able to replicate what you report, if you have allready build your project and hit the program_qspi_jtag_win file then the Studio will just download the binary, unless you have enabled the corresponding configuration that builds the project before running the corresponding script. Please go to the "Run as" option (the one that you use in order to program/erase etc the qspi) hit the arrow and choose the "External Tools Conifgurations" select the script that you would like to change and then select the "build" tab. If Smart Snippets builds the specified project before launching the qspi_program_jtag_win then the "Build before launch" option should be marked, so remove that option and the scipt will run without building your project.

Thanks MT_dialog