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: error while building

Other Parts Discussed in Thread: MOTORWARE

Tool/software: Code Composer Studio

The following error was shown while I tried to build the code Project 2b of motorware. Then I tried to comment the QEP_init in hal.c. But I could not save the file. So the error persist. What to do?

  • Hello,
    In the first screenshot, I can see that you created and added a 'hal1.c' to your project. I assume it a modified copy of hal.c. This would explain the redefinition errors. You will need to make sure you do not have any duplicate redefinitions between the two source files (or remove one of the files). Sounds like you were trying to do that and was unable to save the changes. For whatever reason, CCS was unable to write the changes. Make sure you have write permissions for that file. If you do and CCS is unable to edit it, try closing CCS and open the file in a text editor and try to modify it that way.

    Thanks
    ki