This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to create a project from a sample with nRF Connect SDK and SES?

How can I create a new nRF Connect SDK project from a sample using Segger Embedded Studio?

My idea is to get the settings and libraries right, but replace the actual application code with my own.

With VS Code it's easy, because you can create an application using a sample as an application template, but it looks like with the SES there is no such possibility.

I have also tried copying a sample to another directory, but the configurations/settings-jungle has overpowered me.

I could use VS Code, but that would be tough. VS Code-version doesn't seem to work too well - at least on my (Windows-)machine.

  • Hi,

    In order to create a new sample in SES, you can open the nRF Connect for Desktop Application on your PC, navigate to "Toolchain Manager". Then go to your required version, say you want v1.9.1 then select the "Open SEGGER Embedded Studio" option beside the version:

    This will take you to SES and there, you can navigate to "Files" in the top left corner and select "Open nRF Connect SDK Project...". This will take you to the page where you can select your sample, DK and build details. 

    We also have a beginners tutorial where you can find more details regarding the same.

    Regards,

    Priyanka

  • Yes, I can compile, but the application sources remain in the SDK. Just the build directory is created. Also, the "add new file to CMakeLists.txt" doesn't seem to work. I'd like to be able to put just the application code to a version control repo - not the whole SDK. Also, I don't want to break the samples.

  • In the VS Code version, it's easy, when you can give the project name and application location (the application really goes there) and give a sample as a template.

  • Aha, it works, if you add the CMakeLists.txt and .prj-file manually!

    The "Open  nRF Connect SDK project" then accepts that directory as a project.

Related