Forum Discussion
Altera_Forum
Honored Contributor
15 years agoNois CPU halt at fprintf
hi,everyone: I have to output information by UART in my project, When program loaded from FLASH(EPCS),then CPU halt at fprintf(),so do with getc(),fscanf(),but not fwrite(). but it is ok in de...
Altera_Forum
Honored Contributor
15 years agoWell, the stdio functions will probably be buffering the output data until \n is output - so nothing will try to access the uart itself until then.
That probably means your uart either isn't configured properly (so the io cycles to it are stalling the cpu), or any interrupt service routine is misbehaving (looping or not clearing the IRQ line).