Getting the hands on an embedded project has always been exciting for me. So, here I am again with my blog trying to provide you with an easy to use guide for the Kinetis Design Studio 3.0.0 (KDS_3.0.0). Well, as you all know I am an intern at Freescale working for the first time on KDS, I will tell you what all we can do to start working on it with a perspective of a novice. But personally I feel KDS is one of the most encouraging IDE you can work on. So how do I start with my code for our NeoMatrix board? I am currently working with one of the demo codes for the NeoMatrix:
So, my first task is to write the code in KDS for the NeoMatrix_Demo. How do I do that? After opening the KDS 3.0.0, I need to go to File and select New and then Kinetis Project. You can see that the New Kinetis Project wizard appears once you click the File>New> Kinetis Project. Type a name and click next.
The Devices page appears the next. All I need to do is to select the board on which I need to work on, which is FRDM-K64F. I can click Finish at any step in the project wizard to save the project with the default settings. However, I recommend clicking Next to ensure that the project settings match your needs.
The Rapid Application Development page appears. This page can help me to configure Processor Expert for configuration and KSDK. Processor Expert is included with Kinetis Design Studio software, but KSDK must be installed separately. When the Kinetis SDK is installed, the default selection uses the Kinetis SDK. By default, Processor Expert is not selected. I already had the Kinetis SDK installed and thus I need not worry about the processor expert. I just had to click next.
The Target compiler page appears. I selected the GNU C compiler since I want the Kinetis Design Studio to build the code. After that I just clicked on finish.
After finishing this process the new project is ready for my use. I can now customize it by adding my own source code files, changing debugger settings, or adding libraries.
I was able to see the ‘test’ in my project explorer window. You can just click on that, select sources and select main.c
On selecting main.c, I was able to get a program with some initial commands written for my ease. I can easily write any kind of code within it and then continue to build the program.
Importing an existing project
Now apart from this there is another process which I would like to share with you all. If you already have a code which you might have downloaded from another compiler or somewhere else, you have the option to import it to KDS. To import the code to the Kinetis Design Studio just click on file and select import option from the dropdown: File > Import, after selecting import the import dialog appears.
Select existing Projects into Workspace from this dialog box and click on Next. The next option provided me with the dialog box that asked me to select a directory to search for an existing Eclipse project. I need to select root directory option next.
Now I needed to browse for the root directory that I need to open. This root directory can be located anywhere but to be on the safer side I saved my Neomatrix demo example with the other FRDM-K64F examples.
So now when I was asked to select the root directory I browsed as shown below:
After selecting the NeoMatrix_Demo, click OK and you will be able to select your project. This process is nearly done and you just need to click on Finish.
Now I realized that it is a good practice to close any of the other open projects you have in your project explorer before you build the NeoMatrix demo. The little arrow sign before the name of any projects shows that it is open. You can see that easily in the previous image. I just selected all the open projects and then do a right click on them and selected close projects.
Now you can see that we do not have any open projects in the project explorer.
After this I just selected my NeoMatrix_Demo and clicked on the little hammer shown in the toolbar. That hammer will build your project if it is correct and if there is some problem you can see that in the console window at the bottom.
So, when I tried to build my NeoMatrix_Demo project, I got something like this:
Oops!! Yes there they are and I am stuck now. I do need to debug these errors that we see and then only I will be able to run my demo. So, I will try to debug this and will be back with my next blog sharing all that I will be learning along the way.I will suggest that do browse to the new getting started process link for the FRDM-K64F for using KDS: http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=FRDM-K64F&tab=In-Depth_Tab
I also referred to the doc folder inside the KDS after installing the Kinetis Design studio.
I hope this blog will help you all in figuring out the starting process for KDS 🙂