Vous êtes sur la page 1sur 12

15CSE346: Embedded Programming

Lab 6: TM4C Microcontroller Environment set up

using Keil μVision 4
Name: Roll Number:

Part 1: Installation of Keil IDE

1) Go to https://www.keil.com/demo/eval/armv4.htm . Enter your contact

information with valid address, phone and email. Set your Company to your
school, your company as Amrita Vishwa Vidyapeetham. Set your devices
to TM4C123GH6PM. Fill in all fields of this form. It should not cost any
money, and you can select or not select whether you want email from ARM.

2) Click on the MDK474.EXE link, downloading the 590,659K file to your


Page 1 of 12
15CSE346: Embedded Programming

3) Execute the mdk474.exe file, installing the application some place easy to
find, like C:\Keil or D:\Keil. You will need to find the Keil directory because
the TExaS example files will be loaded into this same directory. This is the first

Page 2 of 12
15CSE346: Embedded Programming

Read license agreement, agree to terms, and click Next.

Select a place to install Keil (I choose D: because there was more room on the
computer on drive D) , and click Next.

Page 3 of 12
15CSE346: Embedded Programming

Update these fields with your correct information, and click Next.

Wait while it installs

Page 4 of 12
15CSE346: Embedded Programming

Deselect example projects (the examples will come later as part of the TExaS
installation), and click Next.

Page 5 of 12
15CSE346: Embedded Programming
Deselect ULINK Pro Driver V1.0 (the drivers you need will be installed later),
and click Finish.

The Release Notes contain links to information about the Keil development
tool. In this class we will demostrate the features you will need.

Now we have successfully installed Keil IDE !!!

Part 2 - Device Driver Installation for TM4C123GH6PM

1. Download the recent device driver directly from the developer

http://www.ti.com/tool/stellaris_icdi_drivers and place it in keil folder.
2. Open Device Manager in your system in Windows. After you plug in the Tiva
C series Launchpad, you will find 3 exclamation marks as shown below.

Page 6 of 12
15CSE346: Embedded Programming

3. Right click the In-circuit Debug Interface and click Update Driver

Page 7 of 12
15CSE346: Embedded Programming
4. Select Browse my Computer for driver software.

5. Now select the location where you had copied the recent stellaris device
driver folder.

Page 8 of 12
15CSE346: Embedded Programming
6. When it ask for the Installation as shown in the diagram, select Install.

7. Press Install and ensure you get the below window

Page 9 of 12
15CSE346: Embedded Programming
8. Press Close Button. Check whether the exclamation mark is changed to
Stellaris ICDI JTAG/SWD Interface.

Page 10 of 12
15CSE346: Embedded Programming

Ensure that all three exclamation marks on the In-Circuit Debug Interface are
changed to Stellaris drivers as shown below

Page 11 of 12
15CSE346: Embedded Programming

Part3: Executing a program in TM4C microcontroller

When first learning a new programming language it is tradition to begin by running a program
that outputs the message “Hello World”. Later you will write your own programs, but in this
lab you will run simply a program that we have written for you. The input and output on the
microcontroller comes from physical devices like switches and LEDs. Consequently, our
“Hello World” will ask you to push a switch and observe an LED. The purpose of this lab is to
work through the process of configuring the development system for the microcontroller board,
and to learn how we will be grading labs in this course.

Answer the following questions based on your observation

1. What was the difference that you observed between 8085 microprocessor and TM4C
microcontroller kit?
2. What happens during compilation process?
3. What happens during execution process? To which part of the memory is the code
4. What is the difference between execution mode and debugging mode?
5. The Disassembler window appears in Debugging mode. Which program converts your C code
into the assembly code seen in disassembler window?
6. Identify the possible registers in ARM programming model as seen in left panel of the Keil

NOTE: Get signed from the faculty after you complete the execution.

Page 12 of 12