Цитата
Program output can appear in the Console view of the Nios II IDE. The Console view maintains a terminal I/O connection with a communication device, such as a JTAG UART, connected to the Nios II processor in the SOPC Builder system. When the Nios II program writes to stdout or stderr, the Console view displays the text. The Console view can also accept character input from the host keyboard, which is sent to the processor and read as stdin.
Т.е. вроде бы можно в консоли набрать данные и получить их в программе ниос через STDIN.
пишем
Код
char sss[5];
fgets (sss, 1, stdin);
if (sss != NULL)
fprintf (stdout, "sss = %s", sss);
fgets (sss, 1, stdin);
if (sss != NULL)
fprintf (stdout, "sss = %s", sss);
Пишу чё-нибудь в консоли, при этом sss всегда NULL. В bsp STDIN/STDOUT настроены на jtag-uart. fprintf работает без проблем.
ЧТо-то не так делаю?