This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

"nordic_common.h": No such file or directory

I'm trying to pull my project out of the examples directory, but there seems to be many dependencies on files far outside my project, and files not shown in my project file-tree menu in uVision.

I moved the example ble_app_hrs to a new directory, and have been slowly fixing each missing file by re-adding versions of each file inside my ble_app_hrs directory. Right-click the project -> selecting Manage Project Items... -> Add Files... -> choose only files INSIDE your project.

I have two questions:

1. Why are not the header files included? It seems like only the .c files and not their corresponding .h files. I'm used to including each .c and .h file so as to make the project dependencies as clear as possible. E.g. everything that's in that project file tree in the IDE is what is being used.

  1. Why am I getting the error nordic_common.h: No such file or directory when I clearly copied and pasted the nordic_common.h file into my project directory and added it to my project files?

Is there a better way to go about this?

Edit

I just discovered this page under Options for Target... -> C/C++ tab: image description

Are there recommended settings for this page? I really want to clear that entire Include Paths section and Define: section.

Parents
  • Seems like you found out why you got the nordic_common.h: No such file or directory. So the answer is then, that you have to tell Keil which paths have the include files. You could of course copy all the header files to one include folder and, just include this folder.

    Have you tried Keil Packs? This system does what you are trying to do automatically. When you start a new project, it copies out all the project, source and include files to the specified folder.

Reply
  • Seems like you found out why you got the nordic_common.h: No such file or directory. So the answer is then, that you have to tell Keil which paths have the include files. You could of course copy all the header files to one include folder and, just include this folder.

    Have you tried Keil Packs? This system does what you are trying to do automatically. When you start a new project, it copies out all the project, source and include files to the specified folder.

Children
No Data
Related