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/TMS320F28027: f28027

Part Number: TMS320F28027
Other Parts Discussed in Thread: CONTROLSUITE, C2000WARE

Tool/software: Code Composer Studio

Hi,

I have to generate PWM at 15MHz. I am using simple examples from controlsuite and including all the required modules and header files. While debugging, it shows me error which is given in picture. How to tackle these errors?One error is of unresolved symbol and other is of file does not exist in system.

  • Ashan,

    First error message

    • The .ccxml file is the target configuraiton file.  This specifies how the debugger should connect to your devices.  Basically it specifies the device being used and the debug probe.
    • You are getting the error message as your project is specifying to use a file that does not exist.
    • I suspect that you started creating a file since "NewTargetConfiguration.ccxml" is the default name of a new file and then deleted it from the project later.
    • In your case it would be easier to specify the information on device and debug connection in the project and CCS will automaticallly generate this file for you.
    • You can do that in the project properties here: 

    The second set of errors mean that your project is referencing items that you have not included in your project.

    Is there a reason why you are using controlSUITE instead of C2000Ware?

    I can import the HRPWM C2000Ware examples from C2000Ware and build them fine.

    Here in Resource Explorer I can locate the examples.  If I dont have C2000Ware installed it will prompt me to install it when I try to import.

    Here I have imported the example:

    It builds fine but if I try to launch the debugger it will complain that there is no target configuration.  I can fix that by going to the project properties and selecting my debug connection:

    I am not sure what your debug probe is but you would meed to select the appropriate one in the connection drop down.

    Regards,

    John

  • Hi John,

    After the proper selection of debug probe, the following error is being shown. This time I am using examples from C2000ware.

  • Even after adding header files, the error is shown that 'cannot open source file  f2802x_examples.h'

  • Adding the header file to your project will not resolve that build error.  This is because the #include has a path as part of it.  i.e. the #include statement ithe way it is will look at each directory specified in your include search path and add /common/include/f2802x_examples.h to it.  This file is in C:/ti/c2000/C2000Ware_3_02_00_00_Software/device_support/f2802x/common/include

    Thus C:/ti/c2000/C2000Ware_3_02_00_00_Software/device_support/f2802x would need to be in your search path for it to be found

    What example are you importing.  I do not see a project called pwm-prac in C2000Ware anywhere?  The closest I can see to what you are doing is the hrpwm bitfield example.

    When I import that project from Resource Explorer I see the same #include statements:

    However there are a lot more files in my project:

    I also see more include paths listed in my project.  The second one is the one that resolves the location of the file

    Here is where they are specified in my project:

    Instead of trying to fix that up why not just import the project from Resource Explorer?  Building will just work and the only thing you will have to do is specify your debug connection.

    Please follow these steps

    1. Open Resource Explorer from the View menu.
    2. Under Software expand C2000Ware - 3.02.00.00 / English / Devices / F2802X / F28027 / Examples / Bitfield
    3. Select hrpwm
    4. Click the button to import it into your workspace
    5. Click build

    That project will build without any errors

    Then to debug the project

    1. Open the project properties
    2. Select General on the left
    3. In the "Connection" drop down on the right select the debug probe that you are using
    4. Click Apply and Close
    5. Now click the debug button

    Regards,

    John

  • Thank You very much for the prompt reply. In my case only that is being shown in resource explorer.

  • In my case in second last step I normally have option to select between driver and structure.

  • That looks like an old version of Resource Explorer operating in offline mode.

    What version of CCS are you running?  Based on your workspace location I was assuming CCSv10 or 10.1.

    When you open Resource Explorer are you selecting "Resource Explorer" or "Resource Explorer Offline"?

  • The approach that I am using to create project is to go to File then to New then to CCS Project then I click on empty project.After creating it I right click on the newly created folder that is normally at left toolbar and then start to add example file and include files of it. After that I link this folder with the help of include options and still getting error. After building program I have got these errors. I am using correct probe for debugging that is with LAunchpad XDS100v2.

  • To fix that error you can search for "f2802x_epwn_defines.h" in your C2000Ware installation.  Once you have located it you just add that to the include search path for the compiler.  It should be in C:/ti/c2000/C2000Ware_3_02_00_00_Software/device_support/f280x2/common/include

    I would highly suggest importing the example

    If Resource Explorer is not working for you try importing the example manually.

    First lets make sure that CCS knows where you have C2000Ware installed.  If you go to Window->Preferences.  Navigate to here and make sure that C2000Ware 3.2.0.00 is listed.  If it is not then add the path where it is installed at the top of the dialog and then click the Refresh button.

    Once that is done click Apply and Close to close the preferences dialog.  

    Go to the project menu and select "Import CCS Projects..."

    Make sure that "select search directory" is selected. The click on the browse button and point it to where you have C2000Ware installed

    Scroll down to the Example_2802xHRPWM example and check the box beside it

    Also check the box to copy the project into your workspace.

    Click finish

    Now click build.

    This project will build without any errors.  The paths will all be setup for you.  There will be a single warning about the project being created with an earlier version of the compiler than what you have.

  • I am using ccsv10. I am selecting Resource Explorer

  • Have you tried the instructions in my last post?

  • I have managed to use resource explorer and I have found it quite useful. How can I add different modules in single project as I have to use PWM and ADC together?

  • Ahsan,

    Good to hear that Resource Explorer is now working for you.

    Ahsan said:
    How can I add different modules in single project as I have to use PWM and ADC together?

    That is not something that I would be able help with.  I would suggest creating a new thread in the C2000 forum and the team there should be able to help.  The have a lot more expertise on C2000Ware.

    Regards,

    John