This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

I have MAX17043 c and cpp library how to include it in the new project file in Segger Embedded Studio

I have MAX17043 c and cpp library how to include it in the new project file in Segger Embedded Studio. Whenever i try to create my own project and try to compile it gives me error even for nrf.h library not found.

       But it works fine in SDK Examples and also for MAX17043 library

Parents
  • Hi,

    What SDK and SDK version are you using?

    Usually it is best to start with an example, when you start a new project. If you use the nRF5 SDK then the Getting Started section of the documentation is a good place to start.

    For include files, you need to add the .c files to the project, and use #include directives for the header (.h) files in the .c files where needed. You also must add the directories for the .h files to the "Prjoect" menu -> "Options" menu item -> "Code" category -> "Preprocessor" subcategory -> "User Include Directories" settings. (Chose "Common" in the drop-down box at the top-left of the Options window.)

    Regards,
    Terje

Reply
  • Hi,

    What SDK and SDK version are you using?

    Usually it is best to start with an example, when you start a new project. If you use the nRF5 SDK then the Getting Started section of the documentation is a good place to start.

    For include files, you need to add the .c files to the project, and use #include directives for the header (.h) files in the .c files where needed. You also must add the directories for the .h files to the "Prjoect" menu -> "Options" menu item -> "Code" category -> "Preprocessor" subcategory -> "User Include Directories" settings. (Chose "Common" in the drop-down box at the top-left of the Options window.)

    Regards,
    Terje

Children
No Data
Related