Lesson 07: Create an ARM C Application with Keil μVision MDK-ARM

In This Lesson

In this lesson, you will create your first C application with the Keil µVision MDK-ARM development system and learn the basic project workflow — from creating a project all the way to downloading and debugging it on the TI Tiva LaunchPad.

After completing this lesson, you will be able to:

  • Create and configure a new C project in Keil µVision.
  • Set up the Stellaris ICDI interface for debugging and flash programming.
  • Add MyDefines.h, main.c, and the ezTivaLIB library to your project.
  • Build, download, run, and debug the application on the board.

Prerequisites

This lesson works with both the TI Tiva LaunchPad boards used in this course:

  • EK-TM4C123GXL (TM4C123G)
  • EK-TM4C1294XL (TM4C1294)
⚠️ Before you start
You must install Keil µVision MDK-ARM and the TI Tiva LaunchPad USB drivers before creating a project. If you have not done this yet, please complete Lesson 01: Installing Software and Drivers first.

Set Up the Project Folder Structure

Before creating the project, prepare a clean folder structure. On your Windows desktop, create a folder named EE3450, then add the sub-folders shown below:

EE3450/                (course root, on the Desktop)
├─ Common/             shared headers (e.g. MyDefines.h)
├─ ezTivaLIB/          the ezTiva library source
├─ Lab01/              one folder per lab / project
├─ Lab02/
└─ ...
Folder Structure

Keeping Common and ezTivaLIB outside the individual lab folders lets every lab share the same headers and library, rather than duplicating them in each project.

We do not recommend creating the workspace in the directories that are synced with OneDrive due to this known issue ​​ in OneDrive.

 

Steps in This Lesson

  • Step 1 — Create a C/C++ Project
  • Step 2 — Add MyDefines.h and the Common Folder
  • Step 3 — Add ezTivaLIB
  • Step 4 — (Optional) Use TivaWare Software/Library
  • Step 5 — Set Up the Debug Method (choose Simulator or Target Debugging)
  • Step 6 — Add main.c
  • Step 7 — Build the Application
  • Step 8 — Download and Run the Application
  • Step 9 — Debug the Application

Note: Steps 1–5 and 7–9 are required for every lab project. Step 6 is optional and only needed if you plan to use TI's TivaWare driver library.

© 2026 Air Supply Information Center (Air Supply BBS)