The problem with reading and writing registers in TJA1145

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

The problem with reading and writing registers in TJA1145

321 Views
DVLY
Contributor I

I tried using MCAL to deliver SPI drivers for read and write operations on TJA1145, but the data I received was always fixed and I'm not sure what caused it. Can you give me some guidance? Thank you very much

DVLY_0-1716793216763.png

The first and second times are for writing, and the third time is for re reading

IMG_20240527_145005.jpg

Tags (1)
0 Kudos
Reply
2 Replies

211 Views
DVLY
Contributor I

Thank you very much for your help. I have found the reason

0 Kudos
Reply

309 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi,

From your oscilloscope snapshot, I cannot check if the timing and format of the SPI message is correct.

A very common problem is that timing parameters are violated, so please make sure everything is in accordance with the following specs:

Capture.JPG

Capture 1.JPG

BRs, Tomas

0 Kudos
Reply