Wednesday, June 10, 2015

Getting started with ARM Cortex M4 - running your first project

As with every other new language/hardware, we start off with the hello world project. To do that, first open Kinetis Design Studio(KDS). Select File -> Import. In the Import wizard, select "Project of projects" -> Existing projects sets and click next. 


Browse the C drive to find the frdmk22f folder in the Freescale installation path. Find the hello world folder in the demo apps directory and open the kds folder. My installation path is as follows. "C:\Freescale\KSDK_1.2.0\examples\frdmk22f\demo_apps\hello_world\kds". Select the file named "hello_world.wsd" and import it into the project explorer of KDS. 


Now two different projects appear in the project explorer. Select the "kdsk_platform_lib_K22F51212", right click on it and select "Build project". The project should build successfully. If there is any problem, right click and select "Clean project" and then "Build project".


Now, right click on the "kdsk_platform_lib_K22F51212" project and select Delete. Do not check the "Delete project contents on disk" option. Now we have all our platform libraries built and ready. Next, right click on the "hello_world_frdmk22f" project and select "Clean project" and then "Build project". Now, the project should successfully build.

Next, we'll need to start a terminal window. I prefer putty. Figure out the com port of your development board to use in putty. Use 115200 kbps as the baud rate. Now, debug the project in KDS using GDB PEMicro debugger (Installing the debugger in KDS was already done in the previous post). Once in the debug perspective, press resume button. You should be able to see the output "Hello world!" in the terminal.



Cheers,
Vijay.

6 comments:

  1. Informative and interesting Blog! Beautifully written, as usual, I like the post. Thank you so much for nice sharing with us. Keep posting!
    SEO Company in Pune
    Digital Marketing Company in Pune

    ReplyDelete
  2. Taniya Escorts in Bangalore We are offers the best independent Bangalore escorts service. Book new Models & college girls at your home available 24*7.
    Independent Escorts in Bangalore

    ReplyDelete
  3. What a great online source of information about this topic. You have done great work. Keep continue to sharing such kinds of post. Keep it up.

    If you want to make custom website & application you can contact us on our Android App Development Company and Mobile App Development Company anytime.

    ReplyDelete
  4. Cloudi5 is the Web Design Company in Coimbatore. Cloudi5 offers so many services which makes business in next level. Cloudi5 services are digital marketing, social media marketing(SMM), landing page optimization, web development, website design, android app development, e-commerce web design, school management software, search engine optimization(SEO)etc
    Ecommerce website development in coimbatore
    Ecommerce website development

    ReplyDelete
  5. The scalability of your custom application is determined by the scope of your business. If the plan is to expand, you can specify the same to developers Mobile app development helps businesses to offer customers information regarding their business in more than one way. Mobile users demand intuitiveness, ease of use, and simplicity. A crucial strategy for success in developing an app is to ensure that the interface design isn't complex.

    ReplyDelete