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.

TMS320F2800137: Subfolder limit

Part Number: TMS320F2800137


Tool/software:

Hi all,

Simple question. Does Code Composer Studio (v12.8) have some sort of subfolder limit?

I have a source file named ApplicationImageVerify.c. This, normally, resides in Source/Bootloading/ApplicationImageVerify/

However, this results in a compile error. See following (ignore folder names)

gmake: *** No rule to make target '../Source/subfolder1/subfolder2/subfolder3/ApplicationImageVerify.c', needed by 'Source/subfolder1/subfolder2/subfolder3/ApplicationImageVerify.obj'.
gmake: Target 'all' not remade because of errors.

However, when i move the file to the root of Source/Bootloading, the program compiles just fine!

Note, while testing, the header does not change location.

I've added a subfolder in Source/Subfolder1/Subfolder2/Subfolder3

When i add the file to Subfolder1, there is no issue.

When i add the file to Subfolder2, there is no issue.

When i add the file to Subfolder3, the issue arises. This continues for all additionally added subfolders.

Why is this???

  • Christiaan,

    I have assigned this thread to an CCS IDE expert. They should be replying to your query soon.

    Thanks,

    Ricky

  • Thanks in advance!

  • Hi Ricky, do you know when the CCS IDE expert can reply to this issue? Thanks.

  • Hi Ricky,

    Im pretty sure this has something to do with a max path limit.

    If i move the repository to C:/Code/[repo name], everything compiles just fine.

    What is the max path length? Is there a limit? Doesn't Code Composer Studio listen to LongPathsEnabled ?

  • Hi Christiaan,

    Yes, gmake is affected by the path length limit.  I was able to reproduce the same issue with my workspace (path length of 40 characters) - but I only reproduced it when my subdirectory nesting reached 16 subdirectories (all named "subdirectory<n>" in sequence).  Once I rolled back to "subdirectory15", my project built without issues.  Then, when I imported the same project into another workspace, with a longer path, I could reproduce the issue again.  So I am observing exactly what you are, except the trunk of my workspace is much shorter, allowing my subdirectory nesting to be much deeper.

    Based on my test above, the limit seems to be around 250 characters.  I've tried enabling the LongPathsEnabled registry setting, but it seems to have no effect.  So it's possible that gmake has its own limit.  I've done some searching, but couldn't find if there is any way of raising that limit.  But given that we haven't see anyone run into this issue in the past 20 years, I think the limit is reasonable.

    Looking at your screenshots, it looks like the trunk of your source-code directory is indeed very long.  So the only thing I can think of is to shorten that trunk.

    Baltasar

  • Hi Baltasar,

    Ah alright. I was indeed thinking the same, but not sure what was causing the max path limit. Indeed when i move my project to for example C:/, everything just works fine.

    I now know the root cause of the problem, so i'll mark this issue as resolved. Thanks for the help!