In this blogpost we will demonstrate the usage of Keils integrated command line functionality. We will start nrfjprog through Keil bindings in order to erase our chip and program SoftDevices.
nrfjprog is a command line tool that Nordic provides, which allows for easy flashing and erasing of firmware onto our chips. This command line tool is automatically installed as part of installing the MDK for each version of the SoftDevice.
Start off by downloading and installing the command line tools executable. I will base this blogpost on SDK 11, if you are using a different SDK version, the file structure might be different.
Open the command line and type:
This will list the different input parameters and other help documentation. If the command line reports that it cannot find the program follow the instructions below in Adding PATH Variables.
Sometimes nrfjprog.exe will not be added to PATH by default, this is how to do it manually. If you are looking for more information on what the PATH variable is, please consult this answer at Superuser.
Navigate to environment variables by:
Pressing: Win+Break or
Opening Control Panel >> System >> Advanced >> Environment Variables or
Right-clicking My Computer and click on properties
Then click on Advanced system setting
Click on Environment Variables...
Add the variable to path by clicking the Edit... button
Then add nrfjprog by adding ´;C:\Program Files (x86)\Nordic Semiconductor\nrf5x\bin´ to the end of the variable value for PATH. Make sure that you add a ; between entries in PATH values, i.e. path1;path2.
Then press OK. Now you will be able to see the help dialog when you type nrfjprog --help in a new command line.
Keil lets you add command line tools directly into the IDE, this makes flashing and erasing a lot quicker, since you only need to use one program.
Start off by opening the Customize tools menu by:
Next we will create a new tool. Press the new button highlighted below.
Our first tool will be called eraseall. It will run the command nrfjprog with the arguments --eraseall.
After clicking OK, our new command will show up in the Tools drop down menu. When you press Tools >> eraseall, you get the following build output on a successfull erase:
If you are using nRF52 you will have to specify --family nrf52 as an additional argument, like this:
It is also easy to program SoftDevices this way, start by opening the customize tools menu and creating a new tool, like we did for eraseall.
The parameters are:
I chose to call my tool program_sd130, however you can call this anything you like.
After pressing OK and starting my tool via Tools >> program_sd130 I see the following build output on successful programming:
This is just a small example of what you could use command line integration in Keil for. If you encounter any difficulties or have some feedback, please leave a comment below.
Everybody loves most of the conversations, We really skilled, I would choose more information when it comes to this particular, because it's amazing., Along with because of obtain distributing. quora
Wow! What an eye opener this post has been for me. Very much appreciated, bookmarked, I can’t wait for more! Roberto Hroval
There are particular dissertation websites that are online via the internet once you reach evidently published as part of your world wide web page. BENYDRYAL
This is actually at the same time an extremely excellent submitting we all significantly knowledgeable seeking by means of. It really is definately not on a regular basis we've chance to see a little. Michelle Poonawalla
Nkosi Agro Farms Pty Ltd, is an SQIS approved isolation centre owned and operated by us. Operating our own pre isolation facility means we can process any international livestock order totally in house, making the process less complicated and more cost effective for you the client. Ostrich eggs for sale