Nios® V Embedded Processor Design Handbook

ID 726952
Date 7/08/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

6.1.2. printf() Debugging

An alternative to the debug module is debugging using a printf() statement. You can augment the targeted application with extra debug log messages printed through printf().

You can develop the debug log messages up to your preference. The key objective is to print as much information as possible.

Examples of the debug log message:
  • What is the running process, its inputs, and outputs?
  • When was the exact time the process ran?
  • Where is the information stored and acquired?
  • How is the software progressing?

You can instantiate a JTAG UART or regular UART in a Nios® V/c processor system to output character streams and read in character streams.

Note: Nios® V/c processor does not support Interrupt-driven UART implementation. Switch to poll-driven instead.
Note: You cannot use printf() from an ISR.