2336407_en-US

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

2336407_en-US

2336407_en-US

Need help undestand how debug_console works

Hi everyone,
I need help understanding how the debug console works.
In projects without FreeRTOS, PRINTF outputs data to the UART immediately.
In FreeRTOS projects, PRINTF works only after the vTaskStartScheduler() call.
I understand that, but I'm trying to get these 2 senarios works:
 - PRINTF enabled before FreeRTOS activation in bare metal and in FreeRTOS mode after activation
- PRINTF anabled always in bare metal mode in a Project that use FreeRTOS.

I don't understand how to switch between FreeRTOS and bare_metal mode.

I've tried changing many defines, like DEBUG_CONSOLE_SYNCHRONIZATION_MODE and SERIAL_MANAGER_NON_BLOCKING_MODE without success. I alway get uart stuck or code that not compile.

I'm using last SDK 25.12 with edge-fast bluetooth examples like: evkmimxrt685_a2dp_sink_cm33.

Is there a simple but complete explanation of how this is supposed to work?
Thanks in advance.

i.MXRT 600Re: Need help undestand how debug_console works

Hi @katte82 ,

Thank you so much for your interest in our products and for using our community.

I think the behavior you are experiencing is expected in MCUXpresso SDK FreeRTOS projects. 

Please try the method in below Fig:

Snipaste_2026-03-20_18-38-14.png

 

Please try it.

Best Regards

MayLiu

Tags (1)
No ratings
Version history
Last update:
‎03-21-2026 02:28 AM
Updated by: