Forum Discussion
Altera_Forum
Honored Contributor
15 years agoPrintf stop to work only into one task
Hello, I have a problem with printf function. I have seen the other post about it but I am not sure it's the same issue. I have a board with a stratix and so nios II. The software has mult...
Altera_Forum
Honored Contributor
15 years agoIIRC the UART input/output functions aren't thread safe. If you have several tasks that attempt to write to the JTAG uart at the same time you can have a crash. It's better to either use a mutex when writing to prevent several tasks from doing it at the same time, or do all the printing from a single task.