S32K144 lpuart1 can not receiv the response datas from slave IC

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32K144 lpuart1 can not receiv the response datas from slave IC

ソリューションへジャンプ
2,672件の閲覧回数
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,628件の閲覧回数
547416104
Contributor III

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

元の投稿で解決策を見る

0 件の賞賛
返信
5 返答(返信)
2,629件の閲覧回数
547416104
Contributor III

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

0 件の賞賛
返信
2,657件の閲覧回数
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,654件の閲覧回数
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,648件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

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

0 件の賞賛
返信
2,642件の閲覧回数
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 件の賞賛
返信