freeRTOS hello world example is not working

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

freeRTOS hello world example is not working

跳至解决方案
1,387 次查看
bpanneer
Contributor I

 

Board: EVK-MIMXRT595

SDK Version: 2.15.0

MCUXpresso IDE Version: 11.9.0

I am using the above-mentioned setup and building the freertos Hello World example. I made sure that the RT595 board was connected to my laptop. 

<code>

int main(void) {

/* Init board hardware. */

BOARD_InitBootPins();

BOARD_InitBootClocks();

BOARD_InitBootPeripherals();

#ifndef BOARD_INIT_DEBUG_CONSOLE_PERIPHERAL

/* Init FSL debug console. */

BOARD_InitDebugConsole();

#endif

PRINTF("Hello World\r\n");

/* Force the counter to be placed into memory. */

volatile static int i = 0 ;

/* Enter an infinite loop, just incrementing a counter. */

while(1) {

i++ ;

/* 'Dummy' NOP to allow source level single stepping of

tight while() loop */

__asm volatile ("nop");

}

return 0 ;

}

</code>

I ran the application with the Debug option. The main function was invoked but I cannot see the PRINTF message anywhere on the screen. 

I suspected that a new terminal/console window would pop up and view this PRINTF message. Can somebody help me here and let me know the right way to run this application?

 

标记 (1)
0 项奖励
回复
1 解答
1,349 次查看
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @bpanneer,

The serial terminal does not open by default on MCUXpresso, but you can easily open it by selecting the Terminal window on the bottom part of the IDE, then clicking the "Open a Terminal Button" (or pressing Ctl+Alt+Shift+T on your keyboard), then selecting "Serial Terminal" and the Serial port of the i.MX RT before clicking OK:

EdwinHz_0-1707787938911.png

Once you do this, you can run the demo again or reset the device and you should be able to the the message printed on the Terminal window.

BR,
Edwin.

 

在原帖中查看解决方案

2 回复数
1,350 次查看
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @bpanneer,

The serial terminal does not open by default on MCUXpresso, but you can easily open it by selecting the Terminal window on the bottom part of the IDE, then clicking the "Open a Terminal Button" (or pressing Ctl+Alt+Shift+T on your keyboard), then selecting "Serial Terminal" and the Serial port of the i.MX RT before clicking OK:

EdwinHz_0-1707787938911.png

Once you do this, you can run the demo again or reset the device and you should be able to the the message printed on the Terminal window.

BR,
Edwin.

 

1,322 次查看
bpanneer
Contributor I
Thanks, @EdwinHz, I thought it would spawn some console. But when I opened the terminal it was running.
0 项奖励
回复