UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 30700

10.1 EDK - SDK Debugger stalls on printf ()

Description

When I debug a C program with SDK, it works fine as long as no "printf()" function is used in the code. However, as soon as there is a "printf()" function used the debugger stalls; that is, it does not reach breakpoints, but runs infinitely.

This problem does not occur with "xil_printf()". Note also that even with "printf()", the code runs fine, it just does not debug.

Solution

This is a problem with the SDK debugger.

There are two ways to work around this issue:

#1:

Use xil_printf () instead of printf (). For the differences in functionality, see (Xilinx Answer 19592).

#2:

Use GDB to debug the software.

AR# 30700
Date Created 10/02/2008
Last Updated 12/15/2012
Status Active
Type General Article