Link miss a

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User14803
Level 1
Level 1
REFER: https://www.infineonforums.com/threads/4995-Lnk_mis


Hi Jesus,

lucky!

SAME PROBLEM,But We use the PHY Microchip KSZ8091mnx. TwinCAT 3 Online state, flicking between reported OP and OP LNK_MIS_A, is observed to occur at about 6 Hz!
I have to Write the PHY register 0x1F= D33040, SET LED MODE[01], The problem is still !
CODE:
//read phy id
uint16_t phyid1;
XMC_ECAT_ReadPhy(0, REG_PHYIDR1, &phyid1);
uint16_t phyid2;
XMC_ECAT_ReadPhy(0, REG_PHYIDR2, &phyid2);

uint16_t ValData= 0x00;

XMC_ECAT_ReadPhy( ECAT_PHY_ADDR, PHY_CONTROL, &ValData ); //read register 0x1F
XMC_ECAT_WritePhy( ECAT_PHY_ADDR, PHY_CONTROL, ValData | MODE_01 ); //
XMC_ECAT_ReadPhy( ECAT_PHY_ADDR, PHY_CONTROL, &ValData ); //

uint16_t ValData_2 = 0x00;
XMC_ECAT_ReadPhy( ECAT_PHY_ADDR, PHY_CONTROL_1, &ValData_2);//read register 0x1E

uint16_t ValReset = 0x00;

XMC_ECAT_ReadPhy( ECAT_PHY_ADDR, PHY_BASIC_CONTROL, &ValReset ); //
XMC_ECAT_WritePhy( ECAT_PHY_ADDR, PHY_BASIC_CONTROL, ValReset | RESET ); //
XMC_ECAT_ReadPhy( ECAT_PHY_ADDR, PHY_BASIC_CONTROL, &ValReset );
0 Likes
1 Reply
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked
Hi,

Is your example based on the Dave example avialable ? Are you using Dave to configure your microcontroller?

Best Regards,
Vasanth
0 Likes