S32K144 lpuart1 can not receiv the response datas from slave IC

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K144 lpuart1 can not receiv the response datas from slave IC

Jump to solution
2,872 Views
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 Kudos
Reply
1 Solution
2,828 Views
547416104
Contributor III

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

View solution in original post

0 Kudos
Reply
5 Replies
2,829 Views
547416104
Contributor III

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

0 Kudos
Reply
2,857 Views
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 Kudos
Reply
2,854 Views
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 Kudos
Reply
2,848 Views
Senlent
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply
2,842 Views
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 Kudos
Reply