This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Segger for Mac Copy Keil Project to Start

I am using Segger for Mac. I followed the tutorial on importing a Nordic example from the Nordic SDK 12.0 examples folder. It is the UART BLE Peripheral Example.

I got it all working and now want to start on my actual project.

I don't know about you, but I don't want to make my project in the examples folder for the SDK. I have a folder elsewhere on my computer for everything related to this project. It isn't anywhere near the Nordic SDK folders.

How do I easily create my new project as a copy of the BLE UART peripheral project in a totally different place?

All of the paths in things like preprocessor includes and the included files in the project are all relative to the examples folder.

There is a lot of ../../../../../.. etc

What do I do?

  • Hi Tony,

    I am afraid that you will have to copy the BLE UART project to your project folder outside the SDK folder and then add an absolute path to the source\header file paths instead of the relative path used by the default project.

    You can define a Project Macro in Segger Embedded Studio which points to the SDK folder, but you still have to modify the source\header file paths for each file individually.

    Best regards

    Bjørn

Related