CW10.2 very slow to build

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CW10.2 very slow to build

941 Views
MJWeston
Contributor III

Hi,

 

I am working on a project that takes one of the Beekit examples and exports it into CW so that I can modify it and add my own code to it.  It's running on the 1321x-SRB board.  The problem for me is that it takes at least 5 minutes every time I rebuild the project.  Maybe I am just not finding the option but I wonder if there are flags set for incremental builds rather than recompiling every single file is this project.

 

I really need to cut the testing time down because I am wasting hours each week just waiting for code to compile.  I have never worked with software so bad but I am hoping I just missed a setting somewhere.

 

Thanks,

 

 

Michael

Labels (1)
0 Kudos
7 Replies

562 Views
J2MEJediMaster
Specialist I

Have you checked out this https://community.freescale.com/message/93180#93180?

 

---Tom

0 Kudos

562 Views
MJWeston
Contributor III

Hi,

 

I had not seen that topic until now but it doesn't seem useful for my situation.  It is not the debugger I am concerned about (although it is ridiculously slow as well).  I would just like to compile code at a proper speed.  If I change one line of code, the software should be smarter than rebuilding every single file in the project again.

 

I found an option called incremental build and disabled it (leaving it on seems like it should do what I want though).  After that, it wouldn't build at all.  Doing a RUN command became very fast which is telling me that even though my code was up to date, it must still be rebuilding the whole thing again.  This just can't be how this software was made to operate.

 

Thanks.

0 Kudos

562 Views
J2MEJediMaster
Specialist I

Are you using any sort of version control? That might be touching the files and forcing a complete rebuild.

 

Also, it's possible that your CodeWarrior workspace has become corrupted, which can cause all sorts of problems. Check out this blog article for information on how to clean up the workspace.

 

 

---Tom

0 Kudos

562 Views
MJWeston
Contributor III

Hi Tom,

 

I'm not using any version control at all.  Actually, I did see someone else's post on that matter and I was glad I wasn't doing that. :smileyhappy:

 

I'm starting quite simply and I am new to Freescale's development environment so I am hoping I just don't know which boxes to check/uncheck.  What I have done is export an SMAC project into CW from Beekit (Wireless UART), test it to make sure it works and then start adding my code to it.  It has always taken several minutes to build from the first time I installed the software and began using it.

 

When I compile, I can see it rebuilding every single file in the project as they flash across the screen in the output window.  It's frustrating when I sometimes change just one line in the main function and rebuild.

 

Thanks for the continued help,

 

 

Michael

0 Kudos

562 Views
CrasyCat
Specialist III

Hello

 

  You need to have the Incremental build selected if you wish to rebuild only the files that have changed since

  the last rebuild.

 

  Additionally did you associate a pre-build step to your project? My experience is that when there is a pre-build step

  associated, the project, this forces a full rebuild of the project.

 

  To check that:

       - Open your project Properties dialog

       - Go to C/C++ Build > Settings page and switch to the Build Steps tab.

          Is anything specified in pre-build steps group?

 

  If this does not help, there should be something else in your project forcing that behavior.

  I would recommend you to submit a service request for that.

Click here to submit a service request.

Make sure to attach a reproducible project and installed product information to the service request.
 

CrasyCat

0 Kudos

562 Views
MJWeston
Contributor III

Hi CrasyCat,

 

I've had no luck with these suggestions.  Incremental builds is always turned on or else it won't even build at all.  If I deselect it, build all does absolutely nothing.

 

I did have a pre-build step:

 

"${MCUToolsBaseDir}/prog/chc08.exe" "${ProjDirPath}\PLM\HCS08\PRM\Linker_GT60.prm" -LpX -Lp=pre.prm

 

If I remove it, then I get the error:

 

No rule to make target 'pre.prm', needed by 'Wireless UART.abs'

 

Since this is a project imported by Beekit that I can't really mess with because I need all the radio stuff, I guess I am just stuck with this.  It's very frustrating.

 

Thanks,

 

 

Michael

0 Kudos

562 Views
CrasyCat
Specialist III

Hello

 

  Yes presence of a pre-build step forces a full rebuild of the application every time.

 

  Only alternative you have right now is to keep the file pre.prm from a previous build (if this is even possible) and use

  it in future sessions.

  I do not know enough about Beekit to determine if this is doable. Sorry.

 

CrasyCat

0 Kudos