Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Create a new blank project with Nrf5 SDK

Hello Everyone

I want to create a new project from scratch with nrf SDK 17.
Yes , I know that I need to install libraries, drivers, service files etc. but I couldn't find a solution to this problem .

Do I have to use templates? Isn't there an easier way to ?

Thanks

Parents Reply Children
  • With SES, I would suggest the same method I work with:

    - I structure the project in such as way that nrf5_sdk is a separate repo and mapped as a submodule to the main project repo.
    - I have all my libraries (hal, drivers, etc) related to this project in a separate folder like "xxx_sdk"

    Now for the main course.

    Take any sample project from nordic examples folders, which seems to resemble your target project as much as possible.

    copy and rename the "emProject" file to what your repo name or main project name is.

    open the emProject with a good text editor (like notepad++ in the case of windows), and find and replace the following:

    - All references to NRF SDK files, instead of all the "../.." ... will now simply be "nrf5_sdk/..."

    - Put your main.c inside the main project folder name and use like:

    <folder
    Name="src"
    exclude=""
    filter=""
    path="project_folder_name"
    recurse="Yes" />

    this will simply auto scan the folder for files for you.

    Once you have that, you can easily start to clean (remove) or add (a reference) to nrfx or other libraries from inside the SES UI.

Related