TJA1121: Difference between DEVICE_CONTROL_START_OPERATION and PHY_CONTROL_START_OPERATION

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

TJA1121: Difference between DEVICE_CONTROL_START_OPERATION and PHY_CONTROL_START_OPERATION

245 Views
peter123
Contributor II

From the TJA1121 AN4517, the last step of PHY initialization is DEVICE_CONTROL_START_OPERATION=1.  However, the demo code didn't write to 0x40 but instead write to register 0x8100 (PHY_CONTROL) to start PHY operation.  What's the difference between the two registers?  Now the PHY_STATUS MM30.0x810C=0x10A (i.e. link is in sync state but Transmit state is SEND_Z).   But the same code on EVK works fine.  Why the transmitter state is SEND_Z?  What debug steps do you suggest?  Thanks.

Config:

  • Config6=open: autonomous lead
  • I haven't started data transfer from MCU to TJA1121 via SGMII yet
  • Device confirmed not in reset (via reset pin) or low power mode (8181h is 0x0000)
Tags (2)
0 Kudos
Reply
0 Replies
%3CLINGO-SUB%20id%3D%22lingo-sub-2336767%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ETJA1121%3A%20Difference%20between%20DEVICE_CONTROL_START_OPERATION%20and%20PHY_CONTROL_START_OPERATION%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2336767%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EFrom%20the%20TJA1121%20AN4517%2C%20the%20last%20step%20of%20PHY%20initialization%20is%20DEVICE_CONTROL_START_OPERATION%3D1.%26nbsp%3B%20However%2C%20the%20demo%20code%20didn't%20write%20to%200x40%20but%20instead%20write%20to%20register%200x8100%20(PHY_CONTROL)%20to%20start%20PHY%20operation.%26nbsp%3B%20What's%20the%20difference%20between%20the%20two%20registers%3F%26nbsp%3B%20Now%20the%20PHY_STATUS%20MM30.0x810C%3D0x10A%20(i.e.%20link%20is%20in%20sync%20state%20but%20Transmit%20state%20is%20SEND_Z).%26nbsp%3B%20%26nbsp%3BBut%20the%20same%20code%20on%20EVK%20works%20fine.%26nbsp%3B%20Why%20the%20transmitter%20state%20is%20SEND_Z%3F%26nbsp%3B%20What%20debug%20steps%20do%20you%20suggest%3F%26nbsp%3B%20Thanks.%3C%2FP%3E%3CP%3EConfig%3A%3C%2FP%3E%3CUL%3E%3CLI%3EConfig6%3Dopen%3A%20autonomous%20lead%3C%2FLI%3E%3CLI%3EI%20haven't%20started%20data%20transfer%20from%20MCU%20to%20TJA1121%20via%20SGMII%20yet%3C%2FLI%3E%3CLI%3EDevice%20confirmed%20not%20in%20reset%20(via%20reset%20pin)%20or%20low%20power%20mode%20(8181h%20is%200x0000)%3C%2FLI%3E%3C%2FUL%3E%3C%2FLINGO-BODY%3E