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

[nRF5 SDK 17.0.2] Dependencies between source files

Hi everyone,

In my company we are working with the last SDK release, and we build projects with make and gcc toolchain.

I have a quite wide request : since I'm using makefiles (by the way thank you so much Nordic team for providing GOOD example makefiles), I have to list manually .c source files and include directories AND modify my sdk_config.h to provide necessary settings. However building such a proper configuration is hard and the documentation I found doesn't help very well - even if (as recommended) I start from an example project and adapt it to my needs.

Here are the "main" difficulties I encounter when starting a new custom makefile project :

- Hard to find which .h and .c files to use :

   For instance I wish using SPIM driver beside other drivers. I take a look at the infocenter here and..... I can't figure out what are the module dependencies, which header I have to include in  my project and which source files I have to compile.

- sdk_config.h :

  We can add many many entries in this file but it's really hard to know which one. A full sdk_config.h is provided in the sdk - Good starting point. But when it's time to sort entries, which ones can I delete and which ones to keep ? I nearly understood that used entries were listed in the "[driver name] driver configuration" section but it's not clearly said (maybe other configuration entries does exist).

I may have mis searched and zapped  some information. But it is still difficult to figure out where to get the right information.

Could you please help on the previously listed points ? It would make the development more comfortable and time efficient.

Best regards,

Hugo

Related