Nios® V Embedded Processor Design Handbook

ID 726952
Date 5/13/2024
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.