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.
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:
Please try it.
Best Regards
MayLiu