Tuesday, 30 January 2018

ARM programming 2: Creating New C file project in Keil 5

Creating New C file project in Keil 5

I assume that Keil 5 is already installed. 
if not download the IDE. It will ask to fillout form. It will take not more than 5 minutes. LEt us jump into 1000ARMS. Below are the steps.

Steps

Open Keil Application. Go to Project --> New uVision Project


Create a New folder. Let us call the new project as FirstProj. Save it


Choose the MCU. Since, it is STM32L4764G on Nucleo board, choose the same


In this Window, select two basic files to be attached to the project. CMSIS Core contains definitions of all registers of the selected MCU. Startup file is the preprogram which runs before control enters main program.It takes care of memory allocation, variable definition and other stuff.


Collapse Target 1


Right Click on Source Group and select Add new item


give your C file a name. let us say project.c


double click the project.c file just added to write some code


write some code


build the code. No errors :)


Let us tell Keil which board we have and settings we wish to use


go to Debug, select ST link debugger. ST link debugger is the second MCU on the board close to USB connector, which takes care of programming our actual MCU of interest and also helps in debugging.


Just the properties view of ST link programmer we have selected


Click on Debug to enter Debug mode.


If you are reading this post, probably you will get this too. Ignore.


Build output Window. Notice, Erase and programming has happened successfully.


To execute code step by step


viewing variables just to verify.
If you are able to program and verify this the code, Congratulations! Please leave comments if you find there is an error on the blog or if you are facing some problem. Do not worry if you did not understand each and every step. I too do not know much. Further posts will gradually help us learn more.



--
This a post which is a part of mission 1000 ARMs which is to empower the author to be able to write 1000 ARM programs

3 comments:

  1. While there are countless programming dialects, a considerable lot of them have a ton of similitudes; this implies once you learn one language very well, much of the time you will have the option to get another one far snappier.
    excel vba training london

    ReplyDelete
  2. The advancement of new technology has been taking place since the beginning of human history. The question: are the impacts positive or negative? programming assignments

    ReplyDelete
  3. Tritanium Dog's teeth implants for new generation with
    Tritanium Dog's teeth are the epitome of teeth quality! It is the perfect treatment titanium (iv) oxide for titanium ring men who love to be as young as how much is titanium worth ten. Tritanium titanium mug is the titanium sunglasses best bone

    ReplyDelete

ARM Programming 5 - Placing key variable in custom Flash Memory Location

How to Place a variable in custom location of MCU internal Flash Memory? Now, it is getting interesting. We were able to place the RAM v...