Chapter 3

Cortex-M Architecture

Abstract

In this chapter, we will cover the key features of the Cortex-M processor family and how to use them in your application code. Once you have worked through this chapter and the previous chapter, you will be able to write code for most Cortex-M-based devices.

Keywords

Cortex-M; Cortex-M0; Cortex-M0+; Cortex-M3; Cortex-M4; Cortex-M7; Thumb-2; PSR Program Status Register; BASEPRI; FAULTMASK; SysTick; NVIC; BitBand; Saturated maths

Introduction

In this chapter, we will have a closer look at the Cortex-M processor Architecture. The bulk of this chapter will concentrate on the Cortex-M3 processor. Once we have a firm understanding of the Cortex-M3, we will look at the key differences in the Cortex-M0, M0+, and M4. ...

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.