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

Best way for save project

Hi,

I would like to save my project and add something like a version number to it. I use an example from nordic SDK. So in my case I use solution from ...\examples\ble_peripheral\ble_app_uart.

If I press "save all" in SES, only main.c is saved.

But I modify also files such as ble_nus.c, which is saved in folder ...\components\ble\ble_services\ble_nus

Is it possible, to create a folder with all "used and customized files" (.c and .h) in it?

  • Hi Simon,

    I think you should not modify this files because it is common for many examples in SDK. I think good practice is create new file and include needed files.  

  • I agree with  that it isn't recommended to modify the libraries or drivers already present in the SDK, at least you shouldn't change the API (the functions in the .h file used to interact with). Since it may break other examples using that library. To copy the content into your own custom library and then modify it, is probably a safer option.

    However, to your question. One approach is is to put your custom libraries inside e.g. examples\ble_peripheral\ble_app_uart, since (I think) this will make them part of the solution and when you press "save all" they will be included. In addition, you could run git init inside examples\ble_peripheral\ble_app_uart which will make it easy to track all the changes you've done.

    Best regards,

    Simon

  • Hi,

    I´ve copied

    - main.c

    -flash_placement

    -EMPROJECT-file

    to another specific folder. Now, I would like to make the example "ble_app_uart" runable. Of course I got many errors after trying to compile. I have to include all libraries which are used in main.c to my new folder. Is there an easy way for doing this? Or do I have to copy every .h file to this new folder (there are a lot of it)?

  • Check out this ticket which explains how to build an example out of the SDK tree.

    This case may also be helpful.

    Best regards,

    Simon

  • Check out this ticket which explains how to build an example out of the SDK tree.

    I tried this, but it doesn´t works as espected. I did the steps as described in the instruction. But when I do the last step (build solution), I got a few errors. The libraries doesn´t exist.

    For make this working, I have to copy all the folders from SDK (components, external and so on) to my example folder. Sure, because the libraries are all in these folders. Is that the solution the older TO was looking for? In this case, the example folder contains all existing SDK libraries.

    My aim was it, to just serperate my examples and the libraries for just this example.

    So in my case I would like to have two folders:

    1. C:\\ble_app_uart  (with the example in it)

    2. C:\\ble_app_uart\libraries (with just all the needed libraries for the example in it)

    My opinion is, that I then have a very small project folder with just my needed files in it and not a big folder with every libraries from SKD in it.

    Isn´t that the normal way for developing?

Related