i make uart source code with reference example uart source code.
when i program s32k344 mcu receive can message i print messge by uart.
but it print just one char. i check buffer size, and i make to print uart as many as strlen(buf) size. and i tried to make longer timeout. but it is not help..i got same situation..
i don't know why it just printf one character..
i check other uart example source code.
please don't send example uart source..
1) try 1. syncsend
2) try2. asyncsend
2. when mcu receive can msg, it print..
can is working well.
uart doesn't print "FlexCAN_RX_COMPLETE\r\n".
just printf F.
please don't talk check uart example source code.
i already check.
thank.
Hi
If DebugUart6 is not called in the callback but in the main function, does it able to print message normally?
If you call Lpuart_Uart_Ip_SyncSend or Lpuart_Uart_Ip_AsyncSend instead of DebugUart6 in the callback, does it able to transmit message normally?
How do you set the priority of CAN and UART?
If convenient, please send me the testing project. So that I can quickly test and troubleshoot issues on EVB.
Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "ACCEPT AS SOLUTION" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
it work well to call Lpuart_Uart_Ip_SyncSend or Lpuart_Uart_Ip_AsyncSend.
it just doesn't work well in the callback function.
i think before it print all of setence, it call callback interrupt again...
because it work well in other function, not in callback function.
but i wanna print in callback function. because i wanna check parameter in callback function.
how i have to do???
do i something to do?? i don't have idea.
thanks.
Please refer to the printf example I sent you.