non blocking printf on Kinetis/sdk 2

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

non blocking printf on Kinetis/sdk 2

585 次查看
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 回复

431 次查看
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 项奖励
回复