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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

621 Views
theodortempelme
Contributor I

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++;
    }
}

Labels (1)
0 Kudos
1 Reply

499 Views
Carlos_Mendoza
NXP Employee
NXP Employee

Hi Theodor,

The Console IO support will only work if there is an active debug session, when you hit 'Run' the application code gets downloaded and the application gets started, in this case, I would recommend that you use the UART support instead.


Hope it helps!

Best Regards,
Carlos Mendoza
Technical Support Engineer

0 Kudos