Have some problem TJA1145 SPI receive data

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

Have some problem TJA1145 SPI receive data

1,691 Views
kimmk
Contributor III

"I am trying to establish CAN communication using the S32K144 MCU and TJA1145. First, I am in the process of configuring the TJA1145 for SPI communication.

To verify that SPI communication is functioning correctly, I attempted to receive the ID value from the TJA1145. I combined the register address 0x7E with the read bit to transmit 0xFD, and the data was 0x00. I expected to receive the value 0x74, which is assigned to the register address.
스크린샷 2025-03-26 111349.png


However, according to the MCU, the same data as MOSI was observed on the MISO pin through the oscilloscope.

Scope Capture.jpg

C1 : MISO | C2 : MOSI | C3 : CLK | C4 : CS

I am curious about what I might have missed that could have caused this issue.

Tags (3)
0 Kudos
Reply
5 Replies

1,683 Views
guoweisun
NXP TechSupport
NXP TechSupport

Hi kimmk

What about read for others registers? still back to wrong data for same issue ?

0 Kudos
Reply

1,678 Views
kimmk
Contributor III

Hello, guoweisun.


Other registers also exhibit the same phenomenon.

The first photo shows the operation of inputting Normal (0x07) into the Mode Control register (0x01) of the TJA1145.

Scope Capture_Write.jpg

 

The second photo shows the operation of reading register 0x01 to check if it has been applied correctly.

Scope Capture_Read.jpg

I am experiencing the same symptoms in all communication operations, and I am unable to determine what I have configured incorrectly.

Tags (2)
0 Kudos
Reply

1,642 Views
guoweisun
NXP TechSupport
NXP TechSupport

Should be the SPI configuration issue,I suggest to download the example drive for reference.

TJA1145A | HS CAN Partial Networking Transceiver | NXP Semiconductors

guoweisun_0-1743039781041.png

 

0 Kudos
Reply

1,631 Views
kimmk
Contributor III

I have restricted access to that item

Since drafting an NDA is outside of my authority, it is difficult for me to refer to that material.
스크린샷 2025-03-27 142053.png

Tags (1)
0 Kudos
Reply

1,617 Views
guoweisun
NXP TechSupport
NXP TechSupport

That's better for your to sign NDA also you can do on line:

Support | NXP Semiconductors

Because lots of products need customer sign NDA to get support or documentations.

guoweisun_0-1743121694609.png

 

0 Kudos
Reply