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.
已解决! 转到解答。
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,
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.
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