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/TM4C1294NCPDT: TM4C1294NCPDT

Part Number: TM4C1294NCPDT


Tool/software: Code Composer Studio

HI,

 I have 2 queries. I am just a begginer in Code composer studio. 

1. I have imported a blinky.c program from Resource Explorer to IDE and deleted it. And when I try to import same to IDE the following error is shown.: 


Error: A file or directory with name 'blinky' already exists at location 'C:\Users\Azim\workspace_v7\blinky'!

2. I have found a example of CAN program from C:\ti\TivaWare_C_Series-2.1.3.156\examples\peripherals\can . When it is not getting build when copy pasted and following error is shown. Also is there any procedure to import these example path  C:\ti\TivaWare_C_Series-2.1.3.156\examples\ to IDE.

  • azim ali said:

    1. I have imported a blinky.c program from Resource Explorer to IDE and deleted it. And when I try to import same to IDE the following error is shown.: 


    Error: A file or directory with name 'blinky' already exists at location 'C:\Users\Azim\workspace_v7\blinky'!

    If you simply deleted the project but did not check the box to tell it to "delete project contents on disk" then the project folder will still exist in the workspace directory, hence it will not allow you to import the project with the same name again.

    Please see some related posts here and here.

    azim ali said:
    I have found a example of CAN program from C:\ti\TivaWare_C_Series-2.1.3.156\examples\peripherals\can

    Note that this directory only contains source files that are to be added to your project and intended as guides that you can adjust to suit your board/application.

    As for example projects themselves, those are in the /examples/boards directory inside Tivaware (for the various different boards). These you can import either from Resource Explorer or directly from CCS menu Project->Import CCS Projects.

    For the "cannot open source file" error please see this link.

  • I tried to import from path C:\ti\TivaWare_C_Series-2.1.3.156\examples\peripherals\can. But I could not do it as the CAN program C file is not seen when I browse to import ccs project.

    Can you please give me a way how to get that CAN program to the CCS IDE to start CAN peripheral interfacing

    Also when I copy paste any peripheral programs to my blinky.c program after erasing the previous blinky program, It does not get built.

    Is there any configuration to be done for running peripheral program. 

    Please note that Examples in Resource Explorer gets bulid when imported to IDE.

  • azim ali said:
    I tried to import from path C:\ti\TivaWare_C_Series-2.1.3.156\examples\peripherals\can. But I could not do it as the CAN program C file is not seen when I browse to import ccs project.

    That is because there is no project in that directory to import. For CCS to detect a project to import, it looks for CCS project files (.*project) or a projectspec file in that directory. And as I mentioned earlier the \peripherals\can directory only contains source files, no .*project files. That is the reason there is nothing there to import.

    The intent is that you can add/copy those source files into your existing project and then modify them as needed. So you need to already have a project in your workspace (whether it be an imported project or a newly created project) before you can add the CAN source files to them.

    azim ali said:
    Also when I copy paste any peripheral programs to my blinky.c program after erasing the previous blinky program, It does not get built.

    I'm not clear what you mean here,  but hopefully my explanation above clears things up.

    azim ali said:
    Is there any configuration to be done for running peripheral program. 

    This question may be better suited for the TM4C device forum, however I would first recommend reading through the documents and readmes that come along with TivaWare as that may give you all the information you need to move forward with CAN interfacing. If it does not, then please feel free to create a new post in the TM4C forum as the experts there should be able to assist better with peripheral programming/configuration type questions.