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

Starting a new project with custom file structure

Hello Everyone, 

I am using nRF52832 with Softdevice S132 v5.0 and SDK 14.2. 

I have been using ble_app_uart application as a starting point with SES. What i need now is to have a file structure of my own that i could use to version control for the project. 

Is there a way that i can do that since i am not running into number of problems with the preprocessors, macros and other things. 

I have gone through in the forum and looked in here. But this is still building the project inside the SDK and other directories which is not what i am looking for. 

Looking for a clean slate to start with, where i can add or delete files, folders, drivers accordingly. 

Kindly let me know if anyone has done it or knows how to do it. 

Thank you.

Parents
  • Hello,

    I think the easiest approach would be to just create your folder structure inside the project directory and make sure to import any SDK files you want to modify to this folder, then you shouldn't need to have version control of the SDK itself.  Alternatively, if you want more separation, replace all relative paths in the *.emProjecfile  with a variable that holds the full path to the SDK copy, adjacent to your custom file structure for instance. 

    E.g.,

    <file file_name="$(SDK_ROOT)/modules/nrfx/mdk/system_nrf52.c" />

Reply
  • Hello,

    I think the easiest approach would be to just create your folder structure inside the project directory and make sure to import any SDK files you want to modify to this folder, then you shouldn't need to have version control of the SDK itself.  Alternatively, if you want more separation, replace all relative paths in the *.emProjecfile  with a variable that holds the full path to the SDK copy, adjacent to your custom file structure for instance. 

    E.g.,

    <file file_name="$(SDK_ROOT)/modules/nrfx/mdk/system_nrf52.c" />

Children
No Data
Related