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/TMS320C6678: Build problem

Part Number: TMS320C6678

Tool/software: Code Composer Studio

Hi

CCS: V7

I want to make a library from my functions, when I made a library project some problems appeared as below:

The strange point is that Code Composer identify the variable as below:

I added the search path of headers to the project and the errors didn't solve as below:

according to I added the PDK path in the "Include Option" I have a warring as below:

Please, guide me to solve the problem and remove the errors.

Best Regards

  • Focus on the problem with the build variable first.  Please use the variables part of the Portable Projects article for guidance on where to find the definition of the problem build variable.  Once you have found it, be sure it resolves to a valid directory on your system.

    Next, focus on the problem about undefined identifiers.  A good way to debug these problems is by using the compiler option --gen_preprocessor_listing.  Please search for that option in the C6000 compiler manual.  You'll be able to work out why the identifiers uint8_t and uint32_t are not seen by the compiler.

    Thanks and regards,

    -George

  • Hi

    Where I should use "-- gen_preprocessor_listing" command? In the CCS?

    I should mentioned that in my main project, CCS compile without any error and I add the path of include headers in "Build/Include Options" as I explained above.

    I'll test your answers.

    Can you guide me by more details?

    Best Regards

  • dariush karami said:
    Where I should use "-- gen_preprocessor_listing" command? In the CCS?

    Yes, in CCS.  It is a compiler option you set with the build dialog.  It creates a file with the same name as the source file, but the extension is changed to .rl.  That's the file you inspect to determine why the names uint8_t and uint32_t are not defined.  All of the details of this process are described in the C6000 compiler manual.

    Thanks and regards,

    -George

  • Hi

    I checked " sprui04.pdf " document and I didn't find out how to use "-- gen_preprocessor_listing" in the CCS.

    Can you guide me how to use this command in the CCS by snapshots? please.

    Best Regards

  • Enable creation of the preprocessing listing file with the guidance of the screen shot below.  The resulting .rl files are found in the directory named after the current build configuration, often Debug.  To understand the contents of the .rl file, use the description in the compiler manual.  To work out why the definition of the types uint8_t and uint32_t are not seen by the compiler, apply your own debugging skills.

    Thanks and regards,

    -George

  • Hi

    I checked in my CCS but I didn't find the "Supplement Information" field, my CCS version is 7 so this field isn't in my CCS version.

    Is there an alternative solution?

    Regards

  • The version of the compiler, and not CCS, is what controls these details.  You may be using an older compiler.  In that case, the same option is named --gen_acp_raw, and you will find it in the Language Options part of the build dialog.

    Thanks and regards,

    -George