This guide is the second in a collection of related guides:
- Building your first embedded image
- Retargeting output to UART (this guide)
- Creating an event-driven embedded image
- Changing Exception level and Security state in an embedded image
This guide shows you how to modify the output mechanism to use the UART capability of the target system.
In Building your first embedded image, we relied on semihosting to handle the output from our embedded image. In this guide, you will modify the output mechanism to send output to a UART serial port. This is useful to know, because embedded systems often have limited display capabilities, or no display capabilities. However, during the debug process it is often useful to be able to print diagnostic messages while a program is running.