This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/CCSTUDIO: Slow CCS build (+ freezing UI)

Part Number: CCSTUDIO
Other Parts Discussed in Thread: CC2640R2F

Tool/software: Code Composer Studio

Building the same project with my colleagues, a project re-build takes over 5mn on my PC and 1mn for them.

This timing is on CCS8 but I have consistently seen the same on CCS7, CCS8 and CCS9.

Hardware:

Mine: 5 to 6 mn

I7-7500U @ 2.70Ghz (7th Gen), 8GB RAM (was 16GB until recently, no impact), SSD

Win 10 pro

Colleague 1: 55 sec

i7 8650U @ 1.90GHz 16GB RAM, SSD 

Colleague 2: 1mn 25s sec

MacBook Pro i5 2.7GHz, 8BB RAM

During this time CCS is mostly unusable, the UI is totally frozen.

I managed to reduce switching target / compilation from 5mn to 30s by removing the project 'RemoteSystemsTempFiles';
stackoverflow.com/.../3152198

However that didn't fix the full re-build which I need to do quite often (memory map change, git branch switch, etc.)

I finally found a way to take the dump without "break" key, several users already reported on e2e they could not do the dump, if any of them want to dump:
- open CCS with flag -debug
- open On-Sreen Keyboard
- Change Keyboard priority to "high" 
- press CTRL on physical keyboard and PAUSE on On-Screen Keyboard

Other:

- I tried re-installing CCS a few times without success.

- Disabling indexing didn't help.

- The PC doesn't have any particular slowness in general.

- We have used the "worst" project but the the slowness in consistent across all projects.

- TI's multi-role example took 1mn, still slightly slower but not much, so it might be too small or missing some key condition creating the issue. 

We cannot share that project, but here is an archive (Password:951002157) with the dumps, let me know if there is something in them or how I can try to make this faster, I would really appreciate.

Thanks in advance.

Jerome

dmp 2019-04-12.rar

  • Hello Jerome,

    Can you try increasing the maximum heap size with your CCSv9 installation and try again? Try a value 2048m

    https://software-dl.ti.com/ccs/esd/documents/users_guide/ccs_troubleshooting.html#heap-and-jvm-settings

    Note that you need to try this on CCSv9.x since prior versions of CCS were only 32-bit application (see the above link on why this matters).

    Thanks

    ki

  • 2048m may be a bit too high for your system with 8GB. Try lowering it to something like 1536m or less. Try somewhere in the 1024m-1536m range

  • Hi Ki,

    I have tried a few values up to 1900m, it build successfully but unfortunately made no difference in the timing, it was always the exact same build time (3mn25s for that reference project on CCS9).

    Edit: I had a typo in my original trial "2048mm", retested with same result for "2048m".

    Thanks for your help,

    Jerome

  • We had the logs analyzed and it appears that it is related to known issue CCDSK-3270. This will be fixed in the upcoming CCS 9.3.0 release

    In the meantime, try the below workaround:

    1. Close the Console view.
    2. Go to Window > Preferences.
    3. Click on the 'Show advanced settings' link at the bottom of the dialog.
    4. Go to C/C++ > Build > Console page.
    5. Uncheck the 'Wrap lines on the console' checkbox and click 'Apply and Close'.
    6. Then just build any project - the Console view will automatically re-open with word-wrapping turned off.

    Thanks

    ki

  • Ki said:
    known issue CCDSK-3270

    I have a typo in the bug ID. It should be CCDSK-3720

  • Hi Ki,

    This solved the UI freezing and reduced build time to 2mn30s which is not fast but better than it was. This is also applies to CCS8 (required for CC2640R2F on older SDK).

    - Any way we can make it build faster like on the other computers?

    Now there's still some other issues

    - Is there anyway to speed up the indexer? Refactoring two names in a row before indexer is finished messes up everything.

    - Sometimes building gets stuck, are you aware of this?

    Jerome

  • JEROME H. said:
    - Any way we can make it build faster like on the other computers?

    Make sure parallel builds is enabled. Also try using a clean new workspace folder with minimum content, and try disabling the indexer. 

    JEROME H. said:
    - Is there anyway to speed up the indexer? Refactoring two names in a row before indexer is finished messes up everything.

    You can try rebuilding the index. Also try keeping the number of large open projects to a minimum. The more projects mean more work for the indexer - which slows down CCS in general.

    JEROME H. said:
    - Sometimes building gets stuck, are you aware of this?

    Only CCDSK-3720. I would need more details (where does it get stuck?). Also, another thread dump file can help us analyze further.

    Thanks

    ki