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: 
Explorer
Explorer
4,258 Views
Registered: ‎01-29-2014

No source available for "print() "

Hi everyone,

 

I am using microblaze and UART IO core connected to each other. in SDK when I have print("Hello World\n\r"); I got 

 

No source available for "print() "

 

can you help me out of this problem?

 

 

thanks

Meysam

 

0 Kudos
6 Replies
Xilinx Employee
Xilinx Employee
4,255 Views
Registered: ‎08-02-2007

Re: No source available for "print() "

Hi,

 

I am not sure if this is a message that is seen during running the application/debugging the application.

 

A quick fix is to replace print with xil_printf("Hello World\n\r"). This will get you moving.

 

Also try to include the header #include "stdio.h" while compiling the application.

 

Another fix is to replace print with printf("Hello World\n\r").

 

If these two checks do not solve the problem, attach your workspace.

 

--Hem

----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------
0 Kudos
Explorer
Explorer
4,237 Views
Registered: ‎01-29-2014

Re: No source available for "print() "

Hi, 

thanks for your prompt reply.

 

for Both (xil_prfintf and printf) I got the same error but my program is realy easy just 

 

#include <stdio.h>
#include "platform.h"
#include "xil_io.h"
void print(char *str);

int main()
{
u32 registervalue;
init_platform();

// Xil_Out32(0x40600000, 12002);
Xil_Out32(0x80000000, 0);

registervalue = Xil_In32(0x80000000);

printf("Hello World\n\r");

return 0;
}

 

but I do not know what I should do to prepare hyperterminal or something like that for Linux in computer side if you can help me I really appreciate it.

 

Meysam

 

0 Kudos
Xilinx Employee
Xilinx Employee
4,233 Views
Registered: ‎08-02-2007

Re: No source available for "print() "

Hi,

 

Can you share your workspace that you are trying to compile in SDK?

 

--Hem

----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------
0 Kudos
Explorer
Explorer
4,227 Views
Registered: ‎01-29-2014

Re: No source available for "print() "

PLease find the attached 

 

 

0 Kudos
Highlighted
Explorer
Explorer
4,223 Views
Registered: ‎01-29-2014

Re: No source available for "print() "

sorry please find it here

 

0 Kudos
Xilinx Employee
Xilinx Employee
4,208 Views
Registered: ‎08-02-2007

Re: No source available for "print() "

Hi

 

I think you are trying to debug the application and are getting this message.

 

Can you try the work-around mentioned here in the following link?

 

http://forums.xilinx.com/t5/Embedded-Development-Tools/No-source-available-for/td-p/184276

 

--Hem

----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------
0 Kudos