AnsweredAssumed Answered

Console_IO only working in "Debug" mode, not in "Run" mode

Question asked by Theodor Tempelmeier on Nov 21, 2017
Latest reply on Dec 6, 2017 by Carlos_Mendoza

Hi,

I have CW 10.6, Coldfire M52259DemoMCU, standard main.c as shown below.

When I run it in the debugger, the output in the console window is as expected.

So I guess, basically everything is set up correctly.

But when I run it directly ("Run"), then not output can be seen in the console window.

Both, the run configuration and the debug configuration are at Console_RAM_OSBDM.

 

How do I get Console_IO in "Run" mode?

 

Thanks for an answer!

 

Regards Theodor

 

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/*
 * main implementation: use this sample to create your own application
 */

#include "support_common.h" /* include peripheral declarations and more */
#if (CONSOLE_IO_SUPPORT || ENABLE_UART_SUPPORT)
/* Standard IO is only possible if Console or UART support is enabled. */
#include <stdio.h>
#endif

 

int main(void)
{
    int counter = 0;
#if (CONSOLE_IO_SUPPORT || ENABLE_UART_SUPPORT)
    printf("Hello World in C++ from MCF52259 derivative on MCF52259 board\n\r");
#endif
    for(;;) {       
           counter++;
    }
}

Outcomes