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.

TMS320F28069: unrecognized token error in empty file

Part Number: TMS320F28069
Other Parts Discussed in Thread: C2000WARE, CCSTUDIO

Tool/software:

 I keep having this error in my code when building the project, even when I nearly delete everything

  • Hello,

    There must be some hidden characters on the line or something like that. Can you attach that file to this thread?

    Thanks

    ki

  • Hi Ki, 

    The original code is as attached, as well as the whole project

    Winnie

    1
    2
    3
    4
    5
    6
    7
    // Included Files
    //
    #include "DSP28x_Project.h" // Device Headerfile and Examples Include File
    #include "string.h"
    void main(void)
    {}
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    PWMSignal.zip

  • I imported your project but I do not see an issue.

    If you completely delete the file and create a fresh new one, with the same text, do you still have an issue?

  • Hi Ki, I create an new project with Main C, the error still there

  • I see you modified the C file by adding in a new line.

    If you create a new project again but do not modify the C file, does it build ok?

  • A new project with main C, I don't modify anything, trying to build, still not work

  • What is the encoding setting for your workspace?

    Do you get this error for all projects and source files? 

    Thanks

    ki

  • Hi Ki,

    My workspace is as shown in the attached picture. The very first project I sent to you is my only project, I am just start CCS. I find the error, then I build few empty project with Main C, the error still there

    Thanks

    Winnie

  • This is very odd.

    Can you try CCS 20 and try importing and building a project from there?

  • Error still there

  • One last question. If you import an example from C2000Ware and try to build it as is, does that build out of the box? Or does every source file fail to build?

  • Still have error, seen in the picture attached

  • Can you try one last thing?

    Open a DOS command window.

    Browse to <CCS12 INSTALL DIR>\ccs\eclipse

    Run:

    > eclipsec -noSplash -data <WORKSPACE PATH> -application com.ti.ccstudio.apps.projectBuild -ccs.projects Example_2806xEPwmUpDownAQ -ccs.buildType full

    Provide all the output that appears. Maybe stream output to a file like: 

    eclipsec -noSplash -data <WORKSPACE PATH> -application com.ti.ccstudio.apps.projectBuild -ccs.projects Example_2806xEPwmUpDownAQ -ccs.buildType full > build.txt

    Then attach the build.txt to this thread.

    Thanks

    ki

  • Hi Ki,

    As you can see from the below attachment we can run the eclipsec file through the command prompt  but when i run the the rest of the statement, we get "The system cannot find the file specified"

    Can you please advise.

    Thanks

    Winnie

  • Apologies, we didnt reference the workspace path correctly, attached is build.txt as requested

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    CCS headless build starting... [Mon Jan 27 15:01:54 GMT 2025]
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    ================================================================================
    Pre processing...
    !WARNING: Project 'Example_2806xEPwmUpDownAQ' was not found in the workspace! Ignoring...
    NOTE: use the '-ccs.autoImport' argument to automatically import projects found in the workspace root directory.
    ================================================================================
    Building...
    ================================================================================
    CCS headless build complete! 0 out of 0 projects have errors.
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Apologies, we didnt reference the workspace path correctly

    Did you use the workspace location that the project is already in? It should be the same exact workspace folder used by CCS in your screenshots.

    Thanks

    ki

  • Hi Ki,

    Under File--Switch Workspace: I can swith between three different workspace, which also include the one you mentioned. The error is still there when I trying to build project under any of them

  • The error is still there when I trying to build project under any of them

    I assume the same build error but from the command-line.

    Can you send me the complete build output?

    Also sen me the complete build output in the build output window. Copy and past all the text to a text file and attach to this thread. I would like to see how the compiler is called.

    Thanks

    ki


  • **** Build of configuration Debug for project Example_2806xEPwmUpDownAQ ****

    "C:\\ti\\ccs1281\\ccs\\utils\\bin\\gmake" -k all

    Building file: "../test.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1281/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --float_support=fpu32 --vcu_support=vcu0 --include_path="C:/ti/ccs1281/ccs/tools/compiler/ti-cgt-c2000_22.6.1.LTS/include" --include_path="C:/ti/C2000Ware_5_03_00_00/device_support/f2806x/headers/include" --include_path="C:/ti/C2000Ware_5_03_00_00/device_support/f2806x/common/include" --include_path="C:/ti/C2000Ware_5_03_00_00/libraries/math/IQmath/c28/include" --include_path="C:/ti/C2000Ware_5_03_00_00/libraries/math/FPUfastRTS/c28/include" --define=_DEBUG --define=LARGE_MODEL -g --diag_suppress=10063 --diag_warning=225 --issue_remarks --verbose_diagnostics --quiet --preproc_with_compile --preproc_dependency="test.d_raw" "../test.c"

    >> Compilation failure
    subdir_rules.mk:72: recipe for target 'test.obj' failed
    "../test.c", line 1: warning: last line of file ends without a newline
     Ú_ 3Íš¼[l¿ª3vfºf~¬ÁÀDZ¡Ÿ2]a)+:"ËÑÎI?Ò£ÕÙçq—ÔTm;6ÚyÒó’o¸ƒ¹ÖZµ&ï !æéS!0Œ¸›ÌnÂ2ÇÍd‰ ³«+tá9×û"o
    ^

    "../test.c", line 1: error: unrecognized token
     Ú_ 3Íš¼[l¿ª3vfºf~¬ÁÀDZ¡Ÿ2]a)+:"ËÑÎI?Ò£ÕÙçq—ÔTm;6ÚyÒó’o¸ƒ¹ÖZµ&ï !æéS!0Œ¸›ÌnÂ2ÇÍd‰ ³«+tá9×û"o
    ^

    "../test.c", line 1: error: expected a declaration
     Ú_ 3Íš¼[l¿ª3vfºf~¬ÁÀDZ¡Ÿ2]a)+:"ËÑÎI?Ò£ÕÙçq—ÔTm;6ÚyÒó’o¸ƒ¹ÖZµ&ï !æéS!0Œ¸›ÌnÂ2ÇÍd‰ ³«+tá9×û"o
    ^

    "../test.c", line 1: error: unrecognized token
     Ú_ 3Íš¼[l¿ª3vfºf~¬ÁÀDZ¡Ÿ2]a)+:"ËÑÎI?Ò£ÕÙçq—ÔTm;6ÚyÒó’o¸ƒ¹ÖZµ&ï !æéS!0Œ¸›ÌnÂ2ÇÍd‰ ³«+tá9×û"o
    ^

    "../test.c", line 1: error: unrecognized token
     Ú_ 3Íš¼[l¿ª3vfºf~¬ÁÀDZ¡Ÿ2]a)+:"ËÑÎI?Ò£ÕÙçq—ÔTm;6ÚyÒó’o¸ƒ¹ÖZµ&ï !æéS!0Œ¸›ÌnÂ2ÇÍd‰ ³«+tá9×û"o
    ^

    "../test.c", line 1: error: extra text after expected end of number
     Ú_ 3Íš¼[l¿ª3vfºf~¬ÁÀDZ¡Ÿ2]a)+:"ËÑÎI?Ò£ÕÙçq—ÔTm;6ÚyÒó’o¸ƒ¹ÖZµ&ï !æéS!0Œ¸›ÌnÂ2ÇÍd‰ ³«+tá9×û"o
    ^

    "../test.c", line 1: error: unrecognized token
     Ú_ 3Íš¼[l¿ª3vfºf~¬ÁÀDZ¡Ÿ2]a)+:"ËÑÎI?Ò£ÕÙçq—ÔTm;6ÚyÒó’o¸ƒ¹ÖZµ&ï !æéS!0Œ¸›ÌnÂ2ÇÍd‰ ³«+tá9×û"o
    ^

    "../test.c", line 1: error: unrecognized token
     Ú_ 3Íš¼[l¿ª3vfºf~¬ÁÀDZ¡Ÿ2]a)+:"ËÑÎI?Ò£ÕÙçq—ÔTm;6ÚyÒó’o¸ƒ¹ÖZµ&ï !æéS!0Œ¸›ÌnÂ2ÇÍd‰ ³«+tá9×û"o
    ^

    "../test.c", line 1: error: unrecognized token
     Ú_ 3Íš¼[l¿ª3vfºf~¬ÁÀDZ¡Ÿ2]a)+:"ËÑÎI?Ò£ÕÙçq—ÔTm;6ÚyÒó’o¸ƒ¹ÖZµ&ï !æéS!0Œ¸›ÌnÂ2ÇÍd‰ ³«+tá9×û"o
    ^

    "../test.c", line 1: error: unrecognized token
     Ú_ 3Íš¼[l¿ª3vfºf~¬ÁÀDZ¡Ÿ2]a)+:"ËÑÎI?Ò£ÕÙçq—ÔTm;6ÚyÒó’o¸ƒ¹ÖZµ&ï !æéS!0Œ¸›ÌnÂ2ÇÍd‰ ³«+tá9×û"o
    ^

    "../test.c", line 1: error: extra text after expected end of number
     Ú_ 3Íš¼[l¿ª3vfºf~¬ÁÀDZ¡Ÿ2]a)+:"ËÑÎI?Ò£ÕÙçq—ÔTm;6ÚyÒó’o¸ƒ¹ÖZµ&ï !æéS!0Œ¸›ÌnÂ2ÇÍd‰ ³«+tá9×û"o
    ^

    "../test.c", line 1: error: unrecognized token
     Ú_ 3Íš¼[l¿ª3vfºf~¬ÁÀDZ¡Ÿ2]a)+:"ËÑÎI?Ò£ÕÙçq—ÔTm;6ÚyÒó’o¸ƒ¹ÖZµ&ï !æéS!0Œ¸›ÌnÂ2ÇÍd‰ ³«+tá9×û"o
    ^

    "../test.c", line 1: error: unrecognized token
     Ú_ 3Íš¼[l¿ª3vfºf~¬ÁÀDZ¡Ÿ2]a)+:"ËÑÎI?Ò£ÕÙçq—ÔTm;6ÚyÒó’o¸ƒ¹ÖZµ&ï !æéS!0Œ¸›ÌnÂ2ÇÍd‰ ³«+tá9×û"o
    ^

    "../test.c", line 1: error: unrecognized token
     Ú_ 3Íš¼[l¿ª3vfºf~¬ÁÀDZ¡Ÿ2]a)+:"ËÑÎI?Ò£ÕÙçq—ÔTm;6ÚyÒó’o¸ƒ¹ÖZµ&ï !æéS!0Œ¸›ÌnÂ2ÇÍd‰ ³«+tá9×û"o
    ^

    "../test.c", line 1: error: unrecognized token
     Ú_ 3Íš¼[l¿ª3vfºf~¬ÁÀDZ¡Ÿ2]a)+:"ËÑÎI?Ò£ÕÙçq—ÔTm;6ÚyÒó’o¸ƒ¹ÖZµ&ï !æéS!0Œ¸›ÌnÂ2ÇÍd‰ ³«+tá9×û"o
    ^

    "../test.c", line 1: warning: null (zero) character in string or character
    constant
     Ú_ 3Íš¼[l¿ª3vfºf~¬ÁÀDZ¡Ÿ2]a)+:"ËÑÎI?Ò£ÕÙçq—ÔTm;6ÚyÒó’o¸ƒ¹ÖZµ&ï !æéS!0Œ¸›ÌnÂ2ÇÍd‰ ³«+tá9×û"o
    ^

    14 errors detected in the compilation of "../test.c".
    gmake: *** [test.obj] Error 1
    gmake: Target 'all' not remade because of errors.

    **** Build Finished ****

  • Thank you. One more question, what is your Windows localization (language) settings?

  • I was discussing with our compiler expert and he recalled one issue where a certain DLL was causing the compiler to behave strangely. The DLL was "C:\windows\LVUAAgentInstBaseRoot\system32\MozartBreathCore.dll". Apparently it was related to some antivirus/security software on the PC with the compiler issue. I'm not sure if it is related to you issue but I wanted to ask just in case?

  • English

  • Hi Ki,

    Thanks for the information. I need to check with our IT, and will let you know

  • Hi Ki,

    The IT team helped me check it, but we could not confirm the issue. However, he agreed with you that it might be caused by the security software. Unfortunately, it cannot be removed, or the system will crash.

    I really appreciate all your help. You can close this topic if you want. I will need to buy another laptop myself—it seems to be the only way.

    Thanks,
    Winnie