Help migrating from NRF5 SDK to NRF Connect SDK

Hi, I have a fully functional software running on a NRF module. The application is built on a nrf5 sdk. I would like to migrate the entire application to NRF Connect SDK. Is there a document or anything from where i can get help to understand how this is done ? Can someone help me ?

  • Hi  

    No problem. I will share my journey here. It is not easy but it is doable. I completed my project. I had to rewrite a major portion of code but here are a few tips.

    The first thing that I did was to find a sample application from the new SDK that best resembled the working of my intended application.

    My original application (built on the old SDK that I wanted to migrate) was a BLE application. So I found a BLE application included in the new SDK that worked almost the way I wanted my new application to work. In my case it was the BLE peripheral UART example. Once I got that working on my DK, I went through the sample code and the older SDK code, trying to compare and find similarities. I did find SOME similarities. Some kernel functions were obvious with their similar names.

    For other functions and system calls, visual studio helped me. With intellisense enabled, I could get some suggestions. Sometimes the suggestions were crap but sometimes i used to get a lead and googling it helped me find more about that or similar.

    The devzone also helped me considerably with my queries. They were super helpful. So use this forum to clear your doubts.

    These are the steps that worked for me. If you have any other questions, let me know and I will help you if I can.

    Good luck with your application.

  •  , thanks for your reply, and suggestions. Appreciate it.

    Earlier you mentioned:  "I used a the buttonless dfu in nrf5 (ble_app_buttonless_dfu ) but I cannot find a similar example in NCS"

    Is there a close cousin to 'ble_app_buttonless_dfu' in nrfConnect SDK? Or am I asking a question that is not applicable to the new SDK?

  • Hi , I ended up using MCUboot as my bootlloader and used OTA to update my firmware. That is essentially the same thing as DFU, or at least that is what I understood from reading the documentations.I cant remember if I saw a sample of that. But I think I just read the documentation and implemented the steps as told.

     Going through this page and it's child pages helped me gain a better understanding of the SMP service and the choices that I had. Those pages also talks about implementing that service. It is just a matter of few lines in prj.conf if I remember it right. What they dont mention in the pages,I believe, is that we have to download another android application (NRF Device manager) to use the SMP service (the BLE service that enables the OTA updates)

      please correct me if I am wrong here. I am just sharing what I understood and worked for me.

  •  Hi  , thanks again for kindly sharing the information.

    I plan to work with NRF52 series, and I find  NRF52 page useful

    This page also talks about FOTA updates, and plan to explore the info there..

    Hopefully   can share his thoughts as well

Related