FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
5892 Discussions

cannot printf "hello world"

Altera_Forum
Honored Contributor II
956 Views

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 II
278 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 ? 

++
0 Kudos
Altera_Forum
Honored Contributor II
278 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!~
0 Kudos
Altera_Forum
Honored Contributor II
278 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.
0 Kudos
Altera_Forum
Honored Contributor II
278 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 !~
0 Kudos
Reply