Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Visitor
dm.pogrebnoy
Posts: 9
Registered: ‎05-12-2012
0

xil_printf

Hello. It seems that in new release of software several functions have been removed from library such as xil_printf(), putnum() and print(). Can anyone answer me why?

Super Contributor
rourabpaul
Posts: 149
Registered: ‎08-13-2010
0

Re: xil_printf

which version???


Research Fellow
University of Calcutta, India
Visitor
dm.pogrebnoy
Posts: 9
Registered: ‎05-12-2012
0

Re: xil_printf

14.1

Super Contributor
rourabpaul
Posts: 149
Registered: ‎08-13-2010
0

Re: xil_printf

have you executed these functions in your code?is there any error?
If you did not get any error msg then there must be some other problems. you can try sendbyte function

Research Fellow
University of Calcutta, India
Visitor
feti_kft2
Posts: 6
Registered: ‎05-22-2012
0

Re: xil_printf

Hy!

 

 

I just (today) updated from 13.4 to 14.1 and I can confirm the same "dissapear" of these functions. Same program yesterday was compiled succesfully today results in

 

error: ‘xil_printf’ was not declared in this scope

 

Visitor
dm.pogrebnoy
Posts: 9
Registered: ‎05-12-2012
0

Re: xil_printf

I had to manually edit stdio.h to obtain this functions, i.e. in object file this function exist, but do not declared in header.

Visitor
feti_kft2
Posts: 6
Registered: ‎05-22-2012
0

Re: xil_printf

Could you please paste here "your" declaration of xil_printf into stdio.h (and also that where did you put it)?

Visitor
dm.pogrebnoy
Posts: 9
Registered: ‎05-12-2012
0

Re: xil_printf

void _EXFUN(xil_printf, (const char*, ...));
void _EXFUN(putnum, (unsigned int ));
void _EXFUN(print, (char* ));

Visitor
feti_kft2
Posts: 6
Registered: ‎05-22-2012
0

Re: xil_printf

Ok, so I can confirm that it's "only" the stdio.h" which lacks of the declaration of the xil_printf function

 

A possible workaround for this is to paste the line 

 

void    _EXFUN(xil_printf, (const char*, ...));

 

into the stdio.h file.

Xilinx Employee
garethc
Posts: 50
Registered: ‎06-29-2011
0

Re: xil_printf

Hi guys,

 

As you have noticed the xil_printf(), putnum() and print() have been removed from the stdio.h header file and this is why you are getting the error. Howver they have been added to another header file and if you created a new simple project in v14.1 of the tools you can verify this with a simple helloworld example using xil_printf(), putnum() and print().

 

I am currently looking for the header file that store these declarations in v14.1 of the tools and I will update this post when I have found it.

Kind regards,
Gareth
Embedded Product Applications Engineer, WTS