S32K144 lpuart1 can not receiv the response datas from slave IC

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

S32K144 lpuart1 can not receiv the response datas from slave IC

跳至解决方案
2,327 次查看
547416104
Contributor III

Hello EveryOne,

I use S32K144 LPUART1 module send control command to slave IC through CAN tranceiver, the slave IC response data to MCU, MCU can not receive the response data(0x7A, 0XC7 and 0x81), I follow the demo project to config the lpuart, but test result is same. I do not known the reason and how to fix the issue.

MCU send request command.png

Logic analyzer analysis.png

Lpuart config.png

   

0 项奖励
回复
1 解答
2,283 次查看
547416104
Contributor III

The issue is fixed by add external OSC, and reconfig the MCU frequency.

在原帖中查看解决方案

0 项奖励
回复
5 回复数
2,284 次查看
547416104
Contributor III

The issue is fixed by add external OSC, and reconfig the MCU frequency.

0 项奖励
回复
2,312 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@547416104

Suggest:
1. First test that the communication between S32K144 and PC is normal,
2. Then test whether the communication between IC and PC is normal,
3. Finally, test whether the communication between S32K144 and IC is normal, if abnormal, check the hardware connection between S32K144 and IC,

0 项奖励
回复
2,309 次查看
547416104
Contributor III

Hello Senlent,

Thanks for you answer my question.

1. First test that the communication between S32K144 and PC is normal,

=> The communication is normal between S32K144 and PC, because debug the control command and other active type is OK.

2. Then test whether the communication between IC and PC is normal,

=>The salve IC can not communication with PC, because slave IC only communication with S32K144, The active type is controled by MCU command.

3. Finally, test whether the communication between S32K144 and IC is normal, if abnormal, check the hardware connection between S32K144 and IC,

=>I am sure the communication condition is normal, MCU send control command to slave IC, the slave IC can active follow the control command.

The issue only apply to MCU send request command to slave IC, the salve IC can answer the request command, check the MCU RX pin, the slave IC answer data can be detected, but debug the RX data, MCU only can receive the request data, it can not receive the slave IC answer data.

 

 

0 项奖励
回复
2,303 次查看
Senlent
NXP TechSupport
NXP TechSupport

Can you provide  the project code, you can send me a private message.

0 项奖励
回复
2,297 次查看
547416104
Contributor III

Hi Senlent,

The project code as the attachment.

The Request command trigle function as “uint8_t Bd18333_ReadOneRegisterValue(uint8_t devAddr, uint8_t regAddr)”.if have any question, please contact me, thanks

547416104_0-1670230961007.png

 

0 项奖励
回复