Chapter 2

Developing Software for the Cortex-M Family

Abstract

This chapter guides you through installation of the Keil MDK tool chain for Cortex-M microcontrollers. A hands-on example also walks you through setting up the first project to build and debug an initial microcontroller program.

Keywords

MDK; STM32; Microvision; Arm Compiler; GCC compiler

Introduction

One of the big advantages of using a Cortex-M processor is that it has a wide and growing range of development tool support. There are toolchains available at zero cost up to several thousand dollars, depending on the depth of your pockets and the type of application you are developing. Today there are five main toolchains that are used for Cortex-M development (Table 2.1).

Table 2.1

Cortex-M ...

Get The Designer's Guide to the Cortex-M Processor Family, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.