Altera_Forum
Honored Contributor
15 years agostdout device issue
Hi,
I've scoured the forums but have not found a thread which solved a similar problem I'm having (although threads discussing similar symptoms exist). I sincerely hope someone can point me in the right direction here. The basic problem I'm dealing with is (detail to follow): *I cannot write to any UART in my system with printf() or alt_printf() unless I have the following set: 1) use small C library 2) use reduced device drivers When both options are set, I can transmit characters successfully via any UART set as stdout. When only 2) is set, the uart does not work at all and when only 1) is set and a printf() executes, not all characters are displayed while some are swopped and some are repeated. Some background: I am in the verification stage of a custom board with a EP3C25 device. Currently I'm running a basic SOPC builder system (nios II cpu, jtag uart, standart uart, sram controller, pio) and I'm using the Hello World example app to test. I've verified that stdout, stdin and stderr are set in the bsp settings and in all cases the application and bsp build without errors or warnings. In the case where nothing is printed on stdout, I know the code runs as my LEDs keep toggling and I've run a debugger on the code -though I couldn't make out much of the internals of the printf() routine while debugging. Other code I'd like to use does not compile when the options listed above are set, so I'd like to sort this issue out, any hints? Regards, DB