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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

634 次查看
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++;
    }
}

标签 (1)
0 项奖励
1 回复

512 次查看
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 项奖励