DbgConsole_TryGetchar in SDK 2.9 iMXRT1062

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

DbgConsole_TryGetchar in SDK 2.9 iMXRT1062

959 Views
krzysztofglinie
Contributor I
I can't find DbgConsole_TryGetchar in SDK 2.9. Does it still exist? How can i implement non-blocking debug console without DbgConsole_TryGetchar and without Free RTOS?
0 Kudos
3 Replies

948 Views
Alexis_A
NXP TechSupport
NXP TechSupport

Hello @krzysztofglinie,

In the SDK, if you set the following define, the DbgConsole_TryGetchar should be available:

DEBUG_CONSOLE_TRANSFER_NON_BLOCKING

Best Regards,

Alexis Andalon

0 Kudos

927 Views
Nouchi
Senior Contributor II

Hello,

Actually no, because of a macro in fsl_debug_console.h :

#if (defined(DEBUG_CONSOLE_TRANSFER_NON_BLOCKING)) 
#error DEBUG_CONSOLE_TRANSFER_NON_BLOCKING should not be defined. Remove DEBUG_CONSOLE_TRANSFER_NON_BLOCKING from the project setting or defines.
#endif

 

Regards,

Emmanuel

0 Kudos

560 Views
Scrat
Contributor I

I had the same problem.

If someone happens to be in the same situation: 

I had to check the box "Enable Non-blocking mode" in the device configuration tool for the UART used for the console. Then I was allowed to set DEBUG_CONSOLE_TRANSFER_NON_BLOCKING then it worked.

Different MCU, different SDK, but it may apply to others also.

0 Kudos