freeRTOS hello world example is not working

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

freeRTOS hello world example is not working

Jump to solution
1,569 Views
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?

 

Tags (1)
0 Kudos
Reply
1 Solution
1,531 Views
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.

 

View solution in original post

2 Replies
1,532 Views
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,504 Views
bpanneer
Contributor I
Thanks, @EdwinHz, I thought it would spawn some console. But when I opened the terminal it was running.
0 Kudos
Reply