Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
749 Views

cannot printf "hello world"

hi: 

In niosII eclipse,We always bug our software using "printf" command,I make the SOPC system using CPU,SDRAM,JTAG_UART,other components,sometimes according to the requirment of project,I delete or add the "other component ",the base project is the altera demo. 

maybe the NiosII eclipse BUG, or maybe I overlook something,sometimes will generate puzzled results,though I have set stdin/stdout/stderr to JTAG_UART. 

the sad problem is "cannot printf " ,though I use the simplest NiosII temple,and there is no single warning or error in console window(as attachments),in attachment named "console.bmp",download successfully,but cannot printf "hello world" 

 

PS:the project is based on the old project which is OK,I only delect some components in SOPC.
0 Kudos
4 Replies
Altera_Forum
Honored Contributor I
71 Views

Hi, 

1. The lightweight libraries do not offer printf() function. Something like that. 

2. Are you sure you use jtag... for std_out in system library settings ? 

++
Altera_Forum
Honored Contributor I
71 Views

hi: 

thanks for your suggestion~! 

the setting I have checked,there seems no problem, 

the problem is always there,maybe I could find the reason later~ 

 

ps: may I ask you a question,that is : Have you ever used VIP demo? 

 

 

thanks a lot!~
Altera_Forum
Honored Contributor I
71 Views

 

--- Quote Start ---  

hi: 

thanks for your suggestion~! 

the setting I have checked,there seems no problem, 

the problem is always there,maybe I could find the reason later~ 

 

ps: may I ask you a question,that is : Have you ever used VIP demo? 

 

 

thanks a lot!~ 

--- Quote End ---  

 

 

No, I have never used VIP demo. 

 

For your problem, maybe the software doesn't start or doesn't boot. 

I know that after downloading to FLASH, the CPU is "paused" and I need to reboot the target board. This operation is normal.
Altera_Forum
Honored Contributor I
71 Views

yes,maybe you are right 

clear the NiosII eclipse,or build the software again ,it can print OK 

sometimes,I focus strongly on hardware !~
Reply