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

Starting a new nrf52 project in kiel

Hi all, I've always been a CSR developer and recently been asked to develop on the Nordic chip. The example code makes sense to me and its not to different to the CSR code. however, it seems impossibly convoluted to just start a new project, for example in CSR I would click new project -> minimal project and this would give me a suitable blank project.

When I click new project in Kiel I am asked to select a target device which makes sense, then I am presented with an incomprehensively large list of software components!?!? How do I know which to select for my project? Once I select the components I think I need then I'm presented with a project that doesn't compile and is missing main.c etc.

Surely there must be a default blank project I've scoured lots of PDF's about this and not really got the right information. One document mentioned copying an example project and renaming it? seems a bit impractical to me.

What I am most concerned about is I was told in confidence that Nordic is easier to develop on than CSR?!?! So I must be missing something because I was up and running in half the time with the CSR kit.

  • Hi,

    Which SDK version are you using? For NRF52 you should be using the nRF5 SDK v11.0.0: infocenter.nordicsemi.com/index.jsp

    Note that Keil CMSIS Packs have been deprecated in favor of everything in a single ZIP file starting with v11.0.0.

    After you download and unzip the SDK, you can find many examples in the examples folder along with their respective Keil and IAR project files with everything already set up to compile and run.

    If you want a "blank" BLE project to start with you can take a look at the "ble_app_template" project in "/examples/ble_peripheral"

    If you don't want to start with BLE there is also "template project" in "/examples/peripheral"

    Hope this helps.

  • James, thank you for your reply. So, yes I have downloaded all of the appropriate tools and SDK's and I am able to compile and run the examples from the examples folder but, I need to be able to create stand-alone as the projects I work on can't work from the example folder. When I copy the ble_app_template folder to a new directory this is where all my issues arise, Screen Shot If I manually change the file locations they work but then their file dependencies with the file dependencies fail? Somebody on the forum mentioned using the 'manage run time environment' option to import dependencies but again this seems to be esoteric as I dont know what I should be selecting and half of these options go yellow or red and when I click resolve nothing happens.

    I Just feel like this is far to convoluted to start a new project, am I doing something wrong?

  • You also need to update all your project include paths under the "C/C++" tab in project options.

  • After much tweaking yes, I finally got the project to compile - I had to adjust the includes paths to match the new project destination in both the includes (C/C++ tab) and edit the path of each separate file in the nrf_XXX folders in the project explorer. A bit tedious but got there in the end. Thank you for your support.

Related