Altera_Forum
Honored Contributor
21 years agonew printf features?
First, some background. I am using MicroC/OS-II and one of my tasks (the start task, if it matters) does the following:
for (;;)
{
OSTimeDly(OS_TICKS_PER_SEC * 2);
printf("CPU Usage = %d\n", OSCPUUsage);
} I use this mainly as a sanity check to make sure that something is running. I recently switched to Nios II 1.1. After this, some strange things started happening to my boards. LEDs would light for no reason, switches would be read for no reason. After some investigation, it seems that printf is writing into memory. Were there any changes made to the printf functionality? I am using the jtag uart and all output is directed to the jtag uart. Any ideas?