Altera_Forum
Honored Contributor
9 years agoNiosII printf() not printing correctly
Hello,
(Summary: problem was narrowed down to divide not working correctly, how to fix it, i do not know.) I am setting my first steps in Nios II, using a DE0-CV, Quartus 15.0, Qsys, Eclipse. The following program: (derived from the wizzard generated hello world, not small version) int main() { printf("0x%x %d\n",1,1); printf("0x%x %d\n",10,10); printf("0x%x %d\n",16,16); return 0; } generates as output: 0x1 1 // OK 0xa 11 // should be 0xa 10 0x11 11 // should be 0x10 16 i do not have any clue what can cause these very strange results. Please help. John.