I want to enable std printf stdio function with argument for linflex uart2 then how to enable it for s32 design studio mpc5748g controller.
Here example code "uart_pal_lpc5748g" provided without argument support and uses UART_SendDataBlocking. So i want to leverage this functionality on std printf.
Would you please suggest step for doing that?
there are theoretically two ways, how to resolve this issue.
1) you can replace putc function which is used by printf by LPUART_DRV_SendBlocking function.
2) you can use vprintf function which uses buffer and this buffer can be send by LPUART_DRV_SendBlocking. For this purpose, you can create your own printf function (for example my_printf).
Thanks for quick reply!!
we have tried to use LINFLEXD_UART_DRV_SendDataBlocking in continues for every 100ms with blocking period of 300.
For the above case we could not able to print after certain printf.
What we have to do for this issue.?
I am not sure, if I understand the sentence "For the above case we could not able to print after certain printf."
Could you please explain your problem in detail?