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: #1966 cannot open source file : Permission denied main.c

Other Parts Discussed in Thread: MSP432WARE

Tool/software: Code Composer Studio

Hi all,

I am getting the following error : #1966 cannot open source file "C:\ti\msp\MSP432Ware_3_50_00_02\driverlib\driverlib\MSP432P4xx": Permission denied

After reading all the other threads, I tried opening CCS as administrator but in vain. Right from the installation of CCS, I have been facing problems using driver library.

FYI: I have installed my CCS in D: instead of C:, will this be a cause of problem? I have attached the image of the files CCS has in my C:.

  What should I do to get this resolved?

  • What does your #include statement in line 2 look like? Looks like it might be trying to include a directory instead of a header file.

    I also notice that your workspace directory contains spaces in the path. While this may be ok in most cases, we generally recommend avoiding whitespaces in workspace, project and CCS installation paths to avoid potential build and debug issues.

    https://e2e.ti.com/support/tools/ccs/f/81/t/740719

  • Hi,

    Thanks for the reply.  What I found out is that I can access driver lib if I import projects from examples of MSPware into my workspace  but I am not able to if I do it in an another workspace  after including the driverlib header file. What could be the possible reason for this behavior?

  • Karthik Rajagopal1 said:
    but I am not able to if I do it in an another workspace  after including the driverlib header file.

    I am not sure I understand your issue. Please provide more details about the errors you're facing along with relevant screenshots. 

  • I got the error (that is in the screenshot) only when I tried including my header file in a project in a workspace with a different path. When I created a new workspace with path ....ccs\MSP432Ware_3_50_00_02  and imported all the example sketches from the driverlib, it got them compiled and executed without any problem. It would be helpful if can guide me with steps as I am new to CCS.

    FYI: I am using CCS version 10

    Thanks.

  • For the error in your original screenshot, does the #include statement in line 2 of your source file look like this? 

    #include C:\ti\msp\MSP432Ware_3_50_00_02\driverlib\driverlib\MSP432P4xx

    If so, the error is expected. The #include statement should include a header file not a directory.


    If I have misunderstood the issue then please create a new post describing your over-arching problem or what you would like to achieve. I think that would be a better way to address the issue rather than the specific build error at hand, especially if you are new to CCS and MSP432Ware. Also, if you are trying to create new projects based on driverlib, the MSP team might be better suited to help with that, so please create a new post in the MSP microcontroller forum.