Hi,
I have solved the issue.
Read the register 0xFE, and get the expected value 0x70.
Pay attention to the following points:
1. SPI shift clock idle level is LOW
2. the SPI data shift edge is LEADING
Best regards!
Hello,
We are working on the GW project and using Autosar TC39xx stack and using TJA1145 as CANTRCV. We are unable to control TRCV through SPI. I m facing the Slave response issue and TJA1145 TRCV is not responding to the Transmitted data through the SPI.
Currently, SPI driver clock is traced when CS is low along with Tx/Rx datelines in oscilloscope and supporting image is attached below. The tx is visible on the bus and these commands are related to the TJA1145 TRCV Init. The datawidth is as set as 8bit in the SPI driver configuration.
Now the issue seems to be in slave response and unable to control TRCV TJA1145 as expected. During debugging, MISO buffers(Spi Rx buffers) are updated with the same data which is transmitted. SpiOutBuffer and SpiInBuffer updated with same data shown in below image.
Need your help to understand the reasons for not able to get the slave response.
The below image is related to external device parameters and highlighted parameters like Time Clk2Cs, Trailing time values are configured based on dynamic characteristics mentioned in TJA1145 datasheet and need clarity on values to be set for these parameters.
If any further inputs required please let us know. Please share reference cfg files if any to verify the cfg files of CANTRCV and SPI module in our setup.
Best Regards.
.
Hi,
I have solved the issue.
Read the register 0xFE, and get the expected value 0x70.
Pay attention to the following points:
1. SPI shift clock idle level is LOW
2. the SPI data shift edge is LEADING
Best regards!