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.

After adding files to project building takes forever

Other Parts Discussed in Thread: CC3200, CC3200SDK

Hi,

    I am using CCSV6 and studying wlan_station for CC3200 Launchpad. I "add files'  prmc.c and selecting copy files as option. I build the project and the build takes forever. 

    Now, I cancel the build process and nothing happens and the CCS seems to hang.

    What should be the right procedure so the CCSV6 won't build forever and not hang after I cancel build process?

- kel

  • Hi Kel,

    Check this link out:

    http://processors.wiki.ti.com/index.php/Projects_and_Build_Handbook_for_CCS#Parallel_builds

    But I'm not sure whether your project is huge or is it a CCS stability issue!

    Regards,

    Gautam

  • Hi Gautam,

         The link you shared does not work. "404 Not Found"

         The CCS still hangs after cancelling. I will just close CCS through task manager. I hope I can still open CCS afterwards. Here is my CCS screenshot below.

    - kel

  • Hi,

       After I remove the prcm.c at wlan_station, the build also takes forever. 

    - kel

  • Markel Robregado said:
    I am using CCSV6 and studying wlan_station for CC3200 Launchpad. I "add files'  prmc.c and selecting copy files as option. I build the project and the build takes forever. 

    I haven't been able to duplicate this so far. I imported the wlan_station project from CC3200 SDK, then added prcm.c file to it and was able to build the project without it hanging. Could you try cleaning your workspace or opening a new workspace to see if that helps? http://processors.wiki.ti.com/index.php/Troubleshooting_CCSv6#General_IDE

  • @AartiG,

        I removed the wlan_station and import it again. Now, I am able to build the wlan_station again.

        These below are my actions when the wlan_station builds forever.

    1. Added prmc.c to wlan_station and selected "link to files" as option.
    2. Build project and there was an error "Cannot open source file  . . ."
    3. Removed prmc.c from wlan_station.
    4. Added prmc.c to wlan_station and selected "Copy files" as option.
    5. Build project and the build takes forever.

        I just did the above steps again and the build takes forever again. I will remove wlan_station in workspace and import it again.

    - kel

  • Kel, try deleting the workspace itself and then create a new one -> import the project! Sometimes workspaces do get corrupted.

    Regards,

    Gautam

  • I am following the instructions in the Getting Started Guide.  Doing that I can build wlan_station fine.

    I then "link" prcm.c to the project.

    Now when I build I get a build error: cannot open source file "inc/hw_types.h"

    That file appears to be located in C:\ti\CC3200SDK\cc3200-sdk\inc for me

    The file is included with #include "inc/hw_types.h" so I added C:\ti\CC3200SDK\cc3200-sdk to my include search path.

    Now the project builds fine.

    Was that the initial problem you were seeing before getting to the hanging issue?

  • Markel Robregado said:

    These below are my actions when the wlan_station builds forever.

    1. Added prmc.c to wlan_station and selected "link to files" as option.
    2. Build project and there was an error "Cannot open source file  . . ."
    3. Removed prmc.c from wlan_station.
    4. Added prmc.c to wlan_station and selected "Copy files" as option.
    5. Build project and the build takes forever.

    I can reproduce the hang by following this exact sequence of steps. The specific sequence that triggers it is first "linking" the source file, then deleting it, and then "adding" it again. I have submitted bug # SDSCM00050668 for this issue.

    The build does not hang if the file is either "linked" or "added" just once. Of course, the first time buid will generate the: cannot open source file "inc/hw_types.h" error as mentioned by John, which you can resolve by adding the include search path. Once that path is added it should build fine.

  • I can't reproduce a hang following these steps in CCS v6.0.1.  I do see that the first time that the project gets to the linking phase, it starts building the RTS library, which may take a few minutes.  In this case, you'd see this message in the Build Console view:

    <Linking>
    warning #10366-D: automatic library build: using library "E:\CCS\6.0.1.00039_ga\ccsv6\tools\compiler\arm_5.1.6\lib\rtsv7M4_T_le_eabi.lib" for the first time, so it must be built.  This may take a few minutes.

    This is expected, and it only happens the first time the project links.  It does not take forever, but may take a few minutes, depending on your machine capabilities.

    - Baltasar

  • The library build step is not where it was hanging in 6.0.0. I will give the same steps a try with 6.0.1 and report back if I still see the issue.

  • OK, I can no longer reproduce it with v6.0.1. Sorry I should have tested with that version before filing a bug.

    Kel, could you please give 6.0.1 a try and report back if you can still reproduce the hang?

  • Hi Aarti, Kel,

    If it wasn't the library build, then it was possibly a thread deadlock, which could be hard to reproduce.  If you wish to try to reproduce it again (whether it's in CCS v6.0.0 or v6.0.1), please follow these steps to capture the thread stack trace, which could help in fixing this problem:

    1. Instead of starting CCS normally, start it from command-line using this command:
           eclipsec > trace.txt

    2. Once you do reproduce the hang, before you kill CCS, place focus on the command-line window from where you've launched CCS in step #1, and hit Ctrl+Break on your keyboard.  This would capture the full thread stack trace into the "trace.txt" file.

    3. Then attach the "trace.txt" file to this forum thread, and i'll investigate.

    Thanks,

    - Baltasar

  • @JohnS

    I added prcm.c with "Copy Files" as option. Then I set C:\ti\CC3200SDK\cc3200-sdk at my include options. I was able to build without errors. There was 3 Optimization Advice though.


    @AartiG

    I tried to duplicate the build forever again using the same sequence. But, I was not able to duplicate it again. I was able to build at the last step and got a build error.

    Description Resource Path Location Type
    gmake: *** No rule to make target `../prcm.c', needed by `prcm.obj'. wlan_station Unknown C/C++ Problem

    I am using CCS V6.0.0, Windows 7 64-bit, cheap motherboard with 4GB RAM.

    I will try the sequence at CCS V6.0.1 when I have more time.

    - kel