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

Starting clean nRF52 Embedded C++ Segger Embedded Studio project

I am starting to refactor some nRF52832 code, from an Embedded C++ Eclipse based project, into a new Segger Embedded Studio project.

All of the videos I have found rely on using an example from the nRF5 SDK. However, I want to start a clean project that uses the nRF5 SDK and to which I can gradually refactor and add my current code. 

Does anyone have a an example where they started a clean C or C++ project in Segger Embedded Studio which shows the nRF5 SDK linking and project settings they used?

Thanks,

Matt

Parents
  • Hi Matt!

    I'm not quite sure if I understand what you are trying do to.

    I want to start a clean project that uses the nRF5 SDK

    What do you mean by this? Do you want to start a new project and add all the settings and files from the SDK yourself?

    I would say that using an exsisting project from the SDK would be the easiest way to go. You can pick the example that is the closest to what you are trying to acheive and modify that to fit your needs. Either that or using the ble_app_template which, as the name suggests, can be used as a template for your project.
    In the ble_app_template example you have to add most of the code yourself, like services, characteristics, timers etc.

    Please let me know if I misunderstood you in any way.

    Best regards,
    Joakim.

Reply
  • Hi Matt!

    I'm not quite sure if I understand what you are trying do to.

    I want to start a clean project that uses the nRF5 SDK

    What do you mean by this? Do you want to start a new project and add all the settings and files from the SDK yourself?

    I would say that using an exsisting project from the SDK would be the easiest way to go. You can pick the example that is the closest to what you are trying to acheive and modify that to fit your needs. Either that or using the ble_app_template which, as the name suggests, can be used as a template for your project.
    In the ble_app_template example you have to add most of the code yourself, like services, characteristics, timers etc.

    Please let me know if I misunderstood you in any way.

    Best regards,
    Joakim.

Children
  • Hi Joakim,

    That was what I was wanting. I looked at the ble_app_template, but decided it wasn't really what I needed. One big difference is we are using C++.

    We already have C++ code we have written in Attollic, before they were bought by ST Micro, so we are trying to refactor it over into Segger Embedded Studio. 

    Also, I am using the Mac OS version of SES. Do you know if their are plans to build in a better configuration wizard, like the one in Keil, into SES? I used the CMSIS Configuration Wizard earlier in Windows, with Attolic, but it leaves a lot to be desired. Also, currently I am having difficulty getting it to work as an external tool in SES. 

    Thanks,
    Matt

  • Ok, then I'm not sure if we have any example/tutorial that will suit your needs.

    The examples we provide can be found in our SDK, or on one of Nordic Semiconductor's GitHub accounts (Nordic Semiconductor / Nordic Semiconductor Playground).

    As for the configuration wizard, I can check with SEGGER if that is something they are working on implementing.
    In the meantime, I would say the CMSIS Configuration Wizard is the best way to go.

    matt_C said:
    Also, currently I am having difficulty getting it to work as an external tool in SES

    Could you try to explain a bit closer what the problem might be?
    We have a infocenter-page with explanations about how to set up the CMSIS CW. Also, you can check out our youtube-video explaining the same thing.

    Best regards.

Related