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

Source file error even after change include paths

I'm porting from sdk10 to sdk12.1 and changing to .zip based libraries in keil5. I've unzipped the sdk into the directory and the examples work fine. However, if try to copy one example into another directory and change the include paths the source errors still mantain:

"no source": Error:  #5: cannot open source input file "..\..\..\..\..\..\components\drivers_nrf\common\nrf_drv_common.c": No such file or directory

image description

What configuration I'm missing?

Thanks.

Parents
  • If you change the folder structure, you have to remove all source files in the Keil project and add them again from the correct location. I'm not sure what you mean by copying the example into another directory. Most of the examples in the SDK only have a main file, with all libraries linked into the Keil project file. If you want to add functionality to an example, you should edit the main file and add the relevant source and header files.

Reply
  • If you change the folder structure, you have to remove all source files in the Keil project and add them again from the correct location. I'm not sure what you mean by copying the example into another directory. Most of the examples in the SDK only have a main file, with all libraries linked into the Keil project file. If you want to add functionality to an example, you should edit the main file and add the relevant source and header files.

Children
No Data
Related