Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12408 Discussions

Why I can not see the alt_printf("xyz") output?

Altera_Forum
Honored Contributor I
1,123 Views

I implemented following simple code on Max10 dev-board: 

 

 

--- Quote Start ---  

# include <sys/alt_stdio.h># include "system.h" 

 

int main() 

alt_printf("test..."); 

 

 

--- Quote End ---  

 

 

For some reason I can not see any output in the Console of the Nios-Eclipse environment. Maybe I need to re-direct the stdout in the nios-settings? If so where can I do that? 

 

thanks!
0 Kudos
1 Reply
Altera_Forum
Honored Contributor I
96 Views

Yeah, that definitely is weird. If you want to change where stdout is redirected, you can do that in the BSP Editor (Right click your BSP Project->Nios II->BSP Editor). The stdin, stdout, and stderr redirection options should be on the root node of the tree that pops up. By default, it should be connected to the UART/JTAG UART that you instantiated inside of Qsys. Another thing to try would be to include <stdio.h> and use the regular printf. I know the alt_printf is a dumbed-down version of the regular printf, so maybe the regular printf will work.

Reply