- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
xil_printf
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-14-2012 08:15 AM
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?
Re: xil_printf
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-19-2012 10:23 AM
which version???
Research Fellow
University of Calcutta, India
Re: xil_printf
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-20-2012 12:31 AM
14.1
Re: xil_printf
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-22-2012 03:33 AM
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
Re: xil_printf
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-22-2012 03:51 AM
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
Re: xil_printf
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-22-2012 04:37 AM
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.
Re: xil_printf
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-22-2012 04:47 AM
Could you please paste here "your" declaration of xil_printf into stdio.h (and also that where did you put it)?
Re: xil_printf
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-22-2012 04:56 AM
void _EXFUN(xil_printf, (const char*, ...));
void _EXFUN(putnum, (unsigned int ));
void _EXFUN(print, (char* ));
Re: xil_printf
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-22-2012 05:08 AM
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.
Re: xil_printf
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-28-2012 02:49 AM
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.
Gareth
Embedded Product Applications Engineer, WTS











