MCUXpresso SDK API thread safe

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MCUXpresso SDK API thread safe

1,499件の閲覧回数
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 件の賞賛
返信
1 返信

1,210件の閲覧回数
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 件の賞賛
返信