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.

how to configure to use .h files from driverlib in IAR

I wanna use gpio.h from driverlib, but when I inserted the the code' #include <gpio.h>' and compiled,a error occured

Warning[Pa050]: non-native end of line sequence detected (this diagnostic is only issued once) C:\ti\msp\MSPWare_2_30_00_49\driverlib\driverlib\MSP432P4xx\gpio.h 1

how to configure or add .h files to project

need your support in detail.

  • Includes with < > brackets and the compiler will look at three locations
    Apparently you haven't not copied that file will to any one of them.

    Locate and select the .h file and right-click copy, right click on IAR workspace msp430.h file and select open containing folder, right click paste.

    or right click on workspace main.c file, to put .h file there for local workspace use only.


    Look at: Help / IAR C/C++ Compiler User Guide / page 238

  • I follow what you said "Locate and select the .h file and right-click copy, right click on IAR workspace msp430.h file and select open containing folder, right click paste"however errors remain,see this pic....

    Tony Philipsson said:

    Includes with < > brackets and the compiler will look at three locations
    Apparently you haven't not copied that file will to any one of them.

    Locate and select the .h file and right-click copy, right click on IAR workspace msp430.h file and select open containing folder, right click paste.

    or right click on workspace main.c file, to put .h file there for local workspace use only.


    Look at: Help / IAR C/C++ Compiler User Guide / page 238

  • Your msp432.h file is with quotes so it will only be in same folder as main.c

    Should not be related, but move the gpio.h to same folder too, right click main.c file, open containing folder. paste

  • I don't see what the problem is here....

    You added the file to the project, and it compiled. You received a warning, but that warning is not a problem and you should be just fine.

    What that warning means is that the gpio.h file has Unix-style line endings (LF) but you are on a Windows-based environment that expects CRLF line endings. You can safely ignore the PA050 warning.

    Edit: Seeing the graphic in the later part of thread, I do see that compile failed. That wasn't mentioned in original post of this thread. What Tony said applies. Use "" and not <>. Everything I said about the PA050 warning still applies.

**Attention** This is a public forum