non blocking printf on Kinetis/sdk 2

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

non blocking printf on Kinetis/sdk 2

588件の閲覧回数
manfredeggersdo
Contributor I

Hello,

I am using a MKM34Z256 - with Kinetis Design Studio and SDK V2 enviroment and FreeRTOS.

If I use the PRINTF Function, it looks like this funktion use the "UART_WriteBlocking" Function and so it blockes the rest of the system while giving out the UART-Data.

 

In fsl_debug_console.c in row 244 (approx) is the command:

 

 s_debugConsole.ops.tx_union.UART_PutChar = UART_WriteBlocking;

 

How can I change this to use the non blocking transfer function?

Thank You!

With best Regards

Manfred

ラベル(1)
0 件の賞賛
返信
1 返信

434件の閲覧回数
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Manfred,

As you see that there are two or three transfering mode:polling mode, interrupt mode and DMA mode, in the example based on Freertos, the printf() or putchar() use polling mode. if you use interrupt mode or DMA mode, it is complicated.

Considering the fact that there is not much information to output to UART, I think it is okay.

Hope it can help you

BR

XiangJun Rong

0 件の賞賛
返信