s32k344 uart transmit question.

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

s32k344 uart transmit question.

504 次查看
rlaxortn
Contributor IV

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.png

 

2.png

 

1) try 1. syncsend

3.png

 

2) try2. asyncsend

4.png

 

2. when mcu receive can msg, it print..

can is working well.

5.png

 

uart doesn't print "FlexCAN_RX_COMPLETE\r\n".

just printf F.

6.png

 

please don't talk check uart example source code.

i already check.

thank.

 

标记 (3)
0 项奖励
回复
3 回复数

487 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

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.
-------------------------------------------------------------------------------

0 项奖励
回复

452 次查看
rlaxortn
Contributor IV

@Robin_Shen 

 

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.

0 项奖励
回复

404 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Please refer to the printf example I sent you.

0 项奖励
回复