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

How to start programming in uKeil from scratch?

Hello, I am new to embedded world.

I wanna know that how do i create a new template/blank for programming in uKeil?

Right now, i directly open an example from the SDK folder but wanna know how to configure settings in uKeil for nRF51 dk board.

Images: When I run the ukeil for the first time:

image description

after that:

image description

Thank You in advance !

Parents
  • After you have installed Keil you need to install the DeviceFamilyPack from the Pack Installer:

    1. Open Pack Installer from Project -> Manage -> Pack Installer...
    2. Update the packs by clicking the green circle-arrows in the upper left corner
    3. Select "Nordic Semiconductor" in the left panel
    4. Then you will see several NordicSemiconductor packs in the right panel. Find The nRF_DeviceFamilyPack and click "Install"

    After that you should be ready to go. I recommend you to just pick an example and remove what you don't need rather than configuring a project from scratch, as it is easier, takes less time, and I don't see any downside with it. If you do want to start from scratch you can create a new project this way (forgive me if I have missed a step):

    1. Click Project -> New uVision Project, select the location and name for your project
    2. Then select the target device in the window that pops up, by expanding Nordic Semiconductor in the lower left panel, selecting the exact device you have (nRF51 or nRF52 variant, the different variants have different flash and RAM sizes).
    3. In Software Components, select CMSIS CORE by clicking the checkbox, and under Device, select Startup by clicking that checkbox.

    Now you have created your project created, and can add includes, all required defines etc. It is best to look at an example project to get this right.

Reply Children
No Data
Related