Chapter 18

Input and Output Software Examples


This chapter looks into common tasks in microcontroller projects, such as handling printf message and user inputs. Topics covered include re-targeting and semi-hosting in various tool chains including Keil® MDK-ARM®, IAR EWARM and gcc.


Semihosting; retargeting; printf; peripheral; display; printf; ITM; trace; Serial Wire Viewer (SWV)

Chapter Outline

18.1 Producing outputs

In the last few chapters we have demonstrated simple programs that toggle LEDs on a development board ...

Get The Definitive Guide to ARM® Cortex®-M3 and Cortex®-M4 Processors, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.