AnsweredAssumed Answered

LOG(x) redirect from Semihost console to UART console

Question asked by Marcin Chelminski on Jul 17, 2019
Latest reply on Jul 18, 2019 by jeremyzhou

Good morning!


I am playing with one of the examples available for eIQ for i.MXRT1060.

For printing there are used as follows:

#define LOG(x) std::cout

and later in the code for example:

LOG(FATAL) << "Failed\r\n";

LOG(INFO) << "Some info message\r\n";


By default, text goes to Semihost console.

Any hints how to redirect the output to UART Console for example TeraTerm?

I have seen the way to go to Quick Settings -> SDK Debug Console -> UART Console but unfortunately it does not work in this example.


Any hints more than welcome! Thanks in advance!