Any recommanded way to update code base to newer version of the nRF Connect SDK?

Hello,

I am going through the tutorials in the DevAcademy. During the learning process, I noticed the nRF Connect SDK is updated several times. I started from 2.1.0, now the latest version is 2.2.0. I am wondering that is there a recommended way I can update my local project to the latest SDK version. The way I am going to use is to copy the folder src, CMakeList files, KConfig, and Overlay file, I think that should work, to make it better, I guess I can create a python script to "automatically" copy those files but I believe there must be a better way to do that, please enlight me, Cheers :)

  • Hi,

    No, we have no recommended way of updating your local projects to new versions of the nRF Connect SDK.
    For some versions, we have migration notes, such as Migration notes for nRF Connect SDK v2.0.0.
    In addition, our Release notes might have some value in this regards.

    Generally you want to have your local projects outside of the nRF Connct SDK folders, right.
    For some projects, you do not need to change anything for a new release, and can just build the project again for the new version(remember to delete build folder first).
    If you need to make changes, it is up to you how you structure your projects. Here are some suggestions. Keep in mind that these are not necessarily good, I just list some to provide an overview:

    • Have your project in git and branches to keep track of your project for different versions of the nRF Connect SDK. (This is the one I would have chosen myself)
    • Have a folder structure, wit folders for different versions.
    • Just update your project to the newest version and never go back to the previous version

    Did my answer give you some more insight?

    Regards,
    Sigurd Hellesvik

Related