Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

help me again!

Altera_Forum
Honored Contributor II
982 Views

#include <stdio.h> 

 

int main() 

printf("Hello from Nios II!\n"); 

 

return 0; 

 

 

nios2-terminal: connected to hardware target using UART on /dev/com1 at 115200 b 

aud 

nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate) 

 

 

 

then output something that i can not understand. 

i use on chip ram and rom
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
291 Views

In this case, the standard output goes on the UART... I suppose you are using the standard example from Altera... is that right? 

 

the terminal is simply waiting for some data that does not arrive... 

 

Just a few questions: 

- did you connected a serial cable from the UART of the eval. board to your host PC? 

- are you debugging or running your application? if yopu are debugging it, the nios II IDE stops just before the printf... so no output will arrive until you let the code run... 

 

bye 

 

PJ
0 Kudos
Altera_Forum
Honored Contributor II
291 Views

U can use it through software handbook for referrence

0 Kudos
Reply