Forum Discussion
Altera_Forum
Honored Contributor
21 years agoMicroC/OS-II hangs after printf in main
I have a simple system made with Q4.2sp1, Nios II v1.1 running MicroC/ OS-II. Running entirely on-chip from rom code and on-chip ram. Uart is rs232 servicing all three stdio's. Periodic ti...
Altera_Forum
Honored Contributor
21 years agoThanks for the suggestion.
<div class='quotetop'>QUOTE </div> --- Quote Start --- Labrosse (author of uC/OS-II) suggests that one shouldn't start tasks from within main, but rather from within a task. This would also fix your problem. The reason Labrosse suggests it, is because the statistics task won't work properly if the tasks are started before OSStart.[/b] --- Quote End --- If thats the recommended way of building a system, and who should know better than the author, the sample applications created by the NIOS II IDE environment ought to be updated to reflect this detail.