Article ID: 000075234 Content Type: Troubleshooting Last Reviewed: 09/22/2011

cout From MicroC/OS-II Task Does Not Send Data to stdout

Environment

    Quartus® II Subscription Edition
BUILT IN - ARTICLE INTRO SECOND COMPONENT

Critical Issue

Description

If neither printf() or cout is used from main() before tasks are started, cout does not work from a task.

Resolution

Add the following C code to the beginning of main():

std::ios_base::sync_with_stdio(false);

Related Products

This article applies to 1 products

Intel® Programmable Devices

1