May 26, 2021
12:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 26, 2021
12:49 AM
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:
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 );
1 Reply
May 28, 2021
01:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 28, 2021
01:29 AM
Hi,
Is your example based on the Dave example avialable ? Are you using Dave to configure your microcontroller?
Best Regards,
Vasanth
Is your example based on the Dave example avialable ? Are you using Dave to configure your microcontroller?
Best Regards,
Vasanth