MCUXpresso SDK API thread safe

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

MCUXpresso SDK API thread safe

880 Views
grzegorzkonopko
Contributor III

Dear community members/ NXP supporters

1. Is a API of MCUXpresso SDK thread safe, e.g.: I would like to use DbgConsole_Printf() from interrupt routine but there is nothing about in documentation: (MCUXpresso SDK API Reference Manual: Debug Console )

From code inspection seems it is not possible, however it is good idea to ask

2. what is general recommendation of using SDK API in threads environment (not RTOS only, very general), I can not find any guide yet and documentation (which API is safe, which is not)

3. What is recommended for new design, MCUXpresso SDK or Kinetis SDK?

0 Kudos
1 Reply

591 Views
jorge_a_vazquez
NXP Employee
NXP Employee

Hi grzegorzkonopko

Answering your questions:

1. Actually the fsl_debug_console are already thread safe, if you check the code in DbgConsole_Printf() in our latest SDK, you will find some APIs like LOG_TAKE_MUTEX_SEMAPHORE_NONBLOCKING. Any case, if you want DbgConsole_Printf() with interrupt, you can look into the macro DEBUG_CONSOLE_TRANSFER_NON_BLOCKING.

3. MCUXpresso SDK is the latest SDK drivers for kinetis devices, so I would recommend you this.

Hope this could help
Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos