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: p24Hxxxx.h file for ethercat slave

Tool/software: Code Composer Studio

Hi,

Multiple markers at this line
- el9800hw.h, line 36 [S/W BP]
- fatal error: p24Hxxxx.h: No such file or
directory ,,Please suggest the solution for this which is in code composer studio v7.4

  • Please provide more context around this error. Do you see the error in the editor or is it a build time error?  A screenshot of the error message will be helpful.

    Also please provide some details about the project you are building.

  • Typically the error "No such file or directory" appears when the compiler is unable to locate the file in the provided paths.

    In your project, it appears that the file el9800hw.h #includes p24Hxxxx.h, but the compiler is unable to find p24Hxxxx.h. The compiler searches for header files in the same directory as the source file that includes it, and also in directories specified in the "Include paths" option. In CCS, go to Project Properties->Build->GNU Compiler->Directories, and check if the path to the p24Hxxxx.h file is listed under "Include paths". If it is not, then add it and recompile the project.

    There may be other errors to address but lets start here. 

    Also is this project your own custom project or a TI provided example project?

  • I hope my earlier reply was helpful in resolving your compiler build error and you have been able to move past this. If not, please feel free to post a reply with an update below or create a new thread. Thanks!