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!

cancel
Showing results for 
Search instead for 
Did you mean: 
Adventurer
Adventurer
8,587 Views
Registered: ‎03-15-2011

amp setup => no printf possible?

Hi all

 

I'm using the zybo board in an AMP configuration (Linux - Baremetal). It seems to be impossible to use a printf statement on the baremetal code, as I get errors such as "undefined reference to _write / _close / _read"

On the other hand, a xil_printf statement works flawlessly. Is there something inherently different between the both? I'd like to use the printf statement for floats, which a xil_printf can't print...

 

Thanks!

0 Kudos
1 Reply
Observer ajcurtis84
Observer
7,443 Views
Registered: ‎04-04-2016

Re: amp setup => no printf possible?

What version of the AMP and the SDK are you using?

 

If you are using OpenAMP, there is a proxy demo which redirects stdio to an application on the Linux side which then handles the I/O to the console. I suppose the other way is to assign the UART to the bare metal application.

0 Kudos